fix(smartcli): tighten command parsing and error handling while updating build and package configuration

This commit is contained in:
2026-04-30 14:29:50 +00:00
parent e3f5616320
commit 6279f2cbad
10 changed files with 4379 additions and 5260 deletions
+2 -6
View File
@@ -16,11 +16,7 @@ tap.test('should add an command', async (toolsArg) => {
awesomeCommandSubject.subscribe(() => {
done.resolve();
});
console.log(process.argv);
process.argv.splice(2, 0, 'awesome');
console.log(process.argv);
// Pass process.argv explicitly for testing (bypasses Deno.args in Deno environments)
smartCliTestObject.startParse(process.argv);
smartCliTestObject.startParse(['node', 'test.js', 'awesome']);
await done.promise;
});
@@ -40,4 +36,4 @@ tap.test('should accept a command', async () => {
expect(hasExecuted).toBeTrue();
});
tap.start();
export default tap.start();