|
11 | 11 | "homepage": "https://github.com/maoberlehner/vuex-map-fields", |
12 | 12 | "license": "MIT", |
13 | 13 | "scripts": { |
14 | | - "scripts:bundle": "rollup --config --output.format umd --name vuex-map-fields --output.file dist/index.js src/index.js", |
15 | | - "scripts:minify": "uglifyjs --compress --mangle --comments --output dist/index.min.js dist/index.js", |
16 | | - "scripts": "npm run scripts:bundle && npm run scripts:minify", |
| 14 | + "scripts:umd": "rollup --config --output.format umd --name vuex-map-fields --output.file dist/index.js src/index.js", |
| 15 | + "scripts:es": "rollup --config --output.format es --name vuex-map-fields --output.file dist/index.esm.js src/index.js", |
| 16 | + "scripts:minify": "uglifyjs --compress --mangle --comments --output dist/index.min.js dist/index.js && uglifyjs --compress --mangle --comments --output dist/index.esm.min.js dist/index.esm.js", |
| 17 | + "scripts": "npm run scripts:umd && npm run scripts:es && npm run scripts:minify", |
17 | 18 | "build": "npm run scripts", |
18 | 19 | "fake-publish": "npm run build && sh test/utils/fake-publish.sh", |
19 | 20 | "lint": "npm run fake-publish && eslint --ignore-path .gitignore .", |
|
36 | 37 | "rollup": "^0.56.2", |
37 | 38 | "rollup-plugin-babel": "^3.0.3", |
38 | 39 | "rollup-plugin-node-resolve": "^3.0.3", |
39 | | - "uglify-js": "^3.3.11", |
| 40 | + "uglify-es": "^3.3.9", |
40 | 41 | "vue": "^2.5.13", |
41 | 42 | "vue-template-compiler": "^2.5.13", |
42 | 43 | "vuex": "^3.0.1" |
43 | 44 | }, |
44 | 45 | "main": "dist/index.js", |
45 | | - "module": "src/index.js", |
| 46 | + "module": "dist/index.esm.js", |
46 | 47 | "repository": { |
47 | 48 | "type": "git", |
48 | 49 | "url": "https://github.com/maoberlehner/vuex-map-fields" |
|
0 commit comments