-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oclif/oclif#1016 Stuck on oclif/test#301
- Loading branch information
Showing
8 changed files
with
43 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env ts-node | ||
|
||
/* eslint-disable node/shebang */ | ||
|
||
import oclif from '@oclif/core' | ||
import path from 'node:path' | ||
import url from 'node:url' | ||
// eslint-disable-next-line node/no-unpublished-import | ||
import {register} from 'ts-node' | ||
|
||
// In dev mode -> use ts-node and dev plugins | ||
process.env.NODE_ENV = 'development' | ||
|
||
register({ | ||
project: path.join(path.dirname(url.fileURLToPath(import.meta.url)), '..', 'tsconfig.json'), | ||
}) | ||
|
||
// In dev mode, always show stack traces | ||
oclif.settings.debug = true | ||
|
||
// Start the CLI | ||
oclif | ||
.run(process.argv.slice(2), import.meta.url) | ||
.then(oclif.flush) | ||
.catch(oclif.Errors.handle) | ||
Check failure on line 25 in bin/dev.js GitHub Actions / Test (16.x)
Check failure on line 25 in bin/dev.js GitHub Actions / Test (18.x)
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env node | ||
|
||
import oclif from '@oclif/core' | ||
|
||
oclif | ||
.run(process.argv.slice(2), import.meta.url) | ||
.then(oclif.flush) | ||
.catch(oclif.Errors.handle) | ||
Check failure on line 8 in bin/run.js GitHub Actions / Test (16.x)
Check failure on line 8 in bin/run.js GitHub Actions / Test (18.x)
|
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
File renamed without changes.
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,14 +1,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"composite": true, | ||
"declaration": true, | ||
"importHelpers": true, | ||
"module": "commonjs", | ||
"module": "ES2020", | ||
"moduleResolution": "node", | ||
"outDir": "lib", | ||
"rootDir": "src", | ||
"strict": true, | ||
"target": "es2017" | ||
}, | ||
"include": [ | ||
"src/**/*" | ||
] | ||
], | ||
"ts-node": { | ||
"esm": true | ||
} | ||
} |