Skip to content

Commit 9ce47b3

Browse files
committed
New build commands in package.json
1 parent 2a6584c commit 9ce47b3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
"name": "vue-announcer",
33
"version": "1.0.6",
44
"description": "A simple way with Vue to announce any information to the screen readers.",
5-
"main": "dist/vue-announcer.js",
5+
"main": "dist/vue-announcer.umd.js",
6+
"module": "dist/vue-announcer.esm.js",
7+
"unpkg": "dist/vue-announcer.min.js",
68
"scripts": {
79
"dev": "rollup --config rollup.config.dev.js --watch",
8-
"dist": "rollup --config rollup.config.prod.js --environment NODE_ENV:production",
10+
"build": "npm run build:umd & npm run build:es & npm run build:unpkg",
11+
"build:umd": "rollup --config rollup.config.prod.js --format umd --file dist/vue-announcer.umd.js",
12+
"build:es": "rollup --config rollup.config.prod.js --format es --file dist/vue-announcer.esm.js",
13+
"build:unpkg": "rollup --config rollup.config.prod.js --format iife --file dist/vue-announcer.min.js",
914
"release": "standard-version",
1015
"test": "node_modules/.bin/cypress run",
1116
"test:open": "node_modules/.bin/cypress open",

0 commit comments

Comments
 (0)