diff --git a/cmd/sync/index.ts b/cmd/sync/index.ts index 31463ff..e135959 100644 --- a/cmd/sync/index.ts +++ b/cmd/sync/index.ts @@ -122,7 +122,7 @@ const diff = (mix: MixFile, lock: MixLockFile) => { } const installPackage = async (lock: MixLockFile, id: string, version: string) => { - await exec(`winget install --id ${id} --version ${version} --exact --silent --force --disable-interactivity`, (error, _, e) => { + await exec(`winget install --id ${id} --version ${version} --exact --force`, (error, _, e) => { if (error) { console.error(`Error installing package ${id}@${version}:`, error); return; @@ -143,7 +143,7 @@ const installPackage = async (lock: MixLockFile, id: string, version: string) => }; const removePackage = async (lock: MixLockFile, id: string, version: string) => { - exec(`winget remove --id ${id} --version ${version} --silent`, (error, _, e) => { + exec(`winget remove --id ${id} --version ${version}`, (error, _, stderr) => { if (error) { console.error(`Error removing package ${id}@${version}:`, error); return; @@ -157,7 +157,7 @@ const removePackage = async (lock: MixLockFile, id: string, version: string) => } else { console.warn(`Package ${id}@${version} not found in lock file.`); } - - e && console.error(e); + + stderr && console.error(stderr); }); } \ No newline at end of file diff --git a/index.ts b/index.ts index 40c19a9..25f8cd7 100644 --- a/index.ts +++ b/index.ts @@ -6,7 +6,7 @@ const program = new Command(); program .name('mix') .description('a declerative file-based package manager for windows.') - .version('0.0.8', '-v, --version', 'output the current version'); + .version('0.0.9', '-v, --version', 'output the current version'); registerCommands(program); program.parse(); \ No newline at end of file diff --git a/package.json b/package.json index 9d6d306..b6ee2da 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@grng/mix", - "version": "0.0.8", + "version": "0.0.9", "publishConfig": { "access": "public" },