Skip to content

Commit 15150de

Browse files
Point to a transpiled version of the library as the module field of package.json.
1 parent 5d4a0c0 commit 15150de

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@
1515
"watch": "watch 'npm run build' src test",
1616
"test": "babel-node --presets env test/index.js | tspec",
1717
"prebuild": "npm run check -s && npm run clean -s && mkdirp dist",
18-
"build": "npm run rollup-esm -s && npm run rollup-umd -s && npm run babel -s",
19-
"rollup-esm": "rollup src/index.js --output.format esm --name AsyncComputed --output.file dist/vue-async-computed.esm.js",
18+
"build": "npm run rollup -s && npm run babel -s",
19+
"rollup-esm": "rollup src/index.js --output.format esm --name AsyncComputed --output.file dist/vue-async-computed.esm.esnext.js",
2020
"rollup-umd": "rollup src/index.js --output.format umd --name AsyncComputed --output.file dist/vue-async-computed.esnext.js",
21-
"babel": "babel --optional runtime dist/vue-async-computed.esnext.js --out-file dist/vue-async-computed.js",
21+
"rollup": "npm run rollup-umd -s && npm run rollup-esm -s",
22+
"babel-umd": "babel --optional runtime dist/vue-async-computed.esnext.js --out-file dist/vue-async-computed.js",
23+
"babel-esm": "babel --optional runtime dist/vue-async-computed.esm.esnext.js --out-file dist/vue-async-computed.esm.js",
24+
"babel": "npm run babel-umd -s && npm run babel-esm -s",
2225
"postbuild": "npm run test -s",
2326
"coverage": "node_modules/.bin/babel-node node_modules/.bin/babel-istanbul cover test/index.js",
2427
"coveralls": "npm run coverage -s && coveralls < coverage/lcov.info",

0 commit comments

Comments
 (0)