-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d6ed72
commit 0bb1c8b
Showing
16 changed files
with
140 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
export const sharedArgs = { | ||
cwd: { | ||
type: 'string', | ||
description: 'Current working directory', | ||
description: 'Current working directory' | ||
}, | ||
logLevel: { | ||
type: 'string', | ||
description: 'Log level', | ||
}, | ||
description: 'Log level' | ||
} | ||
} as const | ||
|
||
export const legacyRootDirArgs = { | ||
rootDir: { | ||
type: 'positional', | ||
description: 'Root Directory', | ||
required: false, | ||
}, | ||
required: false | ||
} | ||
} as const |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export function Hyperlink(text: string, url: string): string { | ||
return `\u001b]8;;${url}\u0007${text}\u001b]8;;\u0007`; | ||
return `\u001b]8;;${url}\u0007${text}\u001b]8;;\u0007` | ||
} | ||
|
||
export function Bold(text: string): string { | ||
return `\u001b[1m${text}\u001b[22m`; | ||
return `\u001b[1m${text}\u001b[22m` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
export async function checkEngines() { | ||
const satisfies = await import('semver/functions/satisfies.js').then( | ||
r => | ||
r.default || (r as any as typeof import('semver/functions/satisfies.js')), | ||
(r) => | ||
r.default || (r as any as typeof import('semver/functions/satisfies.js')) | ||
) // npm/node-semver#381 | ||
const currentNode = process.versions.node | ||
const nodeRange = '>= 18.0.0' | ||
|
||
if (!satisfies(currentNode, nodeRange)) { | ||
console.warn( | ||
`Current version of Node.js (\`${currentNode}\`) is unsupported and might cause issues.\n Please upgrade to a compatible version \`${nodeRange}\`.`, | ||
`Current version of Node.js (\`${currentNode}\`) is unsupported and might cause issues.\n Please upgrade to a compatible version \`${nodeRange}\`.` | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.