Skip to content

Commit d5dd096

Browse files
committed
maybe fix release 2
1 parent 9579fed commit d5dd096

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
id: build
2323
run: |
2424
bun install
25+
bun run pack:i
2526
bun run build
2627
mkdir ${{ env.PLUGIN_NAME }}
2728
cp main.js manifest.json styles.css ${{ env.PLUGIN_NAME }}

automation/installScript.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@ import config from './config.json';
33

44
async function installScript() {
55
for (const corePackage of config.corePackages) {
6-
await $('rm -rf "node_modules"', `packages/${corePackage}`, Verboseness.VERBOSE);
7-
await $('rm "bun.lockb"', `packages/${corePackage}`, Verboseness.VERBOSE);
86
await $('bun i', `packages/${corePackage}`, Verboseness.VERBOSE);
97
}
108

119
for (const nonCorePackage of config.packages) {
12-
await $('rm -rf "node_modules"', `packages/${nonCorePackage}`, Verboseness.VERBOSE);
13-
await $('rm "bun.lockb"', `packages/${nonCorePackage}`, Verboseness.VERBOSE);
1410
await $('bun i', `packages/${nonCorePackage}`, Verboseness.NORMAL);
1511
}
1612
}

automation/installScriptClean.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { $, Verboseness } from 'utils/shellUtils';
2+
import config from './config.json';
3+
4+
async function installScriptClean() {
5+
for (const corePackage of config.corePackages) {
6+
await $('rm -rf "node_modules"', `packages/${corePackage}`, Verboseness.VERBOSE);
7+
await $('rm "bun.lockb"', `packages/${corePackage}`, Verboseness.VERBOSE);
8+
await $('bun i', `packages/${corePackage}`, Verboseness.VERBOSE);
9+
}
10+
11+
for (const nonCorePackage of config.packages) {
12+
await $('rm -rf "node_modules"', `packages/${nonCorePackage}`, Verboseness.VERBOSE);
13+
await $('rm "bun.lockb"', `packages/${nonCorePackage}`, Verboseness.VERBOSE);
14+
await $('bun i', `packages/${nonCorePackage}`, Verboseness.NORMAL);
15+
}
16+
}
17+
18+
await installScriptClean();

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"check": "bun run format:check && bun run tsc && bun run svelte-check && bun run lint && bun run test",
2121
"check:fix": "bun run format && bun run tsc && bun run svelte-check && bun run lint:fix && bun run test",
2222
"pack:i": "bun run automation/installScript.ts",
23+
"pack:i:clean": "bun run automation/installScriptClean.ts",
2324
"release": "bun run automation/release.ts",
2425
"serve-publish": "bun --watch automation/publishServer.ts",
2526
"stats": "bun run automation/stats.ts"

0 commit comments

Comments
 (0)