diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..c3436e00 --- /dev/null +++ b/.npmignore @@ -0,0 +1,8 @@ +node_modules +*.log +.nyc_output +*.iml +.idea +.DS_Store +compile +js diff --git a/package.json b/package.json index c90146a3..57fa825e 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,9 @@ "prepublishOnly": "yarn build && yarn docs", "lint": "eslint . --ignore-path .gitignore", "lint:fix": "eslint . --ignore-path .gitignore --fix", - "prepare": "husky install", - "pre-commit": "lint-staged" + "prepare": "husky install && yarn build", + "pre-commit": "lint-staged", + "prepack": "yarn build" }, "repository": { "type": "git", @@ -83,4 +84,4 @@ "yy-jsdoc-template": "^1.3.0", "yy-random": "^1.10.2" } -} +} \ No newline at end of file