Skip to content

Commit

Permalink
fix rmdir being deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedek Kozma committed Mar 22, 2022
1 parent 82f19e5 commit 2e890e2
Show file tree
Hide file tree
Showing 4 changed files with 1,230 additions and 1,250 deletions.
7 changes: 4 additions & 3 deletions dist/index.js

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@
"author": "Cyberbeni",
"license": "MIT",
"dependencies": {
"@actions/cache": "^1.0.8",
"@actions/cache": "^1.0.10",
"@actions/core": "^1.6.0",
"@actions/exec": "^1.1.0",
"@actions/exec": "^1.1.1",
"os": "^0.1.2",
"semver": "^7.3.5",
"uuid": "^8.3.2"
},
"devDependencies": {
"@types/jest": "^27.0.3",
"@types/node": "^16.11.11",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.22",
"@types/semver": "^7.3.9",
"@types/uuid": "^8.3.3",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"@vercel/ncc": "^0.32.0",
"eslint": "^8.3.0",
"jest": "^27.4.2",
"jest-circus": "^27.4.2",
"ts-jest": "^27.0.7",
"typescript": "^4.5.2"
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"@vercel/ncc": "^0.33.3",
"eslint": "^8.11.0",
"jest": "^27.5.1",
"jest-circus": "^27.5.1",
"ts-jest": "^27.1.3",
"typescript": "^4.6.2"
}
}
2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class SwiftToolInstaller {
const itemPath = `${this.productDirectory}/${itemName}`
try {
if (fs.lstatSync(itemPath).isDirectory()) {
fs.rmdirSync(itemPath, { recursive: true })
fs.rmSync(itemPath, { recursive: true })
} else {
fs.accessSync(itemPath, fs.constants.X_OK)
}
Expand Down
Loading

0 comments on commit 2e890e2

Please sign in to comment.