1.4.0 • Published 4 years ago

lerna-script-tasks-modules v1.4.0

Weekly downloads
283
License
BSD
Repository
github
Last release
4 years ago

lerna-script-tasks-modules

Syncs dependencies/devDependencies/peerDependencies for modules within repo.

install

npm install --save-dev lerna-script-tasks-modules

Usage

Say you have modules:

  • /packages/a with version 1.0.0
  • /packages/b with version 1.0.0 and it depends on module a where {dependencies: {"a": "~1.0.0"}}

and you up the version of /packages/a to 2.0.0. If you want for version of a to be in sync in module b, then you could do:

//lerna.js
const syncModules = require('lerna-script-tasks-modules')

module.exports['modules:sync'] = syncModules()

and then upon executing lerna-script modules:sync version of dependency a for module b will be set to ~2.0.0. Same goes for devDependencies and peerDependencies.

API

({packages: [], transformDependencies: version => version, transformPeerDependencies: version => version})(log): Promise

Returns a function that syncs module versions across repo.

Parameters:

  • packages, optional = list of lerna packages. Loads defaults of not provided.
  • transformDependencies, optional = function to transform dependencies and devDependencies. Defaults to version => '~' + version.
  • transformPeerDependencies, optional - function to transform peerDependencies. Defaults to version => '>=' + version.
1.4.0

4 years ago

1.3.3

4 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1-alpha.0

5 years ago

1.0.0-0

5 years ago

0.10.0

5 years ago

0.9.6

6 years ago

0.9.5

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.1

7 years ago

0.9.0

7 years ago

0.8.8

7 years ago

0.8.7

7 years ago

0.8.6

7 years ago

0.8.5

7 years ago

0.8.4

7 years ago

0.8.3

7 years ago

0.8.2

7 years ago

0.8.1

7 years ago

0.8.0

7 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.8

7 years ago

0.5.7

7 years ago

0.5.6

7 years ago

0.5.5

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago