Browse Source

chrore: replace some yarn commands with npm

pull/4746/head
mehmet-erim 6 years ago
parent
commit
44e9f26bff
  1. 2
      npm/ng-packs/scripts/publish.ts
  2. 6
      npm/preview-publish.ps1
  3. 12
      npm/publish.ps1

2
npm/ng-packs/scripts/publish.ts

@ -27,7 +27,7 @@ const publish = async () => {
try { try {
await fse.remove('../dist'); 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'); await fse.rename('../lerna.version.json', '../lerna.json');

6
npm/preview-publish.ps1

@ -24,9 +24,9 @@ $commands = (
"npm install", "npm install",
"npm run publish-packages -- --nextVersion $Version --preview", "npm run publish-packages -- --nextVersion $Version --preview",
"cd ../../", "cd ../../",
"yarn lerna version $Version --yes --no-commit-hooks --skip-git --force-publish", "npm run lerna -- version $Version --yes --no-commit-hooks --skip-git --force-publish",
"yarn replace-with-tilde", "npm run replace-with-tilde",
"yarn lerna exec 'npm publish --registry $Registry --tag preview'" "npm run lerna -- exec 'npm publish --registry $Registry --tag preview'"
) )
foreach ($command in $commands) { foreach ($command in $commands) {

12
npm/publish.ps1

@ -16,12 +16,12 @@ $commands = (
"npm install", "npm install",
"npm run publish-packages -- --nextVersion $Version", "npm run publish-packages -- --nextVersion $Version",
"cd ../../", "cd ../../",
"yarn lerna version $Version --yes --no-commit-hooks --skip-git --force-publish", "npm run lerna -- version $Version --yes --no-commit-hooks --skip-git --force-publish",
"yarn replace-with-tilde", "npm run replace-with-tilde",
"yarn lerna exec 'npm publish --registry https://registry.npmjs.org'", "npm run lerna -- exec 'npm publish --registry https://registry.npmjs.org'",
"yarn update:templates", "npm run update:templates",
"yarn gulp:app", "npm run gulp:app",
"yarn gulp:module" "npm run gulp:module"
) )
foreach ($command in $commands) { foreach ($command in $commands) {

Loading…
Cancel
Save