Skip to content

Commit 6ee047a

Browse files
committed
Only include real files in package
``` ❯ npx np minor ? The following new files will not be part of your published package: - .github/workflows/test.yml - .vscode/settings.json - jest.config.js - lib/Prediction.test.js - lib/ReplicateClient.test.js - lib/Version.test.js The following new files will be published the first time: - lib/errors.js - lib/Prediction.js - lib/ReplicateClient.js - lib/ReplicateObject.js - lib/utils.js - lib/Version.js Continue? (y/N) ```
1 parent d680325 commit 6ee047a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"license": "Apache-2.0",
99
"main": "index.js",
1010
"type": "module",
11+
"files": [
12+
"lib/**/!(*.test.js)"
13+
],
1114
"scripts": {
1215
"test": "REPLICATE_API_TOKEN=not-a-real-token node index.js && NODE_OPTIONS=--experimental-vm-modules jest"
1316
},

0 commit comments

Comments
 (0)