Update CLI scripts to enhance functionality and error handling. Change shebang in cli-ink.js for improved compatibility with TypeScript. Modify websearch.js to utilize EXA_API_KEY from environment variables, adding error handling for missing keys. Refactor wget.js to use ES module syntax and improve filename generation for downloaded content.
This commit is contained in:
9
scripts/register-jsx-loader.mjs
Normal file
9
scripts/register-jsx-loader.mjs
Normal file
@@ -0,0 +1,9 @@
|
||||
// Registers our custom JSX ESM loader using Node's stable register() API
|
||||
import { register } from 'node:module';
|
||||
import { pathToFileURL } from 'node:url';
|
||||
|
||||
// Resolve relative to project root cwd
|
||||
register('./scripts/jsx-loader.mjs', pathToFileURL('./'));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user