-
Notifications
You must be signed in to change notification settings - Fork 25
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
4cf21db
commit 330b24d
Showing
26 changed files
with
526 additions
and
774 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,9 @@ docs | |
oclif.manifest.json | ||
|
||
# -- CLEAN ALL | ||
*.tsbuildinfo | ||
.eslintcache | ||
.wireit | ||
node_modules | ||
|
||
# -- | ||
|
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,8 +1,9 @@ | ||
{ | ||
"require": "ts-node/register,source-map-support/register", | ||
"require": "ts-node/register", | ||
"watch-extensions": "ts", | ||
"recursive": true, | ||
"reporter": "spec", | ||
"timeout": 5000, | ||
"exclude": "node_modules/**/*" | ||
"exclude": "node_modules/**/*", | ||
"node-option": ["loader=ts-node/esm"] | ||
} |
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,7 @@ | ||
#!/usr/bin/env node | ||
|
||
void (async () => { | ||
const oclif = await import('@oclif/core'); | ||
oclif.settings.performanceEnabled = true; | ||
await oclif.execute({ development: true, dir: import.meta.url }); | ||
})(); |
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,30 @@ | ||
#!/usr/bin/env node | ||
|
||
void (async () => { | ||
// Since the CLI is a single process, we can have a larger amount of max listeners since | ||
// the process gets shut down. Don't set it to 0 (no limit) since we should still be aware | ||
// of rouge event listeners | ||
process.setMaxListeners(parseInt(process.env.SF_MAX_EVENT_LISTENERS, 10) || 1000); | ||
|
||
// Don't let other plugins override the CLI specified max listener count | ||
process.setMaxListeners = () => {}; | ||
|
||
// Pre-process/prune flags before creating or running the actual CLI | ||
(await import('../dist/flags.js')).preprocessCliFlags(process); | ||
|
||
const oclif = await import('@oclif/core'); | ||
const { createRequire } = await import('module'); | ||
const pjson = createRequire(import.meta.url)('../package.json'); | ||
|
||
const cli = await import('../dist/cli.js'); | ||
|
||
cli | ||
.create({ version: pjson.version, bin: pjson.oclif.bin, channel: 'stable' }) | ||
.run() | ||
.then(async () => { | ||
await oclif.flush(); | ||
}) | ||
.catch(async (err) => { | ||
await oclif.handle(err); | ||
}); | ||
})(); |
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
Oops, something went wrong.