@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 +12 -0
- package/README.md +23 -0
- package/dist/main.js +1101 -0
- package/dist/main.js.map +1 -0
- package/package.json +6 -42
- package/.jscpd.json +0 -16
- package/biome.json +0 -34
- package/eslint.config.mts +0 -305
- package/eslint.effect-ts-check.config.mjs +0 -220
- package/linter.config.json +0 -33
- package/src/app/main.ts +0 -28
- package/src/app/program.ts +0 -220
- package/src/core/cli.ts +0 -272
- package/src/core/config.ts +0 -86
- package/src/core/errors.ts +0 -66
- package/src/core/glob.ts +0 -87
- package/src/core/json.ts +0 -20
- package/src/core/normalize.ts +0 -90
- package/src/core/package-json.ts +0 -127
- package/src/core/parse.ts +0 -210
- package/src/core/prune.ts +0 -138
- package/src/core/report.ts +0 -145
- package/src/core/types.ts +0 -41
- package/src/shell/builtins.ts +0 -32
- package/src/shell/command.ts +0 -114
- package/src/shell/config-file.ts +0 -71
- package/src/shell/package-json.ts +0 -80
- package/src/shell/release.ts +0 -110
- package/src/shell/scan.ts +0 -180
- package/tests/app/component-tagger.integration.test.ts +0 -143
- package/tests/app/release.test.ts +0 -39
- package/tests/app/test-helpers.ts +0 -24
- package/tests/core/parse.test.ts +0 -91
- package/tsconfig.json +0 -19
- package/vite.config.ts +0 -32
- package/vitest.config.ts +0 -85
package/CHANGELOG.md
CHANGED
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`.
|