Skip to content

Add esm module distribution #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "3.5.0",
"description": "Async computed properties for Vue",
"main": "dist/vue-async-computed.js",
"module": "dist/vue-async-computed.esm.js",
"files": [
"bin/",
"dist/"
Expand All @@ -14,8 +15,9 @@
"watch": "watch 'npm run build' src test",
"test": "babel-node --presets env test/index.js | tspec",
"prebuild": "npm run check -s && npm run clean -s && mkdirp dist",
"build": "npm run rollup -s && npm run babel -s",
"rollup": "rollup src/index.js --output.format umd --name AsyncComputed --output.file dist/vue-async-computed.esnext.js",
"build": "npm run rollup-esm -s && npm run rollup-umd -s && npm run babel -s",
"rollup-esm": "rollup src/index.js --output.format esm --name AsyncComputed --output.file dist/vue-async-computed.esm.js",
"rollup-umd": "rollup src/index.js --output.format umd --name AsyncComputed --output.file dist/vue-async-computed.esnext.js",
"babel": "babel --optional runtime dist/vue-async-computed.esnext.js --out-file dist/vue-async-computed.js",
"postbuild": "npm run test -s",
"coverage": "node_modules/.bin/babel-node node_modules/.bin/babel-istanbul cover test/index.js",
Expand Down