Skip to content

Commit 3d21e90

Browse files
Merge pull request #59 from mtorromeo/package-module
Add esm module distribution
2 parents 7feca35 + 9e2d046 commit 3d21e90

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "3.5.0",
44
"description": "Async computed properties for Vue",
55
"main": "dist/vue-async-computed.js",
6+
"module": "dist/vue-async-computed.esm.js",
67
"files": [
78
"bin/",
89
"dist/"
@@ -14,8 +15,9 @@
1415
"watch": "watch 'npm run build' src test",
1516
"test": "babel-node --presets env test/index.js | tspec",
1617
"prebuild": "npm run check -s && npm run clean -s && mkdirp dist",
17-
"build": "npm run rollup -s && npm run babel -s",
18-
"rollup": "rollup src/index.js --output.format umd --name AsyncComputed --output.file dist/vue-async-computed.esnext.js",
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",
20+
"rollup-umd": "rollup src/index.js --output.format umd --name AsyncComputed --output.file dist/vue-async-computed.esnext.js",
1921
"babel": "babel --optional runtime dist/vue-async-computed.esnext.js --out-file dist/vue-async-computed.js",
2022
"postbuild": "npm run test -s",
2123
"coverage": "node_modules/.bin/babel-node node_modules/.bin/babel-istanbul cover test/index.js",

0 commit comments

Comments
 (0)