Skip to content

Commit

Permalink
fix: Include "empty" index.js in package (#60)
Browse files Browse the repository at this point in the history
* fix(#59): Include "empty" index.js in package

- During the `clean` npm script, generate the index.js file that
exports an empty array.
- Include index.js in the npm package.

* refactor: Remove redundant deletition of index.js

Co-Authored-By: katashin <ktsn55@gmail.com>

Co-authored-by: katashin <ktsn55@gmail.com>
  • Loading branch information
bencelang and ktsn committed Jan 11, 2020
1 parent 12d5b5d commit de2a672
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"typings": "index.d.ts",
"files": [
"lib",
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/ktsn/vue-auto-routing",
Expand All @@ -27,7 +28,7 @@
},
"scripts": {
"prepublishOnly": "npm run test && npm run clean && npm run build",
"clean": "rm -rf lib index.js",
"clean": "rm -rf lib && echo export default [] > index.js",
"build": "tsc -p src",
"dev": "jest --watch",
"lint": "tslint -p . && prettier --list-different \"{src,scripts,test}/**/*.{js,ts}\"",
Expand Down

0 comments on commit de2a672

Please sign in to comment.