@anolilab/semantic-release-clean-package-json 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +8 -12
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## @anolilab/semantic-release-clean-package-json [2.0.2](https://github.com/anolilab/semantic-release/compare/@anolilab/semantic-release-clean-package-json@2.0.1...@anolilab/semantic-release-clean-package-json@2.0.2) (2025-05-07)
2
+
3
+ ### Bug Fixes
4
+
5
+ * update dependencies across multiple packages, including @anolilab/* and @visulima/* to latest versions ([fc3cbd3](https://github.com/anolilab/semantic-release/commit/fc3cbd353f550d7f2de194c34416c3074ba60b11))
6
+
7
+
8
+ ### Dependencies
9
+
10
+ * **@anolilab/semantic-release-pnpm:** upgraded to 1.1.11
11
+
1
12
  ## @anolilab/semantic-release-clean-package-json [2.0.1](https://github.com/anolilab/semantic-release/compare/@anolilab/semantic-release-clean-package-json@2.0.0...@anolilab/semantic-release-clean-package-json@2.0.1) (2025-02-10)
2
13
 
3
14
  ### Bug Fixes
package/README.md CHANGED
@@ -30,6 +30,7 @@
30
30
  When publishing packages to npm, many properties in `package.json` are only needed during development and build time, but not in the published package. This plugin automatically removes unnecessary properties while preserving essential ones needed for the package to work correctly in production.
31
31
 
32
32
  Key benefits:
33
+
33
34
  - Reduces package size by removing development-only properties
34
35
  - Prevents leaking internal configuration and metadata
35
36
  - Maintains a clean and focused package.json for end users
@@ -70,10 +71,10 @@ The plugin can be configured in the [**semantic-release** configuration file](ht
70
71
 
71
72
  ## Steps that are used
72
73
 
73
- | Step | Description |
74
- | --------- | -------------------------------------------------------------------------------------------------------- |
74
+ | Step | Description |
75
+ | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
75
76
  | `publish` | - Creates a backup of the original package.json file<br>- Removes all non-preserved properties from package.json<br>- Keeps properties specified in the default list and custom `keep` option<br>- Preserves specific npm scripts if they are in the keep list<br>- Writes the cleaned package.json file |
76
- | `success` | - Restores the original package.json from backup<br>- Updates the version number to match the released version<br>- Removes the backup file<br>- Logs success or error messages |
77
+ | `success` | - Restores the original package.json from backup<br>- Updates the version number to match the released version<br>- Removes the backup file<br>- Logs success or error messages |
77
78
 
78
79
  ### Options
79
80
 
@@ -120,17 +121,12 @@ When publishing a TypeScript package, you might want to keep TypeScript-specific
120
121
  "@anolilab/semantic-release-clean-package-json",
121
122
  {
122
123
  // This are the default values, just a example
123
- "keep": [
124
- "types",
125
- "typings",
126
- "typesVersions",
127
- "module"
128
- ]
129
- }
124
+ "keep": ["types", "typings", "typesVersions", "module"],
125
+ },
130
126
  ],
131
127
  "@anolilab/semantic-release-pnpm",
132
- "@semantic-release/github"
133
- ]
128
+ "@semantic-release/github",
129
+ ],
134
130
  }
135
131
  ```
136
132
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/semantic-release-clean-package-json",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Clean package.json before publish by removing unnecessary properties",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -45,8 +45,8 @@
45
45
  ],
46
46
  "dependencies": {
47
47
  "@semantic-release/error": "^4.0.0",
48
- "@visulima/fs": "^3.1.0",
49
- "@visulima/path": "^1.3.4"
48
+ "@visulima/fs": "^3.1.2",
49
+ "@visulima/path": "^1.3.5"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=18.0.0 <=23.x"