Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Include bundled code in package distro
Browse files Browse the repository at this point in the history
  • Loading branch information
JimiC committed Apr 10, 2020
1 parent 4ced231 commit db07707
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
examples
lib
.DS_Store
npm-debug.*
2 changes: 1 addition & 1 deletion .huskyrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"skipCI": true,
"hooks": {
"pre-commit": "npx lint-staged"
"pre-commit": "npx lint-staged && npm run bundle"
}
}
1 change: 1 addition & 0 deletions lib/examples.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@
],
"scripts": {
"reinstall": "rimraf ./package-lock.json ./node_modules && npm i",
"postinstall": "npm run bundle",
"clean": "rimraf ./lib",
"precompile:dev": "npm run lint",
"compile:dev": "npm run compile -- -p tsconfig.dev.json",
"precompile": "rimraf ./lib",
"precompile": "npm run clean",
"compile": "tsc",
"compile:w": "npm run compile -- -w",
"lint": "eslint . --ext .ts",
"prebundle": "npm run clean",
"bundle": "npx rollup -c",
"preexample": "npm run lint && npm run compile",
"example": "node ./bin/example"
Expand Down

0 comments on commit db07707

Please sign in to comment.