Commit 3c97533
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- packages
- autocertifier-client
- autocertifier-server
- browser-test-runner
- test-utils
- trackerless-network
6 files changed
+10
-19
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
0 commit comments