chore(scripts): update angular versions in dist directly
This commit is contained in:
parent
5b81bdfcf1
commit
fc35dd3efe
|
@ -254,6 +254,22 @@ function updatePackageVersions(tasks, packages, version) {
|
|||
}
|
||||
});
|
||||
|
||||
// angular & angular-server need to update their dist versions
|
||||
if (package === 'angular' || package === 'packages/angular-server') {
|
||||
const distPackage = path.join(package, 'dist');
|
||||
|
||||
updatePackageVersion(tasks, distPackage, version);
|
||||
|
||||
tasks.push({
|
||||
title: `${package} update @ionic/core dependency, if present ${tc.dim(`(${version})`)}`,
|
||||
task: async () => {
|
||||
const pkg = readPkg(distPackage);
|
||||
updateDependency(pkg, '@ionic/core', version);
|
||||
writePkg(distPackage, pkg);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (package === 'packages/react-router') {
|
||||
tasks.push({
|
||||
title: `${package} update @ionic/react dependency, if present ${tc.dim(`(${version})`)}`,
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
|
||||
// copy the package.json to the directory to dist to publish it
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const package = process.argv[2];
|
||||
|
||||
const srcPath = path.join(__dirname, '..', package, 'package.json');
|
||||
let packageContent = fs.readFileSync(srcPath, 'utf-8');
|
||||
|
||||
fs.writeFileSync(path.join(__dirname, '..', package, 'dist', 'package.json'), packageContent);
|
|
@ -113,9 +113,6 @@ async function preparePackages(packages, version, install) {
|
|||
// add update package.json of each project
|
||||
common.updatePackageVersions(tasks, packages, version);
|
||||
|
||||
// copy package.json to dist
|
||||
common.copyPackageToDist(tasks, packages);
|
||||
|
||||
// generate changelog
|
||||
generateChangeLog(tasks);
|
||||
|
||||
|
|
Loading…
Reference in New Issue