This commit is contained in:
2024-11-09 19:15:29 -05:00
parent 6d6e63ea0d
commit 23e234eac0
13 changed files with 460 additions and 9 deletions
-3
View File
@@ -1,3 +0,0 @@
@echo off
node "%~dp0\run" %*
+24 -2
View File
@@ -2,10 +2,32 @@
import {execute, settings} from '@oclif/core'
import { execute, settings } from '@oclif/core'
import { execSync } from 'child_process'
try {
// // Source asdf from your shell profile and capture environment variables
// const asdfEnv = execSync('source ~/.asdf/asdf.sh && env', { shell: '/bin/bash' })
// .toString()
// .split('\n')
// .reduce((acc, line) => {
// const [key, value] = line.split('=');
// if (key && value) acc[key] = value;
// return acc;
// }, {});
// // Add the asdf environment to the current process
// Object.assign(process.env, asdfEnv);
// // Now, asdf is available in process.env, and you can use it
// console.log(execSync('asdf list all nodejs').toString());
} catch (error) {
console.error(`Failed to load asdf: ${error.message}`);
}
// process.env.DEBUG=""
settings.performanceEnabled = true
await execute({dir: import.meta.url})
await execute({ dir: import.meta.url })