mirror of https://github.com/abpframework/abp
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.
20 lines
430 B
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);
|
|
}
|
|
}
|