Skip to content

Commit 3c97533

Browse files
authored
refactor: Update the lists of files included in packages (#3297)
This pull request updates the packaging configuration for several packages, focusing on standardizing the `files` field in `package.json` and cleaning up ignored files. The main goal is to ensure that only the necessary files are included in published npm packages, improving consistency and reducing package size. ### Changes **Packaging and file inclusion improvements:** * Standardized the `files` field in `package.json` across multiple packages to consistently include `dist`, exclude `*.tsbuildinfo`, and selectively include or remove `README.md` and `LICENSE` files. (`packages/autocertifier-client/package.json` [[1]](diffhunk://#diff-ce36aa2971623458d0b35543ec3caf4e8df12445e570d4c599e3142a79b87de5L14-R14) `packages/autocertifier-server/package.json` [[2]](diffhunk://#diff-650e71c74d8235428c25ec35eb19d1ab8daa27dc303d7564f493507a8c011b26L19-R19) `packages/test-utils/package.json` [[3]](diffhunk://#diff-d7a3fa8faf23a3288372b5fa5679e4f24c0be0dbb8da3c3399315a40fc4b872cL13-R14) `packages/trackerless-network/package.json` [[4]](diffhunk://#diff-e73f8b6abf767f5f6271d1dcbf5188b40d63732e6a8cd772b44f677c2fc36bc1L15-R15) `packages/browser-test-runner/package.json` [[5]](diffhunk://#diff-f1f959068663a0921377ad7c45a6b43c21684a22e2ff9fdeacf268b806aef9b8R15-R19) * Added a `files` field to `packages/browser-test-runner/package.json` to ensure only the necessary files are published. * Remove `.npmignore ` in `packages/autocertifier-client` – the `files` field now controls published content.[^1] [^1]: `autocertifier-client` was the only package with `.npmignore`. It also had `files` in its `package.json`. Now it's just like all the other packages – driven by the `files` field \*only*.
1 parent 25f4d73 commit 3c97533

File tree

6 files changed

+10
-19
lines changed

6 files changed

+10
-19
lines changed

packages/autocertifier-client/.npmignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/autocertifier-client/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
"types": "dist/src/exports.d.ts",
1212
"files": [
1313
"dist",
14-
"!*.tsbuildinfo",
15-
"README.md",
16-
"LICENSE"
14+
"!*.tsbuildinfo"
1715
],
1816
"license": "STREAMR NETWORK OPEN SOURCE LICENSE",
1917
"author": "Streamr Network AG <[email protected]>",

packages/autocertifier-server/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"files": [
1717
"dist",
1818
"!*.tsbuildinfo",
19-
"README.md",
20-
"LICENSE"
19+
"README.md"
2120
],
2221
"browser": {
2322
"dist/src/exports.js": false

packages/browser-test-runner/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
"browser": {
1313
"./dist/src/exports.js": false
1414
},
15+
"files": [
16+
"dist",
17+
"!*.tsbuildinfo",
18+
"LICENSE"
19+
],
1520
"scripts": {
1621
"build": "tsc -b",
1722
"check": "tsc --noEmit",

packages/test-utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"main": "./dist/src/index.js",
1111
"types": "./dist/src/index.d.ts",
1212
"files": [
13-
"dist/",
14-
"!dist/tsconfig.node.tsbuildinfo",
13+
"dist",
14+
"!*.tsbuildinfo",
1515
"setupCustomMatchers.js",
1616
"customMatcherTypes.d.ts"
1717
],

packages/trackerless-network/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"files": [
1313
"dist",
1414
"!*.tsbuildinfo",
15-
"README.md",
16-
"LICENSE"
15+
"README.md"
1716
],
1817
"license": "STREAMR NETWORK OPEN SOURCE LICENSE",
1918
"author": "Streamr Network AG <[email protected]>",

0 commit comments

Comments
 (0)