@nx/nest 18.0.0-beta.0 → 18.0.0-beta.2
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 +6 -6
- package/src/generators/application/application.js +1 -0
- package/src/generators/application/lib/normalize-options.js +2 -0
- package/src/generators/application/schema.d.ts +1 -0
- package/src/generators/application/schema.json +1 -1
- package/src/generators/class/schema.json +3 -3
- package/src/generators/controller/schema.json +3 -3
- package/src/generators/decorator/schema.json +3 -3
- package/src/generators/filter/schema.json +3 -3
- package/src/generators/gateway/schema.json +3 -3
- package/src/generators/guard/schema.json +3 -3
- package/src/generators/init/schema.json +1 -1
- package/src/generators/interceptor/schema.json +3 -3
- package/src/generators/interface/schema.json +3 -3
- package/src/generators/library/lib/normalize-options.js +3 -0
- package/src/generators/library/library.js +9 -2
- package/src/generators/library/schema.d.ts +1 -0
- package/src/generators/library/schema.json +1 -1
- package/src/generators/middleware/schema.json +3 -3
- package/src/generators/module/schema.json +3 -3
- package/src/generators/pipe/schema.json +3 -3
- package/src/generators/provider/schema.json +3 -3
- package/src/generators/resolver/schema.json +3 -3
- package/src/generators/resource/schema.json +3 -3
- package/src/generators/service/schema.json +3 -3
- package/src/generators/utils/types.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nest",
|
|
3
|
-
"version": "18.0.0-beta.
|
|
3
|
+
"version": "18.0.0-beta.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Nest contains executors and generators for allowing your workspace to create powerful Nest best in class APIs.",
|
|
6
6
|
"repository": {
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@nestjs/schematics": "^9.1.0",
|
|
34
|
-
"@nx/devkit": "18.0.0-beta.
|
|
35
|
-
"@nx/js": "18.0.0-beta.
|
|
36
|
-
"@nx/eslint": "18.0.0-beta.
|
|
37
|
-
"@nx/node": "18.0.0-beta.
|
|
34
|
+
"@nx/devkit": "18.0.0-beta.2",
|
|
35
|
+
"@nx/js": "18.0.0-beta.2",
|
|
36
|
+
"@nx/eslint": "18.0.0-beta.2",
|
|
37
|
+
"@nx/node": "18.0.0-beta.2",
|
|
38
38
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
39
39
|
"tslib": "^2.3.0",
|
|
40
|
-
"@nrwl/nest": "18.0.0-beta.
|
|
40
|
+
"@nrwl/nest": "18.0.0-beta.2"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
@@ -7,6 +7,7 @@ const init_1 = require("../init/init");
|
|
|
7
7
|
const lib_1 = require("./lib");
|
|
8
8
|
async function applicationGenerator(tree, rawOptions) {
|
|
9
9
|
return await applicationGeneratorInternal(tree, {
|
|
10
|
+
addPlugin: false,
|
|
10
11
|
projectNameAndRootFormat: 'derived',
|
|
11
12
|
...rawOptions,
|
|
12
13
|
});
|
|
@@ -15,6 +15,7 @@ async function normalizeOptions(tree, options) {
|
|
|
15
15
|
options.rootProject = appProjectRoot === '.';
|
|
16
16
|
options.projectNameAndRootFormat = projectNameAndRootFormat;
|
|
17
17
|
return {
|
|
18
|
+
addPlugin: process.env.NX_ADD_PLUGINS !== 'false',
|
|
18
19
|
...options,
|
|
19
20
|
strict: options.strict ?? false,
|
|
20
21
|
appProjectName,
|
|
@@ -42,6 +43,7 @@ function toNodeApplicationGeneratorOptions(options) {
|
|
|
42
43
|
rootProject: options.rootProject,
|
|
43
44
|
bundler: 'webpack', // Some features require webpack plugins such as TS transformers
|
|
44
45
|
isNest: true,
|
|
46
|
+
addPlugin: options.addPlugin,
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
exports.toNodeApplicationGeneratorOptions = toNodeApplicationGeneratorOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestClassGenerator",
|
|
4
4
|
"title": "Nest Class Options Schema",
|
|
5
5
|
"description": "Nest Class Options Schema.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$source": "projectName"
|
|
28
28
|
},
|
|
29
29
|
"alias": "p",
|
|
30
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx
|
|
30
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v19."
|
|
31
31
|
},
|
|
32
32
|
"directory": {
|
|
33
33
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"flat": {
|
|
50
50
|
"description": "Flag to indicate if a directory is created.",
|
|
51
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
51
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
52
52
|
"type": "boolean",
|
|
53
53
|
"default": true
|
|
54
54
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestControllerGenerator",
|
|
4
4
|
"title": "Nest Controller Options Schema",
|
|
5
5
|
"description": "Nest Controller Options Schema.",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"$source": "projectName"
|
|
23
23
|
},
|
|
24
24
|
"alias": "p",
|
|
25
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
25
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
26
26
|
},
|
|
27
27
|
"nameAndDirectoryFormat": {
|
|
28
28
|
"description": "Whether to generate the component in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"flat": {
|
|
50
50
|
"description": "Flag to indicate if a directory is created.",
|
|
51
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
51
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
52
52
|
"type": "boolean",
|
|
53
53
|
"default": false
|
|
54
54
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestDecoratorGenerator",
|
|
4
4
|
"title": "Nest Decorator Options Schema",
|
|
5
5
|
"description": "Nest Decorator Options Schema.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$source": "projectName"
|
|
28
28
|
},
|
|
29
29
|
"alias": "p",
|
|
30
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
30
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
31
31
|
},
|
|
32
32
|
"directory": {
|
|
33
33
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"flat": {
|
|
44
44
|
"description": "Flag to indicate if a directory is created.",
|
|
45
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
45
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
46
46
|
"type": "boolean",
|
|
47
47
|
"default": true
|
|
48
48
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestFilterGenerator",
|
|
4
4
|
"title": "Nest Filter Options Schema",
|
|
5
5
|
"description": "Nest Filter Options Schema.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$source": "projectName"
|
|
28
28
|
},
|
|
29
29
|
"alias": "p",
|
|
30
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
30
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
31
31
|
},
|
|
32
32
|
"directory": {
|
|
33
33
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"flat": {
|
|
50
50
|
"description": "Flag to indicate if a directory is created.",
|
|
51
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
51
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
52
52
|
"type": "boolean",
|
|
53
53
|
"default": true
|
|
54
54
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestGatewayGenerator",
|
|
4
4
|
"title": "Nest Gateway Options Schema",
|
|
5
5
|
"description": "Nest Gateway Options Schema.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$source": "projectName"
|
|
28
28
|
},
|
|
29
29
|
"alias": "p",
|
|
30
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
30
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
31
31
|
},
|
|
32
32
|
"directory": {
|
|
33
33
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"flat": {
|
|
50
50
|
"description": "Flag to indicate if a directory is created.",
|
|
51
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
51
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
52
52
|
"type": "boolean",
|
|
53
53
|
"default": true
|
|
54
54
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestGuardGenerator",
|
|
4
4
|
"title": "Nest Guard Options Schema",
|
|
5
5
|
"description": "Nest Guard Options Schema.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$source": "projectName"
|
|
28
28
|
},
|
|
29
29
|
"alias": "p",
|
|
30
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
30
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
31
31
|
},
|
|
32
32
|
"directory": {
|
|
33
33
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"flat": {
|
|
50
50
|
"description": "Flag to indicate if a directory is created.",
|
|
51
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
51
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
52
52
|
"type": "boolean",
|
|
53
53
|
"default": true
|
|
54
54
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestInterceptorGenerator",
|
|
4
4
|
"title": "Nest Interceptor Options Schema",
|
|
5
5
|
"description": "Nest Interceptor Options Schema.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$source": "projectName"
|
|
28
28
|
},
|
|
29
29
|
"alias": "p",
|
|
30
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
30
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
31
31
|
},
|
|
32
32
|
"directory": {
|
|
33
33
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"flat": {
|
|
50
50
|
"description": "Flag to indicate if a directory is created.",
|
|
51
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
51
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
52
52
|
"type": "boolean",
|
|
53
53
|
"default": true
|
|
54
54
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestInterfaceGenerator",
|
|
4
4
|
"title": "Nest Interface Options Schema",
|
|
5
5
|
"description": "Nest Interface Options Schema.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$source": "projectName"
|
|
28
28
|
},
|
|
29
29
|
"alias": "p",
|
|
30
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
30
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
31
31
|
},
|
|
32
32
|
"directory": {
|
|
33
33
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"flat": {
|
|
44
44
|
"description": "Flag to indicate if a directory is created.",
|
|
45
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
45
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
46
46
|
"type": "boolean",
|
|
47
47
|
"default": true
|
|
48
48
|
}
|
|
@@ -13,6 +13,7 @@ async function normalizeOptions(tree, options) {
|
|
|
13
13
|
projectNameAndRootFormat: options.projectNameAndRootFormat,
|
|
14
14
|
callingGenerator: '@nx/nest:library',
|
|
15
15
|
});
|
|
16
|
+
options.addPlugin ??= process.env.NX_ADD_PLUGINS !== 'false';
|
|
16
17
|
const fileName = options.simpleName
|
|
17
18
|
? projectNames.projectSimpleName
|
|
18
19
|
: projectNames.projectFileName;
|
|
@@ -49,6 +50,7 @@ function toJsLibraryGeneratorOptions(options) {
|
|
|
49
50
|
publishable: options.publishable,
|
|
50
51
|
skipFormat: true,
|
|
51
52
|
skipTsConfig: options.skipTsConfig,
|
|
53
|
+
skipPackageJson: options.skipPackageJson,
|
|
52
54
|
strict: options.strict,
|
|
53
55
|
tags: options.tags,
|
|
54
56
|
testEnvironment: options.testEnvironment,
|
|
@@ -56,6 +58,7 @@ function toJsLibraryGeneratorOptions(options) {
|
|
|
56
58
|
config: options.standaloneConfig ? 'project' : 'workspace',
|
|
57
59
|
setParserOptionsProject: options.setParserOptionsProject,
|
|
58
60
|
projectNameAndRootFormat: options.projectNameAndRootFormat,
|
|
61
|
+
addPlugin: options.addPlugin,
|
|
59
62
|
};
|
|
60
63
|
}
|
|
61
64
|
exports.toJsLibraryGeneratorOptions = toJsLibraryGeneratorOptions;
|
|
@@ -5,8 +5,10 @@ const devkit_1 = require("@nx/devkit");
|
|
|
5
5
|
const js_1 = require("@nx/js");
|
|
6
6
|
const lib_1 = require("./lib");
|
|
7
7
|
const init_1 = require("../init/init");
|
|
8
|
+
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
8
9
|
async function libraryGenerator(tree, rawOptions) {
|
|
9
10
|
return await libraryGeneratorInternal(tree, {
|
|
11
|
+
addPlugin: false,
|
|
10
12
|
projectNameAndRootFormat: 'derived',
|
|
11
13
|
...rawOptions,
|
|
12
14
|
});
|
|
@@ -15,7 +17,7 @@ exports.libraryGenerator = libraryGenerator;
|
|
|
15
17
|
async function libraryGeneratorInternal(tree, rawOptions) {
|
|
16
18
|
const options = await (0, lib_1.normalizeOptions)(tree, rawOptions);
|
|
17
19
|
await (0, js_1.libraryGenerator)(tree, (0, lib_1.toJsLibraryGeneratorOptions)(options));
|
|
18
|
-
const initTask = (0, init_1.default)(tree, rawOptions);
|
|
20
|
+
const initTask = await (0, init_1.default)(tree, rawOptions);
|
|
19
21
|
(0, lib_1.deleteFiles)(tree, options);
|
|
20
22
|
(0, lib_1.createFiles)(tree, options);
|
|
21
23
|
(0, lib_1.addExportsToBarrelFile)(tree, options);
|
|
@@ -24,7 +26,12 @@ async function libraryGeneratorInternal(tree, rawOptions) {
|
|
|
24
26
|
if (!options.skipFormat) {
|
|
25
27
|
await (0, devkit_1.formatFiles)(tree);
|
|
26
28
|
}
|
|
27
|
-
return
|
|
29
|
+
return (0, devkit_1.runTasksInSerial)(...[
|
|
30
|
+
initTask,
|
|
31
|
+
() => {
|
|
32
|
+
(0, log_show_project_command_1.logShowProjectCommand)(options.projectName);
|
|
33
|
+
},
|
|
34
|
+
]);
|
|
28
35
|
}
|
|
29
36
|
exports.libraryGeneratorInternal = libraryGeneratorInternal;
|
|
30
37
|
exports.default = libraryGenerator;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestMiddlewareGenerator",
|
|
4
4
|
"title": "Nest Middleware Options Schema",
|
|
5
5
|
"description": "Nest Middleware Options Schema.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$source": "projectName"
|
|
28
28
|
},
|
|
29
29
|
"alias": "p",
|
|
30
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
30
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
31
31
|
},
|
|
32
32
|
"directory": {
|
|
33
33
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"flat": {
|
|
50
50
|
"description": "Flag to indicate if a directory is created.",
|
|
51
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
51
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
52
52
|
"type": "boolean",
|
|
53
53
|
"default": true
|
|
54
54
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestModuleGenerator",
|
|
4
4
|
"title": "Nest Module Options Schema",
|
|
5
5
|
"description": "Nest Module Options Schema.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$source": "projectName"
|
|
28
28
|
},
|
|
29
29
|
"alias": "p",
|
|
30
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
30
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
31
31
|
},
|
|
32
32
|
"directory": {
|
|
33
33
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"flat": {
|
|
44
44
|
"description": "Flag to indicate if a directory is created.",
|
|
45
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
45
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
46
46
|
"type": "boolean",
|
|
47
47
|
"default": false
|
|
48
48
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestPipeGenerator",
|
|
4
4
|
"title": "Nest Pipe Options Schema",
|
|
5
5
|
"description": "Nest Pipe Options Schema.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$source": "projectName"
|
|
28
28
|
},
|
|
29
29
|
"alias": "p",
|
|
30
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
30
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
31
31
|
},
|
|
32
32
|
"directory": {
|
|
33
33
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"flat": {
|
|
50
50
|
"description": "Flag to indicate if a directory is created.",
|
|
51
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
51
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
52
52
|
"type": "boolean",
|
|
53
53
|
"default": true
|
|
54
54
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestProviderGenerator",
|
|
4
4
|
"title": "Nest Provider Options Schema",
|
|
5
5
|
"description": "Nest Provider Options Schema.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$source": "projectName"
|
|
28
28
|
},
|
|
29
29
|
"alias": "p",
|
|
30
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
30
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
31
31
|
},
|
|
32
32
|
"directory": {
|
|
33
33
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"flat": {
|
|
50
50
|
"description": "Flag to indicate if a directory is created.",
|
|
51
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
51
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
52
52
|
"type": "boolean",
|
|
53
53
|
"default": true
|
|
54
54
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestResolverGenerator",
|
|
4
4
|
"title": "Nest Resolver Options Schema",
|
|
5
5
|
"description": "Nest Resolver Options Schema.",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"$source": "projectName"
|
|
23
23
|
},
|
|
24
24
|
"alias": "p",
|
|
25
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
25
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
26
26
|
},
|
|
27
27
|
"directory": {
|
|
28
28
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"flat": {
|
|
45
45
|
"description": "Flag to indicate if a directory is created.",
|
|
46
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
46
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
47
47
|
"type": "boolean",
|
|
48
48
|
"default": false
|
|
49
49
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestResourceGenerator",
|
|
4
4
|
"title": "Nest Resource Options Schema",
|
|
5
5
|
"description": "Nest Resource Options Schema.",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"$source": "projectName"
|
|
23
23
|
},
|
|
24
24
|
"alias": "p",
|
|
25
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
25
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
26
26
|
},
|
|
27
27
|
"directory": {
|
|
28
28
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"flat": {
|
|
45
45
|
"description": "Flag to indicate if a directory is created.",
|
|
46
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
46
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
47
47
|
"type": "boolean",
|
|
48
48
|
"default": false
|
|
49
49
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
3
|
"$id": "NxNestServiceGenerator",
|
|
4
4
|
"title": "Nest Service Options Schema",
|
|
5
5
|
"description": "Nest Service Options Schema.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$source": "projectName"
|
|
28
28
|
},
|
|
29
29
|
"alias": "p",
|
|
30
|
-
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx
|
|
30
|
+
"x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. it will be removed in nx v19."
|
|
31
31
|
},
|
|
32
32
|
"directory": {
|
|
33
33
|
"description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"flat": {
|
|
50
50
|
"description": "Flag to indicate if a directory is created.",
|
|
51
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
51
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.",
|
|
52
52
|
"type": "boolean",
|
|
53
53
|
"default": false
|
|
54
54
|
},
|
|
@@ -9,11 +9,11 @@ export type NestGeneratorOptions = {
|
|
|
9
9
|
skipFormat?: boolean;
|
|
10
10
|
nameAndDirectoryFormat?: NameAndDirectoryFormat;
|
|
11
11
|
/**
|
|
12
|
-
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
|
12
|
+
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.
|
|
13
13
|
*/
|
|
14
14
|
flat?: boolean;
|
|
15
15
|
/**
|
|
16
|
-
* @deprecated Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx
|
|
16
|
+
* @deprecated Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v19.
|
|
17
17
|
*/
|
|
18
18
|
project?: string;
|
|
19
19
|
};
|