Skip to content

Commit

Permalink
Merge pull request #136 from zowe-actions/fix/windows-syncpack
Browse files Browse the repository at this point in the history
Fix syncpack update not working on Windows
  • Loading branch information
t1m0thyj committed Feb 23, 2024
2 parents 0838328 + 616508a commit 61cfdfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/run-script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion script/scripts/npmUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ export default async function (context: IContext): Promise<void> {
changedFiles.push("**/package.json");
const dependencyList = [...Object.keys(dependencies), ...Object.keys(devDependencies)];

// See https://en.wikipedia.org/wiki/Escape_character#Windows_Command_Prompt for why we need '^'
await exec.exec("npx", ["-y", "--", "syncpack@8", "fix-mismatches", "--dev", "--prod", "--filter",
dependencyList.join("|")]);
dependencyList.join(process.platform === "win32" ? "^|" : "|")]);
await exec.exec("git", ["checkout", lockfilePath]);
await exec.exec("npm", ["install"]);
}
Expand Down

0 comments on commit 61cfdfa

Please sign in to comment.