Skip to content

Commit

Permalink
fix: use npmignore not files
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Dec 15, 2021
1 parent 20ee7e8 commit 4cd5327
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
# since importing package.json to get the version, we need to do some special
# handling to get all the dist files since npm looks for the package.json file
# in the current directory https://stackoverflow.com/a/51107553/3145360
!dist/**
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
"license": "Apache-2.0",
"author": "Justin Poehnelt",
"main": "dist/src/index.js",
"files": [
"dist/*"
],
"scripts": {
"prepare": "tsc",
"format": "eslint --ext .js,.ts src --fix",
Expand Down

0 comments on commit 4cd5327

Please sign in to comment.