Skip to content

Commit 3fc984f

Browse files
askhatpathscale
authored andcommitted
feat: update scripts to work with bun
1 parent 679d5d6 commit 3fc984f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Diff for: resetup.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$manager = "pnpm"
1+
$manager = "bun"
22

33
$disabledList = @(
44
"vue-composable"
@@ -27,5 +27,5 @@ $next = $nextList -join ","
2727
ncu -u --dep "prod,dev" --concurrency 16 -x $disabled
2828
ncu -u --dep "prod,dev" --concurrency 16 --target newest -f $next
2929
sort-package-json
30-
wsl rm -rf node_modules package-lock.json yarn.lock pnpm-lock.yaml
30+
wsl rm -rf node_modules package-lock.json yarn.lock pnpm-lock.yaml bun.lock
3131
Invoke-Expression "${manager} i"

Diff for: test.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ $command = "build"
33
$projRoot = "D:\CodeProjects"
44

55
Set-Location $projRoot\rollup-plugin-vue3-ui-css-purge
6-
pnpm run prepublishOnly
6+
bun run prepublishOnly
77

88
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue $projRoot\$target\node_modules\@pathscale\rollup-plugin-vue3-ui-css-purge\dist
99
Move-Item $projRoot\rollup-plugin-vue3-ui-css-purge\dist $projRoot\$target\node_modules\@pathscale\rollup-plugin-vue3-ui-css-purge\dist
1010

1111
Set-Location $projRoot\$target\
1212
# npm link
13-
pnpm run $command
13+
bun run $command
1414
.\node_modules\.bin\serve dist

Diff for: test.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/bin/bash
22

3-
TARGET="vue3.dev"
4-
COMMAND="build"
3+
TARGET="vue3.dev"
4+
COMMAND="build"
55
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
66
PARENT_DIR="$(dirname "$SCRIPT_DIR")"
77

88
# Build del plugin
99
cd "$SCRIPT_DIR"
10-
npm run prepublishOnly
10+
bun run prepublishOnly
1111

1212
rm -rf "$PARENT_DIR/$TARGET/node_modules/@pathscale/rollup-plugin-vue3-ui-css-purge/dist"
1313
cp -r dist "$PARENT_DIR/$TARGET/node_modules/@pathscale/rollup-plugin-vue3-ui-css-purge/"
1414

1515
cd "$PARENT_DIR/$TARGET"
16-
npm run $COMMAND
16+
bun run $COMMAND

0 commit comments

Comments
 (0)