@nx/js 18.0.3 → 18.1.0-beta.0
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/babel.js
CHANGED
|
@@ -25,7 +25,7 @@ module.exports = function (api, options = {}) {
|
|
|
25
25
|
// For Jest tests, NODE_ENV is set as 'test' and we only want to set target as Node.
|
|
26
26
|
// All other options will fail in Jest since Node does not support some ES features
|
|
27
27
|
// such as import syntax.
|
|
28
|
-
isTest || process.env.NODE_ENV === 'test'
|
|
28
|
+
isTest || process.env.NODE_ENV === 'test' || process.env.JEST_WORKER_ID
|
|
29
29
|
? { targets: { node: 'current' }, loose: true }
|
|
30
30
|
: {
|
|
31
31
|
// Allow importing core-js in entrypoint and use browserslist to select polyfills.
|
package/migrations.json
CHANGED
|
@@ -145,6 +145,15 @@
|
|
|
145
145
|
"alwaysAddToPackageJson": false
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
+
},
|
|
149
|
+
"18.0.4": {
|
|
150
|
+
"version": "18.0.4-beta.0",
|
|
151
|
+
"packages": {
|
|
152
|
+
"@swc-node/register": {
|
|
153
|
+
"version": "~1.8.0",
|
|
154
|
+
"alwaysAddToPackageJson": false
|
|
155
|
+
}
|
|
156
|
+
}
|
|
148
157
|
}
|
|
149
158
|
}
|
|
150
159
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.1.0-beta.0",
|
|
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": {
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"semver": "^7.5.3",
|
|
58
58
|
"source-map-support": "0.5.19",
|
|
59
59
|
"tslib": "^2.3.0",
|
|
60
|
-
"@nx/devkit": "18.0.
|
|
61
|
-
"@nx/workspace": "18.0.
|
|
62
|
-
"@nrwl/js": "18.0.
|
|
60
|
+
"@nx/devkit": "18.1.0-beta.0",
|
|
61
|
+
"@nx/workspace": "18.1.0-beta.0",
|
|
62
|
+
"@nrwl/js": "18.1.0-beta.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"verdaccio": "^5.0.4"
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveVersionSpec = void 0;
|
|
4
4
|
const npa = require("npm-package-arg");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
function resolveVersionSpec(name, version, spec, location) {
|
|
6
7
|
// yarn classic uses link instead of file, normalize to match what npm expects
|
|
7
8
|
spec = spec.replace(/^link:/, 'file:');
|
|
@@ -21,6 +22,8 @@ function resolveVersionSpec(name, version, spec, location) {
|
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
const npaResult = npa.resolve(name, spec, location);
|
|
24
|
-
return npaResult.fetchSpec
|
|
25
|
+
return npaResult.fetchSpec.includes('\\')
|
|
26
|
+
? (0, devkit_1.normalizePath)(npaResult.fetchSpec)
|
|
27
|
+
: npaResult.fetchSpec;
|
|
25
28
|
}
|
|
26
29
|
exports.resolveVersionSpec = resolveVersionSpec;
|
|
@@ -24,8 +24,8 @@ async function updateLockFile(cwd, { dryRun, verbose, generatorOptions, }) {
|
|
|
24
24
|
return [];
|
|
25
25
|
}
|
|
26
26
|
const isDaemonEnabled = client_1.daemonClient.enabled();
|
|
27
|
-
if (isDaemonEnabled) {
|
|
28
|
-
// temporarily stop the daemon, as it will error if the lock file is updated
|
|
27
|
+
if (!dryRun && isDaemonEnabled) {
|
|
28
|
+
// if not in dry-run temporarily stop the daemon, as it will error if the lock file is updated
|
|
29
29
|
await client_1.daemonClient.stop();
|
|
30
30
|
}
|
|
31
31
|
const packageManagerCommands = (0, devkit_1.getPackageManagerCommand)(packageManager);
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const prettierVersion = "^2.6.2";
|
|
|
4
4
|
export declare const swcCliVersion = "~0.1.62";
|
|
5
5
|
export declare const swcCoreVersion = "~1.3.85";
|
|
6
6
|
export declare const swcHelpersVersion = "~0.5.2";
|
|
7
|
-
export declare const swcNodeVersion = "~1.
|
|
7
|
+
export declare const swcNodeVersion = "~1.8.0";
|
|
8
8
|
export declare const tsLibVersion = "^2.3.0";
|
|
9
9
|
export declare const typesNodeVersion = "18.16.9";
|
|
10
10
|
export declare const verdaccioVersion = "^5.0.4";
|
package/src/utils/versions.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.prettierVersion = '^2.6.2';
|
|
|
7
7
|
exports.swcCliVersion = '~0.1.62';
|
|
8
8
|
exports.swcCoreVersion = '~1.3.85';
|
|
9
9
|
exports.swcHelpersVersion = '~0.5.2';
|
|
10
|
-
exports.swcNodeVersion = '~1.
|
|
10
|
+
exports.swcNodeVersion = '~1.8.0';
|
|
11
11
|
exports.tsLibVersion = '^2.3.0';
|
|
12
12
|
exports.typesNodeVersion = '18.16.9';
|
|
13
13
|
exports.verdaccioVersion = '^5.0.4';
|