Skip to content

Commit

Permalink
ci: prune package.json before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Dec 16, 2024
1 parent 6f0f00d commit 8428e58
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Build package
run: bun run prepack

- name: Prune package
run: bunx culls --preserve=svelte

- name: Publish package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
Expand Down
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
}
},
"scripts": {
"prepack": "bun test",
"build:prune-package": "bun scripts/prune-package.ts"
"prepack": "bun test"
},
"devDependencies": {
"@carbon/icon-helpers": "latest",
"@carbon/pictograms": "12.43.0",
"@types/bun": "latest",
"culls": "^0.1.1",
"sveld": "latest",
"svelte": "^5.0.3",
"typescript": "latest"
Expand Down
10 changes: 0 additions & 10 deletions scripts/prune-package.ts

This file was deleted.

0 comments on commit 8428e58

Please sign in to comment.