mirror of https://github.com/abpframework/abp.git
2 changed files with 22 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||
|
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); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue