Skip to content

Commit fa84505

Browse files
clydinvikerman
authored andcommitted
build: support publishing on windows
1 parent ec925af commit fa84505

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/publish.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ export interface PublishArgs {
2121

2222

2323
function _exec(command: string, args: string[], opts: { cwd?: string }, logger: logging.Logger) {
24+
if (process.platform.startsWith('win')) {
25+
args.unshift('/c', command);
26+
command = 'cmd.exe';
27+
}
28+
2429
const { status, error, stderr, stdout } = spawnSync(command, args, { ...opts });
2530

2631
if (status != 0) {

0 commit comments

Comments
 (0)