WIP
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
@echo off
|
||||
|
||||
node "%~dp0\run" %*
|
||||
+24
-2
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user