@nx/express 20.0.0-canary.20241002-1d10a19 → 20.0.0-canary.20241003-84a5c7a
Sign up to get free protection for your applications and to get access to all the features.
- package/migrations.json +1 -8
- package/package.json +4 -3
- package/src/generators/application/application.js +2 -0
- package/src/generators/init/init.js +2 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +0 -2
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +0 -9
package/migrations.json
CHANGED
@@ -1,11 +1,4 @@
|
|
1
1
|
{
|
2
|
-
"generators": {
|
3
|
-
"update-16-0-0-add-nx-packages": {
|
4
|
-
"cli": "nx",
|
5
|
-
"version": "16.0.0-beta.1",
|
6
|
-
"description": "Replace @nrwl/express with @nx/express",
|
7
|
-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages"
|
8
|
-
}
|
9
|
-
},
|
2
|
+
"generators": {},
|
10
3
|
"packageJsonUpdates": {}
|
11
4
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/express",
|
3
|
-
"version": "20.0.0-canary.
|
3
|
+
"version": "20.0.0-canary.20241003-84a5c7a",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Nx Plugin for Express contains executors and generators for allowing your workspace to create powerful Express Node applications and APIs.",
|
6
6
|
"repository": {
|
@@ -31,8 +31,9 @@
|
|
31
31
|
"migrations": "./migrations.json"
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
|
-
"@nx/devkit": "20.0.0-canary.
|
35
|
-
"@nx/
|
34
|
+
"@nx/devkit": "20.0.0-canary.20241003-84a5c7a",
|
35
|
+
"@nx/js": "20.0.0-canary.20241003-84a5c7a",
|
36
|
+
"@nx/node": "20.0.0-canary.20241003-84a5c7a",
|
36
37
|
"tslib": "^2.3.0"
|
37
38
|
},
|
38
39
|
"peerDependencies": {
|
@@ -4,6 +4,7 @@ exports.applicationGenerator = applicationGenerator;
|
|
4
4
|
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
6
6
|
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
7
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
7
8
|
const node_1 = require("@nx/node");
|
8
9
|
const versions_1 = require("@nx/node/src/utils/versions");
|
9
10
|
const path_1 = require("path");
|
@@ -49,6 +50,7 @@ async function applicationGenerator(tree, schema) {
|
|
49
50
|
});
|
50
51
|
}
|
51
52
|
async function applicationGeneratorInternal(tree, schema) {
|
53
|
+
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'express', 'application');
|
52
54
|
const options = await normalizeOptions(tree, schema);
|
53
55
|
const tasks = [];
|
54
56
|
const initTask = await (0, init_1.initGenerator)(tree, { ...options, skipFormat: true });
|
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.initGenerator = initGenerator;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
5
6
|
const versions_1 = require("../../utils/versions");
|
6
7
|
function updateDependencies(tree, schema) {
|
7
8
|
const tasks = [];
|
@@ -10,6 +11,7 @@ function updateDependencies(tree, schema) {
|
|
10
11
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
11
12
|
}
|
12
13
|
async function initGenerator(tree, schema) {
|
14
|
+
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'express', 'init');
|
13
15
|
let installTask = () => { };
|
14
16
|
if (!schema.skipPackageJson) {
|
15
17
|
installTask = updateDependencies(tree, schema);
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.default = replacePackage;
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
5
|
-
const replace_package_1 = require("@nx/devkit/src/utils/replace-package");
|
6
|
-
async function replacePackage(tree) {
|
7
|
-
await (0, replace_package_1.replaceNrwlPackageWithNxPackage)(tree, '@nrwl/express', '@nx/express');
|
8
|
-
await (0, devkit_1.formatFiles)(tree);
|
9
|
-
}
|