fix(config): switch configuration loading and saving from npmextra.json to smartconfig.json

This commit is contained in:
2026-03-24 15:09:42 +00:00
parent 6a3de7dba8
commit 37da233ddf
9 changed files with 50 additions and 24 deletions

View File

@@ -18,7 +18,7 @@ tswatchCli.standardCommand().subscribe(async (argvArg) => {
// Config exists - run with it
const tsWatch = TsWatch.fromConfig();
if (tsWatch) {
logger.log('info', 'Starting tswatch with configuration from npmextra.json');
logger.log('info', 'Starting tswatch with configuration from smartconfig.json');
await tsWatch.start();
} else {
logger.log('error', 'Failed to load configuration');
@@ -26,7 +26,7 @@ tswatchCli.standardCommand().subscribe(async (argvArg) => {
}
} else {
// No config - launch wizard
logger.log('info', 'No tswatch configuration found in npmextra.json');
logger.log('info', 'No tswatch configuration found in smartconfig.json');
const config = await runInit();
if (config) {
// Run with the newly created config