syncpack 9.0.0 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,8 +19,11 @@ var Instance = /** @class */ (function () {
|
|
|
19
19
|
this.version = version;
|
|
20
20
|
}
|
|
21
21
|
Instance.prototype.hasRange = function (range) {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
if (this.pathDef.name === 'workspace') {
|
|
23
|
+
// version property of package.json must always be exact
|
|
24
|
+
return this.version === (0, set_semver_range_1.setSemverRange)('', this.version);
|
|
25
|
+
}
|
|
26
|
+
return this.version === (0, set_semver_range_1.setSemverRange)(range, this.version);
|
|
24
27
|
};
|
|
25
28
|
Instance.prototype.setRange = function (range) {
|
|
26
29
|
this.setVersion((0, set_semver_range_1.setSemverRange)(range, this.version));
|
|
@@ -13,6 +13,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
exports.__esModule = true;
|
|
14
14
|
exports.getContext = void 0;
|
|
15
15
|
var disk_1 = require("../lib/disk");
|
|
16
|
+
var log_1 = require("../lib/log");
|
|
16
17
|
var get_all_instances_1 = require("./get-all-instances");
|
|
17
18
|
var get_config_1 = require("./get-config");
|
|
18
19
|
var get_semver_groups_1 = require("./get-groups/get-semver-groups");
|
|
@@ -33,6 +34,8 @@ function getContext(program, disk) {
|
|
|
33
34
|
var instances = (0, get_all_instances_1.getAllInstances)(packageJsonFiles);
|
|
34
35
|
var semverGroups = (0, get_semver_groups_1.getSemverGroups)(config, instances);
|
|
35
36
|
var versionGroups = (0, get_version_groups_1.getVersionGroups)(config, instances);
|
|
36
|
-
|
|
37
|
+
var ctx = __assign(__assign({}, config), { disk: disk, isInvalid: false, packageJsonFiles: packageJsonFiles, semverGroups: semverGroups, versionGroups: versionGroups });
|
|
38
|
+
(0, log_1.verbose)('final context:', ctx);
|
|
39
|
+
return ctx;
|
|
37
40
|
}
|
|
38
41
|
exports.getContext = getContext;
|
package/dist/option.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const option: {
|
|
|
3
3
|
readonly filter: readonly ["-f, --filter [pattern]", string];
|
|
4
4
|
readonly indent: readonly ["-i, --indent [value]", "override indentation. defaults to \" \""];
|
|
5
5
|
readonly semverRange: readonly ["-r, --semver-range <range>", "see supported ranges below. defaults to \"\""];
|
|
6
|
-
readonly source: readonly ["-s, --source [pattern]", "glob pattern for package.json files to read from", typeof collect];
|
|
6
|
+
readonly source: readonly ["-s, --source [pattern]", "glob pattern for package.json files to read from", typeof collect, string[]];
|
|
7
7
|
readonly types: readonly ["-t, --types <names>", string];
|
|
8
8
|
};
|
|
9
9
|
declare function collect(value: string, previous: string[]): string[];
|
package/dist/option.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "syncpack",
|
|
3
3
|
"description": "Manage multiple package.json files, such as in Lerna Monorepos and Yarn/Pnpm Workspaces",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.2",
|
|
5
5
|
"author": "Jamie Mason <jamie@foldleft.io> (https://github.com/JamieMason)",
|
|
6
6
|
"bin": {
|
|
7
7
|
"syncpack": "dist/bin.js",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"prettier": "2.8.3",
|
|
54
54
|
"rimraf": "4.1.2",
|
|
55
55
|
"ts-jest": "29.0.5",
|
|
56
|
+
"ts-node": "10.9.1",
|
|
56
57
|
"typescript": "4.9.5"
|
|
57
58
|
},
|
|
58
59
|
"engines": {
|