/internal route

This commit is contained in:
Jacob Nguyen
2024-04-29 00:08:26 -05:00
parent 924810e1ac
commit 925ff60134
3 changed files with 3 additions and 8 deletions

View File

@@ -188,9 +188,7 @@ export async function build(options: Record<string, any>) {
},
});
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<string, any>) {
await writeFile("./dist/out.js",
commandsImports.join("\n") + '\n' +
commandMapTemplate);
console.log(entryPoints)
console.log(commandsImports)
console.log(commandMapTemplate)

View File

@@ -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,

View File

@@ -1,3 +0,0 @@
"use modules";