You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/npm/ng-packs/scripts/replace-with-preview.ts

20 lines
430 B

import fse from 'fs-extra';
export default async function(version: string) {
const corePkgPath = '../packages/core/package.json';
try {
const corePkg = await fse.readJSON(corePkgPath);
await fse.writeJSON(
corePkgPath,
{
...corePkg,
dependencies: { ...corePkg.dependencies, '@abp/utils': version },
},
{ spaces: 2 },
);
} catch (error) {
console.error(error);
}
}