Skip to content

Commit 6470643

Browse files
committed
fix: suite release [package]
1 parent c6a8a42 commit 6470643

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.suite-cli/cli/scripts/scripts.module.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,16 +1221,15 @@ const releasePackage = async ({ package }) => {
12211221
const package_json_path = join(cwd(), 'package.json');
12221222

12231223
// Read the package.json file
1224-
console.log({ package_json_path })
12251224
const { workspace_name } = retrieveWorkSpaceName({ package_json_path });
12261225
if (package) {
12271226
logInfo({ message: `Looking for package: ${workspace_name}/${package}` });
1228-
await executeCommand('yarn', ['workspace', `${workspace_name}/${package}`, 'release']);
1227+
await executeCommand('yarn', ['workspace', `${workspace_name}/${package}`, 'release'],{stdio:'inherit',shell:true});
12291228
} else {
1230-
await executeCommand('yarn', ['generate:release'], { cwd: cwd() });
1229+
await executeCommand('yarn', ['generate:release'], { cwd: cwd(),stdio:'inherit',shell:true });
12311230
}
12321231
} catch (error) {
1233-
console.error('Error occurred:', error);
1232+
ora().fail('Command failed to run');
12341233
}
12351234
}
12361235

0 commit comments

Comments
 (0)