Comparing version 3.5.0 to 3.5.2
@@ -1,3 +0,11 @@ | ||
<a name="3.5.0"></a> | ||
## [3.5.2](https://github.com/JamieMason/syncpack/compare/3.5.0...3.5.2) (2019-01-07) | ||
### Bug Fixes | ||
- **core:** improve handling of non-semver versions | ||
([9e1176a](https://github.com/JamieMason/syncpack/commit/9e1176a)), closes | ||
[#14](https://github.com/JamieMason/syncpack/issues/14) | ||
- **npm:** update dependencies | ||
([09d9f04](https://github.com/JamieMason/syncpack/commit/09d9f04)) | ||
# [3.5.0](https://github.com/JamieMason/syncpack/compare/3.4.0...3.5.0) (2018-10-29) | ||
@@ -10,4 +18,2 @@ | ||
<a name="3.4.0"></a> | ||
# [3.4.0](https://github.com/JamieMason/syncpack/compare/3.3.0...3.4.0) (2018-10-28) | ||
@@ -21,4 +27,2 @@ | ||
<a name="3.3.0"></a> | ||
# [3.3.0](https://github.com/JamieMason/syncpack/compare/3.0.0...3.3.0) (2018-10-28) | ||
@@ -43,4 +47,2 @@ | ||
<a name="3.0.0"></a> | ||
# [3.0.0](https://github.com/JamieMason/syncpack/compare/2.0.1...3.0.0) (2018-08-25) | ||
@@ -73,4 +75,2 @@ | ||
<a name="2.0.1"></a> | ||
## [2.0.1](https://github.com/JamieMason/syncpack/compare/2.0.0...2.0.1) (2018-04-29) | ||
@@ -83,4 +83,2 @@ | ||
<a name="2.0.0"></a> | ||
# [2.0.0](https://github.com/JamieMason/syncpack/compare/1.3.2...2.0.0) (2018-04-29) | ||
@@ -99,4 +97,2 @@ | ||
<a name="1.3.2"></a> | ||
## [1.3.2](https://github.com/JamieMason/syncpack/compare/1.2.2...1.3.2) (2018-04-28) | ||
@@ -109,4 +105,2 @@ | ||
<a name="1.2.2"></a> | ||
## [1.2.2](https://github.com/JamieMason/syncpack/compare/1.0.2...1.2.2) (2018-02-10) | ||
@@ -121,8 +115,4 @@ | ||
<a name="1.0.2"></a> | ||
## [1.0.2](https://github.com/JamieMason/syncpack/compare/1.0.1...1.0.2) (2018-02-02) | ||
<a name="1.0.1"></a> | ||
## [1.0.1](https://github.com/JamieMason/syncpack/compare/1.0.0...1.0.1) (2018-02-02) | ||
@@ -135,4 +125,2 @@ | ||
<a name="1.0.0"></a> | ||
# [1.0.0](https://github.com/JamieMason/syncpack/compare/0.3.1...1.0.0) (2018-02-02) | ||
@@ -164,4 +152,2 @@ | ||
<a name="0.3.1"></a> | ||
## [0.3.1](https://github.com/JamieMason/syncpack/compare/0.3.0...0.3.1) (2017-08-23) | ||
@@ -174,4 +160,2 @@ | ||
<a name="0.3.0"></a> | ||
# [0.3.0](https://github.com/JamieMason/syncpack/compare/0.2.1...0.3.0) (2017-08-22) | ||
@@ -184,4 +168,2 @@ | ||
<a name="0.2.1"></a> | ||
## [0.2.1](https://github.com/JamieMason/syncpack/compare/0.2.0...0.2.1) (2017-08-20) | ||
@@ -194,4 +176,2 @@ | ||
<a name="0.2.0"></a> | ||
# [0.2.0](https://github.com/JamieMason/syncpack/compare/0.1.0...0.2.0) (2017-08-20) | ||
@@ -204,4 +184,2 @@ | ||
<a name="0.1.0"></a> | ||
# [0.1.0](https://github.com/JamieMason/syncpack/compare/f6dada7...0.1.0) (2017-08-18) | ||
@@ -208,0 +186,0 @@ |
@@ -1,1 +0,1 @@ | ||
export declare const collect: (value: string, values?: string[]) => string[]; | ||
export declare const collect: (value: string, values: string[]) => string[]; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.collect = function (value, values) { | ||
if (values === void 0) { values = []; } | ||
return values.concat(value); | ||
}; | ||
exports.collect = function (value, values) { return values.concat([value]); }; |
@@ -1,3 +0,2 @@ | ||
import { CommanderApi, IManifestKey } from '../typings'; | ||
export declare type GetDependencyTypes = (program: CommanderApi) => IManifestKey[]; | ||
export declare const getDependencyTypes: GetDependencyTypes; | ||
import { IManifestKey } from '../typings'; | ||
export declare const getDependencyTypes: (program: import("commander").CommanderStatic) => IManifestKey[]; |
@@ -5,2 +5,6 @@ "use strict"; | ||
var constants_1 = require("../constants"); | ||
var isSemver = function (version) { | ||
return version === '*' || | ||
version.search(/^(<|<=|~|\^|>=|>)?([0-9]+|x)\.([0-9]+|x)\.([0-9]+|x)/) !== -1; | ||
}; | ||
exports.getNewest = function (versions) { | ||
@@ -14,3 +18,6 @@ var sorted = exports.sortBySemver(versions); | ||
exports.getVersionRange = function (version) { | ||
return version.includes('.x') ? '.x' : version.split(/[0-9]/)[0]; | ||
if (isSemver(version)) { | ||
return version.includes('.x') ? '.x' : version.split(/[0-9]/)[0]; | ||
} | ||
return ''; | ||
}; | ||
@@ -20,2 +27,3 @@ exports.sortBySemver = function (versions) { | ||
.concat() | ||
.filter(isSemver) | ||
.sort() | ||
@@ -22,0 +30,0 @@ .sort(function (a, b) { |
{ | ||
"name": "syncpack", | ||
"description": "Manage multiple package.json files, such as in Lerna Monorepos", | ||
"version": "3.5.0", | ||
"version": "3.5.2", | ||
"author": "Jamie Mason <jamie@foldleft.io> (https://github.com/JamieMason)", | ||
@@ -21,5 +21,5 @@ "bin": { | ||
"dependencies": { | ||
"chalk": "2.4.1", | ||
"chalk": "2.4.2", | ||
"commander": "2.19.0", | ||
"fs-extra": "7.0.0", | ||
"fs-extra": "7.0.1", | ||
"globby": "8.0.1", | ||
@@ -32,6 +32,6 @@ "lodash": "4.17.11", | ||
"@types/globby": "8.0.0", | ||
"@types/jest": "23.3.8", | ||
"@types/lodash": "4.14.117", | ||
"@types/jest": "23.3.12", | ||
"@types/lodash": "4.14.119", | ||
"@types/mock-fs": "3.6.30", | ||
"@types/node": "10.12.0", | ||
"@types/node": "10.12.18", | ||
"@types/semver": "5.5.0", | ||
@@ -41,7 +41,7 @@ "expect-more-jest": "2.3.0", | ||
"mock-fs": "4.7.0", | ||
"prettier": "1.14.3", | ||
"rimraf": "2.6.2", | ||
"ts-jest": "23.10.4", | ||
"tslint": "5.11.0", | ||
"typescript": "3.1.3" | ||
"prettier": "1.15.3", | ||
"rimraf": "2.6.3", | ||
"ts-jest": "23.10.5", | ||
"tslint": "5.12.0", | ||
"typescript": "3.2.2" | ||
}, | ||
@@ -48,0 +48,0 @@ "files": [ |
# syncpack | ||
> Manage multiple package.json files, such as in Lerna Monorepos | ||
[![NPM version](http://img.shields.io/npm/v/syncpack.svg?style=flat-square)](https://www.npmjs.com/package/syncpack) | ||
[![NPM downloads](http://img.shields.io/npm/dm/syncpack.svg?style=flat-square)](https://www.npmjs.com/package/syncpack) | ||
[![Dependency Status](http://img.shields.io/david/JamieMason/syncpack.svg?style=flat-square)](https://david-dm.org/JamieMason/syncpack) | ||
[![Gitter Chat for syncpack](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/JamieMason/syncpack) | ||
[![Build Status](http://img.shields.io/travis/JamieMason/syncpack/master.svg?style=flat-square)](https://travis-ci.org/JamieMason/syncpack) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/516439365fdd0e3c6526/maintainability)](https://codeclimate.com/github/JamieMason/syncpack/maintainability) | ||
[![Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/JamieMason/syncpack) | ||
[![Donate via PayPal](https://img.shields.io/badge/donate-paypal-blue.svg)](https://www.paypal.me/foldleft) | ||
[![Backers](https://opencollective.com/fold_left/backers/badge.svg)](https://opencollective.com/fold_left#backer) | ||
[![Sponsors](https://opencollective.com/fold_left/sponsors/badge.svg)](https://opencollective.com/fold_left#sponsors) | ||
[![Analytics](https://ga-beacon.appspot.com/UA-45466560-5/syncpack?flat&useReferer)](https://github.com/igrigorik/ga-beacon) | ||
@@ -12,9 +17,4 @@ [![Follow JamieMason on GitHub](https://img.shields.io/github/followers/JamieMason.svg?style=social&label=Follow)](https://github.com/JamieMason) | ||
## Summary | ||
## :cloud: Installation | ||
Manage multiple `package.json` files, such as `packages/*/package.json` in | ||
[Lerna](https://lernajs.io) Monorepos. | ||
## Installation | ||
``` | ||
@@ -24,3 +24,3 @@ npm install --global syncpack | ||
## Commands | ||
## :memo: Commands | ||
@@ -196,1 +196,8 @@ ### fix-mismatches | ||
``` | ||
## :raising_hand: Get Help | ||
There are few ways to get help: | ||
1. For bug reports and feature requests, open issues :bug: | ||
1. For direct and quick help, you can use Gitter :rocket: |
64431
934
201
+ Addedchalk@2.4.2(transitive)
+ Addedfs-extra@7.0.1(transitive)
- Removedchalk@2.4.1(transitive)
- Removedfs-extra@7.0.0(transitive)
Updatedchalk@2.4.2
Updatedfs-extra@7.0.1