Skip to content

Commit

Permalink
fix(tools): add shell: true (#1)
Browse files Browse the repository at this point in the history
fix the publishing process on windows
  • Loading branch information
hrueger authored Oct 26, 2020
1 parent 0bfa607 commit 228e404
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/plugin-tools/src/schematics/publish/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export default function (schema: Schema): Rule {
const child = spawn(`nx`, cmdArgs, {
cwd: workspaceDir,
stdio: 'inherit',
shell: true,
});

child.on('error', (error) => {
Expand Down Expand Up @@ -200,6 +201,7 @@ export default function (schema: Schema): Rule {
const child = spawn(`npm`, cmdArgs, {
cwd: path.resolve(workspaceDir, 'dist', 'packages', p),
stdio: 'inherit',
shell: true,
});

child.on('error', (error) => {
Expand Down

0 comments on commit 228e404

Please sign in to comment.