@nx/js 17.0.2 → 17.0.3
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
|
@@ -70,6 +70,7 @@ module.exports = function (api, options = {}) {
|
|
|
70
70
|
require.resolve('@babel/plugin-proposal-decorators'),
|
|
71
71
|
options.decorators ?? { legacy: true },
|
|
72
72
|
],
|
|
73
|
+
[require.resolve('@babel/plugin-transform-class-properties'), { loose }],
|
|
73
74
|
].filter(Boolean),
|
|
74
75
|
overrides: [
|
|
75
76
|
// Convert `const enum` to `enum`. The former cannot be supported by babel
|
package/migrations.json
CHANGED
|
@@ -23,6 +23,12 @@
|
|
|
23
23
|
"version": "16.8.2-beta.0",
|
|
24
24
|
"description": "Remove invalid options (strict, noInterop) for ES6 type modules.",
|
|
25
25
|
"factory": "./src/migrations/update-16-8-2/update-swcrc"
|
|
26
|
+
},
|
|
27
|
+
"update-17-0-0-remove-deprecated-build-options": {
|
|
28
|
+
"cli": "nx",
|
|
29
|
+
"version": "17.0.2",
|
|
30
|
+
"description": "Remove deprecated build options",
|
|
31
|
+
"implementation": "./src/migrations/update-17-0-0/remove-deprecated-build-options"
|
|
26
32
|
}
|
|
27
33
|
},
|
|
28
34
|
"packageJsonUpdates": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.3",
|
|
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": {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@babel/core": "^7.22.9",
|
|
34
34
|
"@babel/plugin-proposal-decorators": "^7.22.7",
|
|
35
35
|
"@babel/plugin-transform-runtime": "^7.22.9",
|
|
36
|
+
"@babel/plugin-transform-class-properties": "^7.22.5",
|
|
36
37
|
"@babel/preset-env": "^7.22.9",
|
|
37
38
|
"@babel/preset-typescript": "^7.22.5",
|
|
38
39
|
"@babel/runtime": "^7.22.6",
|
|
@@ -56,9 +57,9 @@
|
|
|
56
57
|
"semver": "7.5.3",
|
|
57
58
|
"source-map-support": "0.5.19",
|
|
58
59
|
"tslib": "^2.3.0",
|
|
59
|
-
"@nx/devkit": "17.0.
|
|
60
|
-
"@nx/workspace": "17.0.
|
|
61
|
-
"@nrwl/js": "17.0.
|
|
60
|
+
"@nx/devkit": "17.0.3",
|
|
61
|
+
"@nx/workspace": "17.0.3",
|
|
62
|
+
"@nrwl/js": "17.0.3"
|
|
62
63
|
},
|
|
63
64
|
"peerDependencies": {
|
|
64
65
|
"verdaccio": "^5.0.4"
|
|
@@ -52,6 +52,7 @@ async function libraryGeneratorInternal(tree, schema) {
|
|
|
52
52
|
project: options.name,
|
|
53
53
|
includeLib: true,
|
|
54
54
|
includeVitest: options.unitTestRunner === 'vitest',
|
|
55
|
+
testEnvironment: options.testEnvironment,
|
|
55
56
|
}, false);
|
|
56
57
|
}
|
|
57
58
|
if (options.linter !== 'none') {
|
|
@@ -81,6 +82,7 @@ async function libraryGeneratorInternal(tree, schema) {
|
|
|
81
82
|
project: options.name,
|
|
82
83
|
includeLib: false,
|
|
83
84
|
includeVitest: true,
|
|
85
|
+
testEnvironment: options.testEnvironment,
|
|
84
86
|
}, true);
|
|
85
87
|
}
|
|
86
88
|
if (!schema.skipTsConfig) {
|
|
@@ -12,7 +12,8 @@ async function default_1(tree) {
|
|
|
12
12
|
if (!projectConfig.targets)
|
|
13
13
|
continue;
|
|
14
14
|
for (const target of Object.values(projectConfig.targets)) {
|
|
15
|
-
if (target.executor
|
|
15
|
+
if (target.executor?.startsWith('@nx/') &&
|
|
16
|
+
target.options &&
|
|
16
17
|
('buildableProjectDepsInPackageJsonType' in target.options ||
|
|
17
18
|
'updateBuildableProjectDepsInPackageJson' in target.options)) {
|
|
18
19
|
delete target.options['buildableProjectDepsInPackageJsonType'];
|
|
@@ -24,7 +24,7 @@ export default async () => {
|
|
|
24
24
|
const nx = require.resolve('nx');
|
|
25
25
|
execFileSync(
|
|
26
26
|
nx,
|
|
27
|
-
['run-many', '--targets', 'publish', '--ver', '
|
|
27
|
+
['run-many', '--targets', 'publish', '--ver', '0.0.0-e2e', '--tag', 'e2e'],
|
|
28
28
|
{ env: process.env, stdio: 'inherit' }
|
|
29
29
|
);
|
|
30
30
|
};
|