@prover-coder-ai/dist-deps-prune 1.0.2 → 1.0.4

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # dist-deps-prune
2
2
 
3
+ ## 1.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: automated version bump
8
+
9
+ ## 1.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - chore: automated version bump
14
+
3
15
  ## 1.0.2
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -34,6 +34,29 @@ npx @prover-coder-ai/dist-deps-prune release --dist ./dist --package ./package.j
34
34
  npx @prover-coder-ai/dist-deps-prune restore --package ./package.json
35
35
  ```
36
36
 
37
+ ## CI/CD (Release workflow)
38
+
39
+ Use the tool during release so only the `dist/`-used dependencies stay in the published package.
40
+ Below is a minimal GitHub Actions snippet that builds, prunes, publishes, and restores automatically:
41
+
42
+ ```yaml
43
+ - name: Build dist
44
+ run: pnpm build
45
+
46
+ - name: Publish with dist-deps-prune (auto restore)
47
+ run: |
48
+ npx @prover-coder-ai/dist-deps-prune release \
49
+ --dist ./dist \
50
+ --package ./package.json \
51
+ --prune-dev true \
52
+ --command "npm publish" \
53
+ --silent
54
+ env:
55
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
56
+ ```
57
+
58
+ If you already run a publish command (e.g., `changeset-publish`), just put it into `--command`.
59
+
37
60
  ## Notes
38
61
 
39
62
  - Supports ESM + CJS static imports in `.js/.mjs/.cjs/.d.ts`.