File tree Expand file tree Collapse file tree 3 files changed +44
-1
lines changed
Expand file tree Collapse file tree 3 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 1212 },
1313 "scripts" : {
1414 "test" : " tape -r esm 'test/**/*-test.js'" ,
15- "precommit" : " eslint . && yarn test"
15+ "precommit" : " eslint . && yarn test" ,
16+ "prepare" : " rollup -c"
1617 },
1718 "esm" : {
1819 "mode" : " all" ,
2627 "eslint" : " ^4.12.1" ,
2728 "husky" : " ^0.14.3" ,
2829 "jsdom" : " ^11.6.2" ,
30+ "rollup" : " ^0.52.0" ,
31+ "rollup-plugin-node-resolve" : " ^3.0.0" ,
2932 "tape" : " ^4.9.0" ,
3033 "tape-await" : " 0.1.0"
3134 }
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:
150150 version "0.1.2"
151151 resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.2.tgz#425d68a58d3447f02a04aa894187fce8af8b7b8e"
152152
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+
153157caller-path@^0.1.0 :
154158 version "0.1.0"
155159 resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f"
@@ -713,6 +717,10 @@ is-function@~1.0.0:
713717 version "1.0.1"
714718 resolved "https://registry.yarnpkg.com/is-function/-/is-function-1.0.1.tgz#12cfb98b65b57dd3d193a3121f5f6e2f437602b5"
715719
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+
716724is-path-cwd@^1.0.0 :
717725 version "1.0.0"
718726 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:
10911099 version "1.0.1"
10921100 resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226"
10931101
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+
10941108resolve@~1.5.0 :
10951109 version "1.5.0"
10961110 resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36"
@@ -1116,6 +1130,18 @@ rimraf@^2.2.8:
11161130 dependencies :
11171131 glob "^7.0.5"
11181132
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+
11191145run-async@^2.2.0 :
11201146 version "2.3.0"
11211147 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