Skip to content

Commit 26f7be5

Browse files
hruegerNathanWalker
authored andcommitted
fix(tools): add shell: true (#1)
fix the publishing process on windows
1 parent 5376880 commit 26f7be5

File tree

1 file changed

+2
-0
lines changed
  • packages/plugin-tools/src/schematics/publish

1 file changed

+2
-0
lines changed

packages/plugin-tools/src/schematics/publish/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export default function (schema: Schema): Rule {
147147
const child = spawn(`nx`, cmdArgs, {
148148
cwd: workspaceDir,
149149
stdio: 'inherit',
150+
shell: true,
150151
});
151152

152153
child.on('error', (error) => {
@@ -201,6 +202,7 @@ export default function (schema: Schema): Rule {
201202
const child = spawn(`npm`, cmdArgs, {
202203
cwd: path.resolve(workspaceDir, 'dist', 'packages', p),
203204
stdio: 'inherit',
205+
shell: true,
204206
});
205207

206208
child.on('error', (error) => {

0 commit comments

Comments
 (0)