Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Oct 10, 2023
1 parent 0ed0962 commit c98fc56
Show file tree
Hide file tree
Showing 5 changed files with 300 additions and 185 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"author": {
"name": "Mr.Hope",
"email": "[email protected]",
"url": "https://mrhope.site"
"url": "https://mister-hope.com"
},
"bin": {
"vp-update": "./lib/index.js"
Expand All @@ -33,16 +33,16 @@
"packageManager": "[email protected]",
"dependencies": {
"cac": "^6.7.14",
"execa": "^7.1.1",
"inquirer": "^9.2.7",
"semver": "^7.5.1"
"execa": "^8.0.1",
"inquirer": "^9.2.11",
"semver": "^7.5.4"
},
"devDependencies": {
"@types/inquirer": "9.0.3",
"@types/semver": "7.5.0",
"esbuild": "0.17.19",
"magic-string": "0.30.0",
"rollup": "3.24.0",
"rollup-plugin-esbuild": "5.0.0"
"@types/inquirer": "9.0.4",
"@types/semver": "7.5.3",
"esbuild": "0.19.4",
"magic-string": "0.30.4",
"rollup": "4.0.2",
"rollup-plugin-esbuild": "6.1.0"
}
}
9 changes: 2 additions & 7 deletions plugins/shebang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ export const shebangPlugin = (): Plugin => {
const match = hashBangRegex.exec(code);

if (match) {
// FIXME: This is an issue of ts NodeNext
const str = new (MagicString as unknown as typeof MagicString.default)(
code
);
const str = new MagicString(code);

str.remove(match.index, match[1].length);
shebangMap.set(id, match[1]);
Expand All @@ -46,9 +43,7 @@ export const shebangPlugin = (): Plugin => {
);

if (key) {
// FIXME: This is an issue of ts NodeNext
const str =
new (MagicString as unknown as typeof MagicString.default)(code);
const str = new MagicString(code);

str.prepend(`${shebangMap.get(key)!}\n`);

Expand Down
Loading

0 comments on commit c98fc56

Please sign in to comment.