Skip to content

Commit

Permalink
chore: fix sync scaffold version (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored Feb 24, 2022
1 parent c2ed8a7 commit f105ad3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/publish/sync-scaffold-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ const nextVersions = {
};
const name = (process.argv.length >= 2 ? process.argv[2] : '') || 'ng-alain';
const packagePath = path.resolve(__dirname, `../../../${name}/package.json`);
console.log(`Use packagePath: ` + packagePath);
if (!fs.existsSync(packagePath)) {
throw Error(`所选的文件不存在, ${packagePath}`)
}

const json = fs.readJSONSync(packagePath);
// Update third party
Expand Down

0 comments on commit f105ad3

Please sign in to comment.