diff --git a/src/commands/build.ts b/src/commands/build.ts index 6b94b37..b93fba0 100644 --- a/src/commands/build.ts +++ b/src/commands/build.ts @@ -188,9 +188,7 @@ export async function build(options: Record) { }, }); const commandsPaths = await glob(`**/*`, { - ignore: { - ignored: p => p.isDirectory() - }, + ignore: { ignored: p => p.isDirectory() }, cwd: "./src/commands/" }); const commandNames = commandsPaths.map(p.parse) @@ -204,7 +202,7 @@ export async function build(options: Record) { await writeFile("./dist/out.js", commandsImports.join("\n") + '\n' + commandMapTemplate); - + console.log(entryPoints) console.log(commandsImports) console.log(commandMapTemplate) diff --git a/src/utilities/preprocessor.ts b/src/utilities/preprocessor.ts index a31785e..284e1a1 100644 --- a/src/utilities/preprocessor.ts +++ b/src/utilities/preprocessor.ts @@ -42,7 +42,7 @@ const writeTsConfig = async (format: 'cjs' | 'esm', configPath: string, fw: File compilerOptions: { //module determines top level await. CJS doesn't have that abliity afaik module: format === 'cjs' ? 'node' : 'esnext', - moduleResolution: 'node', + moduleResolution: 'node16', strict: true, skipLibCheck: true, ...target, diff --git a/templates/handler.js b/templates/handler.js index b1b6119..e69de29 100644 --- a/templates/handler.js +++ b/templates/handler.js @@ -1,3 +0,0 @@ -"use modules"; - -