Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace rm -rf with node -e for cross-platform file deletion #501

Merged
merged 6 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.idea/

/.yarn/*
aduh95 marked this conversation as resolved.
Show resolved Hide resolved
!/.yarn/cache
!/.yarn/patches
!/.yarn/releases
!/.yarn/sdks
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"eslint-plugin-arca": "^0.16.0",
"jest": "^29.0.0",
"proxy-from-env": "^1.1.0",
"rimraf": "^5.0.7",
aduh95 marked this conversation as resolved.
Show resolved Hide resolved
"semver": "^7.5.2",
"supports-color": "^9.0.0",
"tar": "^6.2.1",
Expand All @@ -56,12 +57,12 @@
"undici-types": "6.x"
},
"scripts": {
"build": "rm -rf dist shims && run build:bundle && ts-node ./mkshims.ts",
"build": "rimraf dist shims && run build:bundle && ts-node ./mkshims.ts",
aduh95 marked this conversation as resolved.
Show resolved Hide resolved
"build:bundle": "esbuild ./sources/_lib.ts --bundle --platform=node --target=node18.17.0 --external:corepack --outfile='./dist/lib/corepack.cjs' --resolve-extensions='.ts,.mjs,.js'",
"corepack": "ts-node ./sources/_cli.ts",
aduh95 marked this conversation as resolved.
Show resolved Hide resolved
"lint": "eslint .",
"prepack": "yarn build",
"postpack": "rm -rf dist shims",
"postpack": "rimraf dist shims",
aduh95 marked this conversation as resolved.
Show resolved Hide resolved
"typecheck": "tsc --noEmit",
"test": "jest"
},
Expand Down
14 changes: 13 additions & 1 deletion yarn.lock
aduh95 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2232,6 +2232,7 @@ __metadata:
eslint-plugin-arca: "npm:^0.16.0"
jest: "npm:^29.0.0"
proxy-from-env: "npm:^1.1.0"
rimraf: "npm:^5.0.7"
semver: "npm:^7.5.2"
supports-color: "npm:^9.0.0"
tar: "npm:^6.2.1"
Expand Down Expand Up @@ -3247,7 +3248,7 @@ __metadata:
languageName: node
linkType: hard

"glob@npm:^10.2.2, glob@npm:^10.3.10":
"glob@npm:^10.2.2, glob@npm:^10.3.10, glob@npm:^10.3.7":
version: 10.4.1
resolution: "glob@npm:10.4.1"
dependencies:
Expand Down Expand Up @@ -5438,6 +5439,17 @@ __metadata:
languageName: node
linkType: hard

"rimraf@npm:^5.0.7":
version: 5.0.7
resolution: "rimraf@npm:5.0.7"
dependencies:
glob: "npm:^10.3.7"
bin:
rimraf: dist/esm/bin.mjs
checksum: 10c0/bd6dbfaa98ae34ce1e54d1e06045d2d63e8859d9a1979bb4a4628b652b459a2d17b17dc20ee072b034bd2d09bd691e801d24c4d9cfe94e16fdbcc8470a1d4807
languageName: node
linkType: hard

"run-parallel@npm:^1.1.9":
version: 1.2.0
resolution: "run-parallel@npm:1.2.0"
Expand Down