feat(config): switch compile target configuration from npmextra to smartconfig

This commit is contained in:
2026-03-24 15:06:48 +00:00
parent cb60971f27
commit c5bbc1ca26
7 changed files with 39 additions and 13 deletions

View File

@@ -10,10 +10,10 @@ tsdenoCli.standardCommand().subscribe(async (argvArg) => {
console.log(`@git.zone/tsdeno v${commitinfo.version}`);
console.log('');
console.log('Usage:');
console.log(' tsdeno compile Compile all targets from npmextra.json');
console.log(' tsdeno compile Compile all targets from smartconfig.json');
console.log(' tsdeno compile [deno compile args...] Compile with explicit args (passthrough)');
console.log('');
console.log('When no args are given, tsdeno reads compileTargets from npmextra.json.');
console.log('When no args are given, tsdeno reads compileTargets from smartconfig.json.');
console.log('The compile command temporarily removes package.json before running');
console.log('deno compile, preventing devDependencies from bloating the binary.');
console.log('--node-modules-dir=none is added automatically.');
@@ -24,7 +24,7 @@ tsdenoCli.addCommand('compile').subscribe(async (argvArg) => {
const rawArgs = process.argv.slice(3);
if (rawArgs.length === 0) {
// No args — read targets from npmextra.json
// No args — read targets from smartconfig.json
await tsDeno.compileFromConfig();
} else {
// Args provided — passthrough to deno compile