diff --git a/npm/ng-packs/scripts/publish.ts b/npm/ng-packs/scripts/publish.ts index 50c1104e71..3b16992357 100644 --- a/npm/ng-packs/scripts/publish.ts +++ b/npm/ng-packs/scripts/publish.ts @@ -27,7 +27,7 @@ const publish = async () => { try { await fse.remove('../dist'); - await execa('yarn', ['install'], { stdout: 'inherit', cwd: '../' }); + await execa('npm', ['install'], { stdout: 'inherit', cwd: '../' }); await fse.rename('../lerna.version.json', '../lerna.json'); diff --git a/npm/preview-publish.ps1 b/npm/preview-publish.ps1 index 11c4ca0a21..9749e64b7e 100644 --- a/npm/preview-publish.ps1 +++ b/npm/preview-publish.ps1 @@ -24,9 +24,9 @@ $commands = ( "npm install", "npm run publish-packages -- --nextVersion $Version --preview", "cd ../../", - "yarn lerna version $Version --yes --no-commit-hooks --skip-git --force-publish", - "yarn replace-with-tilde", - "yarn lerna exec 'npm publish --registry $Registry --tag preview'" + "npm run lerna -- version $Version --yes --no-commit-hooks --skip-git --force-publish", + "npm run replace-with-tilde", + "npm run lerna -- exec 'npm publish --registry $Registry --tag preview'" ) foreach ($command in $commands) { diff --git a/npm/publish.ps1 b/npm/publish.ps1 index aaed04e6d4..ce513d8461 100644 --- a/npm/publish.ps1 +++ b/npm/publish.ps1 @@ -16,12 +16,12 @@ $commands = ( "npm install", "npm run publish-packages -- --nextVersion $Version", "cd ../../", - "yarn lerna version $Version --yes --no-commit-hooks --skip-git --force-publish", - "yarn replace-with-tilde", - "yarn lerna exec 'npm publish --registry https://registry.npmjs.org'", - "yarn update:templates", - "yarn gulp:app", - "yarn gulp:module" + "npm run lerna -- version $Version --yes --no-commit-hooks --skip-git --force-publish", + "npm run replace-with-tilde", + "npm run lerna -- exec 'npm publish --registry https://registry.npmjs.org'", + "npm run update:templates", + "npm run gulp:app", + "npm run gulp:module" ) foreach ($command in $commands) {