@nx/js 0.0.0-pr-31634-ece4eca → 0.0.0-pr-31972-e7c1663
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": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-31972-e7c1663",
|
|
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": "0.0.0-pr-
|
|
43
|
-
"@nx/workspace": "0.0.0-pr-
|
|
42
|
+
"@nx/devkit": "0.0.0-pr-31972-e7c1663",
|
|
43
|
+
"@nx/workspace": "0.0.0-pr-31972-e7c1663",
|
|
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,12 +191,7 @@ 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
|
-
},
|
|
195
|
-
checkAllBranchesWhen: options.releaseGroup.releaseTagPatternCheckAllBranchesWhen,
|
|
196
|
-
preid: options.preid,
|
|
197
|
-
releaseTagPatternRequireSemver: releaseTagPatternRequireSemver,
|
|
198
|
-
releaseTagPatternStrictPreid: options.releaseGroup.releaseTagPatternStrictPreid,
|
|
199
|
-
});
|
|
194
|
+
}, options.releaseGroup.releaseTagPatternCheckAllBranchesWhen, releaseTagPatternRequireSemver ?? true);
|
|
200
195
|
if (!latestMatchingGitTag) {
|
|
201
196
|
if (options.fallbackCurrentVersionResolver === 'disk') {
|
|
202
197
|
if (!currentVersionFromDisk &&
|
|
@@ -300,7 +295,7 @@ To fix this you will either need to add a package.json file at that location, or
|
|
|
300
295
|
}
|
|
301
296
|
else {
|
|
302
297
|
let extraText = '';
|
|
303
|
-
const prereleaseSpecifier =
|
|
298
|
+
const prereleaseSpecifier = resolvePreIdSpecifier(specifier, options.preid);
|
|
304
299
|
if (prereleaseSpecifier !== specifier) {
|
|
305
300
|
specifier = prereleaseSpecifier;
|
|
306
301
|
extraText = `, combined with your given preid "${options.preid}"`;
|