0.0.15 • Published 11 months ago
@linkurious/code-tools v0.0.15
Code automation tools
npm i -D @linkurious/code-toolssync_versions
$ sync_versionsSyncs versions between package.json, .version, .bumpversion.cfg. Use in postbump npm script:
"scripts": {
"postversion": "sync_versions", // will sync everything after 'npm version ...'
...
}copy_npmrc
$ copy_npmrcCopies .npmrc to all the subpackages in packages directory of a monorepository. Needed to make lerna work with Node<16.x.
"scripts": {
"postinstall": "copy_npmrc && lerna bootstrap", // will copy .npmrc to all subpackages
...
}