Skip to content

Commit 5ead143

Browse files
committed
chore: rm -rf -> rimraf
1 parent 8b453dd commit 5ead143

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.github/workflows/extension.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
target: alpine-x64
4242
npm_config_arch: x64
4343
- os: macos-latest
44-
target: darwin-x64
44+
target: darwin-arm64
4545
npm_config_arch: x64
4646
- os: macos-latest
4747
target: darwin-arm64
@@ -64,7 +64,7 @@ jobs:
6464
working-directory: ./extension/vscode
6565
run: |
6666
pnpm rewrite-deps
67-
rm -rf node_modules
67+
pnpm clean
6868
npm i
6969
pnpm release
7070
env:

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
working-directory: ./extension/vscode
4343
run: |
4444
pnpm rewrite-deps
45-
rm -rf node_modules
45+
rimraf node_modules
4646
npm i
4747
pnpm release
4848
env:

extension/vscode/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,11 @@
201201
"build:all": "pnpm build:shared && pnpm build:lsp && pnpm build:ts-plugin",
202202
"build": "pnpm build:all && tsup",
203203
"dev": "tsup --watch src/index.ts --watch ../language-server/dist/index.js --watch ../shared/dist/index.js",
204-
"clean": "rimraf dist",
204+
"clean": "rimraf dist node_modules",
205205
"typecheck": "tsc --noEmit",
206206
"rewrite-deps": "tsx ./scripts/rewrite-workspace-dependencies.ts",
207207
"release": "pnpm build --silent && tsx ./scripts/publish.ts",
208-
"vsce:package": "pnpm --silent build && pnpm vsix-builder package",
209-
"vsce:prerelease": "pnpm --silent build && pnpm vsix-builder package patch --pre-release -o panda.vsix"
208+
"vsce:package": "pnpm --silent build && pnpm vsix-builder package"
210209
},
211210
"dependencies": {
212211
"@pandacss/dev": "workspace:*",

extension/vscode/scripts/publish.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if (!rcVersion) {
3434
}
3535

3636
const commands = {
37-
vscode_package: 'pnpm run vsce:package',
37+
vscode_package: `pnpm vsix-builder package ${rcVersion} --target ${target} -o panda.vsix`,
3838
vscode_publish: `pnpm vsce publish --packagePath panda.vsix --pat ${process.env.VSCE_TOKEN}`,
3939
// rc release: publish to VS Code Marketplace with today's date as patch number
4040
vscode_package_rc: `pnpm vsix-builder package ${rcVersion} --pre-release --target ${target} -o panda.vsix`,

0 commit comments

Comments
 (0)