Skip to content

Commit 763f3a2

Browse files
committed
🙈 Add .npmignore
Signed-off-by: kei-g <km.8k6ce+github@gmail.com>
1 parent a161c2c commit 763f3a2

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
**/.vscode/
33
**/build/
44
**/coverage/
5-
**/lib/
5+
**/lib/*.js
6+
**/lib/*.ts
67
**/node_modules/
78
**/package-lock.json

.npmignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
**/*.ts
2+
**/.editorconfig
3+
**/.eslintrc.json
4+
**/.mocharc.json
5+
**/.travis.yml
6+
**/CODE_OF_CONDUCT.md
7+
**/build/
8+
**/test/
9+
**/tsconfig.json

lib/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!**/*.d.ts

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@
5757
"typescript": "^4.3.5",
5858
"uuid": "^8.3.2"
5959
},
60-
"files": [
61-
"lib"
62-
],
6360
"homepage": "https://github.com/kei-g/async-iterable-queue",
6461
"keywords": [
6562
"async",
@@ -87,7 +84,7 @@
8784
},
8885
"scripts": {
8986
"build": "npm run lint && tsc && terser build/async-iterable-queue.js -c -m -o lib/async-iterable-queue.js --toplevel",
90-
"clean": "rm -fr .nyc_output/ build/ coverage/ lib/",
87+
"clean": "rm -fr .nyc_output/ build/ coverage/ lib/*.d.ts lib/*.js",
9188
"cover": "nyc --check-coverage -r html -r text _mocha",
9289
"lint": "eslint *.ts",
9390
"prepublishOnly": "npm run build",

0 commit comments

Comments
 (0)