Skip to content

Commit

Permalink
tooling: prevent files from being added to package
Browse files Browse the repository at this point in the history
- they now need to be added explicitly to package.json's `files`
  • Loading branch information
karfau committed Dec 28, 2019
1 parent 0cc165e commit 43fef52
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
env:
CI: true
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

# build-windows:
#
# runs-on: windows-latest
Expand Down
12 changes: 4 additions & 8 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
examples/

test/*
test.*.js

.*

runex.iml
# we don't add any files by default:
*
# npm automatically adds `bin`, `files` and `main` from `package.json`, LICENSE, README.md
# so to include files add them to `files` in `package.json`
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"description": "Run module export as a script",
"bin": "index.js",
"types": "index.d.ts",
"files": [
"index.d.ts"
],
"scripts": {
"pretest": "npm run --silent tsc; cd examples/num-args; npm --silent run setup; cd -;",
"test": "tap --reporter=tap --100 ",
Expand Down

0 comments on commit 43fef52

Please sign in to comment.