From 925ff60134435d64e100a9c54c65c7f903a09a63 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Mon, 29 Apr 2024 00:08:26 -0500 Subject: [PATCH] /internal route --- src/commands/build.ts | 6 ++---- src/utilities/preprocessor.ts | 2 +- templates/handler.js | 3 --- 3 files changed, 3 insertions(+), 8 deletions(-) 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"; - -