]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: include dist and playground in package
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 24 Jan 2020 09:23:56 +0000 (10:23 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 24 Jan 2020 09:23:56 +0000 (10:23 +0100)
package.json

index 2d1062d2ade64167755b09f5518604de8bcceb41..3b88fd6fb217f1dc16ee09e3db2177ebf122ebf3 100644 (file)
@@ -6,7 +6,13 @@
   "unpkg": "dist/vue-router.js",
   "module": "dist/vue-router.esm-bundler.js",
   "types": "dist/index.d.ts",
+  "sideEffects": false,
   "license": "MIT",
+  "files": [
+    "dist",
+    "playground",
+    "README.md"
+  ],
   "scripts": {
     "build": "yarn rollup -c rollup.config.js",
     "dev": "webpack-dev-server --mode=development",
@@ -16,7 +22,8 @@
     "lint:fix": "yarn run lint --write",
     "test:types": "tsc --build tsconfig.json",
     "test:unit": "jest --coverage",
-    "test": "yarn run test:types && yarn run test:unit && yarn build"
+    "test": "yarn run test:types && yarn run test:unit && yarn build",
+    "prepublishOnly": "yarn run build"
   },
   "devDependencies": {
     "@rollup/plugin-alias": "^3.0.0",