File tree 3 files changed +44
-1
lines changed
3 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 12
12
},
13
13
"scripts" : {
14
14
"test" : " tape -r esm 'test/**/*-test.js'" ,
15
- "precommit" : " eslint . && yarn test"
15
+ "precommit" : " eslint . && yarn test" ,
16
+ "prepare" : " rollup -c"
16
17
},
17
18
"esm" : {
18
19
"mode" : " all" ,
26
27
"eslint" : " ^4.12.1" ,
27
28
"husky" : " ^0.14.3" ,
28
29
"jsdom" : " ^11.6.2" ,
30
+ "rollup" : " ^0.52.0" ,
31
+ "rollup-plugin-node-resolve" : " ^3.0.0" ,
29
32
"tape" : " ^4.9.0" ,
30
33
"tape-await" : " 0.1.0"
31
34
}
Original file line number Diff line number Diff line change
1
+ import node from "rollup-plugin-node-resolve" ;
2
+
3
+ export default {
4
+ input : "src/index.js" ,
5
+ plugins : [
6
+ node ( )
7
+ ] ,
8
+ output : {
9
+ banner : `// @observablehq/notebook-stdlib Copyright ${ ( new Date ) . getFullYear ( ) } Observable, Inc.` ,
10
+ file : "build/notebook-stdlib.js" ,
11
+ format : "umd" ,
12
+ name : "O"
13
+ }
14
+ } ;
Original file line number Diff line number Diff line change @@ -150,6 +150,10 @@ browser-process-hrtime@^0.1.2:
150
150
version "0.1.2"
151
151
resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.2.tgz#425d68a58d3447f02a04aa894187fce8af8b7b8e"
152
152
153
+ builtin-modules@^2.0.0 :
154
+ version "2.0.0"
155
+ resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-2.0.0.tgz#60b7ef5ae6546bd7deefa74b08b62a43a232648e"
156
+
153
157
caller-path@^0.1.0 :
154
158
version "0.1.0"
155
159
resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f"
@@ -713,6 +717,10 @@ is-function@~1.0.0:
713
717
version "1.0.1"
714
718
resolved "https://registry.yarnpkg.com/is-function/-/is-function-1.0.1.tgz#12cfb98b65b57dd3d193a3121f5f6e2f437602b5"
715
719
720
+ is-module@^1.0.0 :
721
+ version "1.0.0"
722
+ resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591"
723
+
716
724
is-path-cwd@^1.0.0 :
717
725
version "1.0.0"
718
726
resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d"
@@ -1091,6 +1099,12 @@ resolve-from@^1.0.0:
1091
1099
version "1.0.1"
1092
1100
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226"
1093
1101
1102
+ resolve@^1.1.6 :
1103
+ version "1.7.1"
1104
+ resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.7.1.tgz#aadd656374fd298aee895bc026b8297418677fd3"
1105
+ dependencies :
1106
+ path-parse "^1.0.5"
1107
+
1094
1108
resolve@~1.5.0 :
1095
1109
version "1.5.0"
1096
1110
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36"
@@ -1116,6 +1130,18 @@ rimraf@^2.2.8:
1116
1130
dependencies :
1117
1131
glob "^7.0.5"
1118
1132
1133
+ rollup-plugin-node-resolve@^3.0.0 :
1134
+ version "3.3.0"
1135
+ resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.3.0.tgz#c26d110a36812cbefa7ce117cadcd3439aa1c713"
1136
+ dependencies :
1137
+ builtin-modules "^2.0.0"
1138
+ is-module "^1.0.0"
1139
+ resolve "^1.1.6"
1140
+
1141
+ rollup@^0.52.0 :
1142
+ version "0.52.3"
1143
+ resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.52.3.tgz#020d99fffe9619351e47b3894fd397c26f5e1bf6"
1144
+
1119
1145
run-async@^2.2.0 :
1120
1146
version "2.3.0"
1121
1147
resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0"
You can’t perform that action at this time.
0 commit comments