An approximation of Lerna publish using alle
- Walk through a packages dir
- Collect package dependencies through static analysis
- Merge top-level
package.json
metadata - Publish packages
npm install --save-dev alle-publish
Have something bump the version
of the parent package, then call
alle-publish
.
Looks for the nearest .allerc
in JSON format (example shown here in JS for
comments).
{
// optional scoped package support
scope: '@myorg',
// package.json template extended into parent package
template: {
main: 'index.js',
// supports private registries
publishConfig: {
registry: 'http://example.com'
}
},
// pull these properties from the parent package.json
extends: [
'repository',
'keywords',
'bugs',
'homepage',
'license',
'author'
],
// optionally transform resolved dependencies during static analysis
transformers: {
// npm package/a package in node_modules
// option or list of options passed to the transformer
'allo-replace-transformer': {
pattern: '/foo/',
replacement: 'bar'
}
}
}
© 2016 Tom Vincent git@tlvince.com (https://tlvince.com)
Released under the MIT license.