mirror of
https://github.com/sern-handler/cli
synced 2026-06-06 01:16:53 +00:00
/internal route
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
"use modules";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user