@nx/js 21.3.0-rc.0 → 21.3.1
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "21.3.
|
|
3
|
+
"version": "21.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
6
6
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@babel/preset-env": "^7.23.2",
|
|
40
40
|
"@babel/preset-typescript": "^7.22.5",
|
|
41
41
|
"@babel/runtime": "^7.22.6",
|
|
42
|
-
"@nx/devkit": "21.3.
|
|
43
|
-
"@nx/workspace": "21.3.
|
|
42
|
+
"@nx/devkit": "21.3.1",
|
|
43
|
+
"@nx/workspace": "21.3.1",
|
|
44
44
|
"@zkochan/js-yaml": "0.0.7",
|
|
45
45
|
"babel-plugin-const-enum": "^1.0.1",
|
|
46
46
|
"babel-plugin-macros": "^3.1.0",
|
|
@@ -20,7 +20,7 @@ const is_locally_linked_package_version_1 = require("../../utils/is-locally-link
|
|
|
20
20
|
const npm_config_1 = require("../../utils/npm-config");
|
|
21
21
|
const resolve_local_package_dependencies_1 = require("./utils/resolve-local-package-dependencies");
|
|
22
22
|
const sort_projects_topologically_1 = require("./utils/sort-projects-topologically");
|
|
23
|
-
function
|
|
23
|
+
function resolvePreidSpecifier(currentSpecifier, preid) {
|
|
24
24
|
if (!currentSpecifier.startsWith('pre') && preid) {
|
|
25
25
|
return `pre${currentSpecifier}`;
|
|
26
26
|
}
|
|
@@ -52,7 +52,7 @@ Valid values are: ${version_legacy_1.validReleaseVersionPrefixes
|
|
|
52
52
|
}
|
|
53
53
|
// Set default for updateDependents
|
|
54
54
|
const updateDependents = options.updateDependents ?? 'auto';
|
|
55
|
-
const updateDependentsBump =
|
|
55
|
+
const updateDependentsBump = resolvePreidSpecifier('patch', options.preid);
|
|
56
56
|
// Sort the projects topologically if update dependents is enabled
|
|
57
57
|
const projects = updateDependents === 'never' ||
|
|
58
58
|
options.releaseGroup.projectsRelationship !== 'independent'
|
|
@@ -191,7 +191,12 @@ To fix this you will either need to add a package.json file at that location, or
|
|
|
191
191
|
const releaseTagPatternRequireSemver = options.releaseGroup.releaseTagPatternRequireSemver;
|
|
192
192
|
latestMatchingGitTag = await (0, git_1.getLatestGitTagForPattern)(releaseTagPattern, {
|
|
193
193
|
projectName: project.name,
|
|
194
|
-
},
|
|
194
|
+
}, {
|
|
195
|
+
checkAllBranchesWhen: options.releaseGroup.releaseTagPatternCheckAllBranchesWhen,
|
|
196
|
+
preid: options.preid,
|
|
197
|
+
releaseTagPatternRequireSemver: releaseTagPatternRequireSemver,
|
|
198
|
+
releaseTagPatternStrictPreid: options.releaseGroup.releaseTagPatternStrictPreid,
|
|
199
|
+
});
|
|
195
200
|
if (!latestMatchingGitTag) {
|
|
196
201
|
if (options.fallbackCurrentVersionResolver === 'disk') {
|
|
197
202
|
if (!currentVersionFromDisk &&
|
|
@@ -295,7 +300,7 @@ To fix this you will either need to add a package.json file at that location, or
|
|
|
295
300
|
}
|
|
296
301
|
else {
|
|
297
302
|
let extraText = '';
|
|
298
|
-
const prereleaseSpecifier =
|
|
303
|
+
const prereleaseSpecifier = resolvePreidSpecifier(specifier, options.preid);
|
|
299
304
|
if (prereleaseSpecifier !== specifier) {
|
|
300
305
|
specifier = prereleaseSpecifier;
|
|
301
306
|
extraText = `, combined with your given preid "${options.preid}"`;
|