nx 13.8.8 → 13.9.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.
Files changed (100) hide show
  1. package/bin/nx.d.ts +1 -0
  2. package/bin/nx.js +78 -1
  3. package/bin/nx.js.map +1 -1
  4. package/package.json +19 -2
  5. package/src/cli/decorate-cli.d.ts +1 -0
  6. package/src/cli/decorate-cli.js +19 -0
  7. package/src/cli/decorate-cli.js.map +1 -0
  8. package/src/cli/find-workspace-root.d.ts +8 -0
  9. package/src/cli/find-workspace-root.js +25 -0
  10. package/src/cli/find-workspace-root.js.map +1 -0
  11. package/src/cli/index.d.ts +3 -0
  12. package/src/cli/index.js +74 -0
  13. package/src/cli/index.js.map +1 -0
  14. package/src/cli/init-local.d.ts +2 -0
  15. package/src/cli/init-local.js +109 -0
  16. package/src/cli/init-local.js.map +1 -0
  17. package/src/cli/is_ci.d.ts +1 -0
  18. package/src/cli/is_ci.js +20 -0
  19. package/src/cli/is_ci.js.map +1 -0
  20. package/src/cli/output.d.ts +58 -0
  21. package/src/cli/output.js +129 -0
  22. package/src/cli/output.js.map +1 -0
  23. package/src/cli/parse-run-one-options.d.ts +6 -0
  24. package/src/cli/parse-run-one-options.js +139 -0
  25. package/src/cli/parse-run-one-options.js.map +1 -0
  26. package/src/cli/run-cli.d.ts +1 -0
  27. package/src/cli/run-cli.js +69 -0
  28. package/src/cli/run-cli.js.map +1 -0
  29. package/src/cli/workspace.d.ts +4 -0
  30. package/src/cli/workspace.js +3 -0
  31. package/src/cli/workspace.js.map +1 -0
  32. package/src/commands/generate.d.ts +15 -0
  33. package/src/commands/generate.js +170 -0
  34. package/src/commands/generate.js.map +1 -0
  35. package/src/commands/help.d.ts +1 -0
  36. package/src/commands/help.js +34 -0
  37. package/src/commands/help.js.map +1 -0
  38. package/src/commands/migrate.d.ts +77 -0
  39. package/src/commands/migrate.js +584 -0
  40. package/src/commands/migrate.js.map +1 -0
  41. package/src/commands/ngcli-adapter.d.ts +111 -0
  42. package/src/commands/ngcli-adapter.js +940 -0
  43. package/src/commands/ngcli-adapter.js.map +1 -0
  44. package/src/commands/run.d.ts +51 -0
  45. package/src/commands/run.js +224 -0
  46. package/src/commands/run.js.map +1 -0
  47. package/src/compat/compat.d.ts +1 -0
  48. package/src/compat/compat.js +86 -0
  49. package/src/compat/compat.js.map +1 -0
  50. package/src/shared/logger.d.ts +11 -0
  51. package/src/shared/logger.js +48 -0
  52. package/src/shared/logger.js.map +1 -0
  53. package/src/shared/nx-plugin.d.ts +18 -0
  54. package/src/shared/nx-plugin.js +53 -0
  55. package/src/shared/nx-plugin.js.map +1 -0
  56. package/src/shared/nx.d.ts +110 -0
  57. package/src/shared/nx.js +3 -0
  58. package/src/shared/nx.js.map +1 -0
  59. package/src/shared/package-json.d.ts +28 -0
  60. package/src/shared/package-json.js +10 -0
  61. package/src/shared/package-json.js.map +1 -0
  62. package/src/shared/package-manager.d.ts +32 -0
  63. package/src/shared/package-manager.js +83 -0
  64. package/src/shared/package-manager.js.map +1 -0
  65. package/src/shared/params.d.ts +113 -0
  66. package/src/shared/params.js +587 -0
  67. package/src/shared/params.js.map +1 -0
  68. package/src/shared/print-help.d.ts +2 -0
  69. package/src/shared/print-help.js +32 -0
  70. package/src/shared/print-help.js.map +1 -0
  71. package/src/shared/project-graph.d.ts +135 -0
  72. package/src/shared/project-graph.js +22 -0
  73. package/src/shared/project-graph.js.map +1 -0
  74. package/src/shared/tasks.d.ts +82 -0
  75. package/src/shared/tasks.js +3 -0
  76. package/src/shared/tasks.js.map +1 -0
  77. package/src/shared/tree.d.ts +115 -0
  78. package/src/shared/tree.js +259 -0
  79. package/src/shared/tree.js.map +1 -0
  80. package/src/shared/workspace.d.ts +257 -0
  81. package/src/shared/workspace.js +522 -0
  82. package/src/shared/workspace.js.map +1 -0
  83. package/src/utils/app-root.d.ts +2 -0
  84. package/src/utils/app-root.js +30 -0
  85. package/src/utils/app-root.js.map +1 -0
  86. package/src/utils/fileutils.d.ts +31 -0
  87. package/src/utils/fileutils.js +45 -0
  88. package/src/utils/fileutils.js.map +1 -0
  89. package/src/utils/json.d.ts +39 -0
  90. package/src/utils/json.js +48 -0
  91. package/src/utils/json.js.map +1 -0
  92. package/src/utils/object-sort.d.ts +1 -0
  93. package/src/utils/object-sort.js +12 -0
  94. package/src/utils/object-sort.js.map +1 -0
  95. package/src/utils/register.d.ts +9 -0
  96. package/src/utils/register.js +36 -0
  97. package/src/utils/register.js.map +1 -0
  98. package/src/utils/split-target.d.ts +1 -0
  99. package/src/utils/split-target.js +26 -0
  100. package/src/utils/split-target.js.map +1 -0
@@ -0,0 +1,110 @@
1
+ import { PackageManager } from './package-manager';
2
+ import { TargetDependencyConfig } from './workspace';
3
+ export declare type ImplicitDependencyEntry<T = '*' | string[]> = {
4
+ [key: string]: T | ImplicitJsonSubsetDependency<T>;
5
+ };
6
+ export interface ImplicitJsonSubsetDependency<T = '*' | string[]> {
7
+ [key: string]: T | ImplicitJsonSubsetDependency<T>;
8
+ }
9
+ export interface NxAffectedConfig {
10
+ /**
11
+ * Default based branch used by affected commands.
12
+ */
13
+ defaultBase?: string;
14
+ }
15
+ /**
16
+ * Nx.json configuration
17
+ */
18
+ export interface NxJsonConfiguration<T = '*' | string[]> {
19
+ /**
20
+ * Optional (additional) Nx.json configuration file which becomes a base for this one
21
+ */
22
+ extends?: string;
23
+ /**
24
+ * Map of files to projects that implicitly depend on them
25
+ */
26
+ implicitDependencies?: ImplicitDependencyEntry<T>;
27
+ /**
28
+ * Dependencies between different target names across all projects
29
+ */
30
+ targetDependencies?: Record<string, TargetDependencyConfig[]>;
31
+ /**
32
+ * NPM Scope that the workspace uses
33
+ */
34
+ npmScope: string;
35
+ /**
36
+ * Default options for `nx affected`
37
+ */
38
+ affected?: NxAffectedConfig;
39
+ /**
40
+ * Where new apps + libs should be placed
41
+ */
42
+ workspaceLayout?: {
43
+ libsDir: string;
44
+ appsDir: string;
45
+ };
46
+ /**
47
+ * Available Task Runners
48
+ */
49
+ tasksRunnerOptions?: {
50
+ [tasksRunnerName: string]: {
51
+ /**
52
+ * Path to resolve the runner
53
+ */
54
+ runner: string;
55
+ /**
56
+ * Default options for the runner
57
+ */
58
+ options?: any;
59
+ };
60
+ };
61
+ /**
62
+ * List of default values used by generators.
63
+ *
64
+ * These defaults are global. They are used when no other defaults are configured.
65
+ *
66
+ * Example:
67
+ *
68
+ * ```
69
+ * {
70
+ * "@nrwl/react": {
71
+ * "library": {
72
+ * "style": "scss"
73
+ * }
74
+ * }
75
+ * }
76
+ * ```
77
+ */
78
+ generators?: {
79
+ [collectionName: string]: {
80
+ [generatorName: string]: any;
81
+ };
82
+ };
83
+ /**
84
+ * Default generator collection. It is used when no collection is provided.
85
+ */
86
+ cli?: {
87
+ packageManager?: PackageManager;
88
+ defaultCollection?: string;
89
+ };
90
+ /**
91
+ * Plugins for extending the project graph
92
+ */
93
+ plugins?: string[];
94
+ /**
95
+ * Configuration for Nx Plugins
96
+ */
97
+ pluginsConfig?: Record<string, unknown>;
98
+ /**
99
+ * Default project. When project isn't provided, the default project
100
+ * will be used. Convenient for small workspaces with one main application.
101
+ */
102
+ defaultProject?: string;
103
+ }
104
+ /**
105
+ * @deprecated(v14): nx.json no longer contains projects
106
+ */
107
+ export interface NxJsonProjectConfiguration {
108
+ implicitDependencies?: string[];
109
+ tags?: string[];
110
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=nx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nx.js","sourceRoot":"","sources":["../../../../../packages/nx/src/shared/nx.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import { TargetConfiguration } from './workspace';
2
+ export declare type PackageJsonTargetConfiguration = Omit<TargetConfiguration, 'executor'>;
3
+ export interface NxProjectPackageJsonConfiguration {
4
+ targets?: Record<string, PackageJsonTargetConfiguration>;
5
+ }
6
+ export interface PackageJson {
7
+ name: string;
8
+ scripts?: Record<string, string>;
9
+ dependencies?: Record<string, string>;
10
+ devDependencies?: Record<string, string>;
11
+ peerDependencies?: Record<string, string>;
12
+ nx?: NxProjectPackageJsonConfiguration;
13
+ generators?: string;
14
+ schematics?: string;
15
+ builders?: string;
16
+ executors?: string;
17
+ 'nx-migrations'?: string;
18
+ }
19
+ export declare function buildTargetFromScript(script: string, nx: NxProjectPackageJsonConfiguration): {
20
+ executor: string;
21
+ options: any;
22
+ outputs?: string[];
23
+ dependsOn?: import("./workspace").TargetDependencyConfig[];
24
+ configurations?: {
25
+ [config: string]: any;
26
+ };
27
+ defaultConfiguration?: string;
28
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildTargetFromScript = void 0;
4
+ function buildTargetFromScript(script, nx) {
5
+ var _a;
6
+ const nxTargetConfiguration = ((_a = nx === null || nx === void 0 ? void 0 : nx.targets) === null || _a === void 0 ? void 0 : _a[script]) || {};
7
+ return Object.assign(Object.assign({}, nxTargetConfiguration), { executor: '@nrwl/workspace:run-script', options: Object.assign(Object.assign({}, (nxTargetConfiguration.options || {})), { script }) });
8
+ }
9
+ exports.buildTargetFromScript = buildTargetFromScript;
10
+ //# sourceMappingURL=package-json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-json.js","sourceRoot":"","sources":["../../../../../packages/nx/src/shared/package-json.ts"],"names":[],"mappings":";;;AA8BA,SAAgB,qBAAqB,CACnC,MAAc,EACd,EAAqC;;IAErC,MAAM,qBAAqB,GAAG,CAAA,MAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,OAAO,0CAAG,MAAM,CAAC,KAAI,EAAE,CAAC;IAE1D,uCACK,qBAAqB,KACxB,QAAQ,EAAE,4BAA4B,EACtC,OAAO,kCACF,CAAC,qBAAqB,CAAC,OAAO,IAAI,EAAE,CAAC,KACxC,MAAM,OAER;AACJ,CAAC;AAdD,sDAcC"}
@@ -0,0 +1,32 @@
1
+ export declare type PackageManager = 'yarn' | 'pnpm' | 'npm';
2
+ export interface PackageManagerCommands {
3
+ install: string;
4
+ add: string;
5
+ addDev: string;
6
+ rm: string;
7
+ exec: string;
8
+ list: string;
9
+ run: (script: string, args: string) => string;
10
+ }
11
+ /**
12
+ * Detects which package manager is used in the workspace based on the lock file.
13
+ */
14
+ export declare function detectPackageManager(dir?: string): PackageManager;
15
+ /**
16
+ * Returns commands for the package manager used in the workspace.
17
+ * By default, the package manager is derived based on the lock file,
18
+ * but it can also be passed in explicitly.
19
+ *
20
+ * Example:
21
+ *
22
+ * ```javascript
23
+ * execSync(`${getPackageManagerCommand().addDev} my-dev-package`);
24
+ * ```
25
+ */
26
+ export declare function getPackageManagerCommand(packageManager?: PackageManager): PackageManagerCommands;
27
+ /**
28
+ * Returns the version of the package manager used in the workspace.
29
+ * By default, the package manager is derived based on the lock file,
30
+ * but it can also be passed in explicitly.
31
+ */
32
+ export declare function getPackageManagerVersion(packageManager?: PackageManager): string;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPackageManagerVersion = exports.getPackageManagerCommand = exports.detectPackageManager = void 0;
4
+ const child_process_1 = require("child_process");
5
+ const fs_1 = require("fs");
6
+ const path_1 = require("path");
7
+ /**
8
+ * Detects which package manager is used in the workspace based on the lock file.
9
+ */
10
+ function detectPackageManager(dir = '') {
11
+ return (0, fs_1.existsSync)((0, path_1.join)(dir, 'yarn.lock'))
12
+ ? 'yarn'
13
+ : (0, fs_1.existsSync)((0, path_1.join)(dir, 'pnpm-lock.yaml'))
14
+ ? 'pnpm'
15
+ : 'npm';
16
+ }
17
+ exports.detectPackageManager = detectPackageManager;
18
+ /**
19
+ * Returns commands for the package manager used in the workspace.
20
+ * By default, the package manager is derived based on the lock file,
21
+ * but it can also be passed in explicitly.
22
+ *
23
+ * Example:
24
+ *
25
+ * ```javascript
26
+ * execSync(`${getPackageManagerCommand().addDev} my-dev-package`);
27
+ * ```
28
+ */
29
+ function getPackageManagerCommand(packageManager = detectPackageManager()) {
30
+ const commands = {
31
+ yarn: () => ({
32
+ install: 'yarn',
33
+ add: 'yarn add -W',
34
+ addDev: 'yarn add -D -W',
35
+ rm: 'yarn remove',
36
+ exec: 'yarn',
37
+ run: (script, args) => `yarn ${script} ${args}`,
38
+ list: 'yarn list',
39
+ }),
40
+ pnpm: () => {
41
+ const [major, minor] = getPackageManagerVersion('pnpm').split('.');
42
+ let useExec = false;
43
+ if (+major >= 6 && +minor >= 13) {
44
+ useExec = true;
45
+ }
46
+ return {
47
+ install: 'pnpm install --no-frozen-lockfile',
48
+ add: 'pnpm add',
49
+ addDev: 'pnpm add -D',
50
+ rm: 'pnpm rm',
51
+ exec: useExec ? 'pnpm exec' : 'pnpx',
52
+ run: (script, args) => `pnpm run ${script} -- ${args}`,
53
+ list: 'pnpm ls --depth 100',
54
+ };
55
+ },
56
+ npm: () => {
57
+ var _a;
58
+ var _b;
59
+ (_a = (_b = process.env).npm_config_legacy_peer_deps) !== null && _a !== void 0 ? _a : (_b.npm_config_legacy_peer_deps = 'true');
60
+ return {
61
+ install: 'npm install',
62
+ add: 'npm install',
63
+ addDev: 'npm install -D',
64
+ rm: 'npm rm',
65
+ exec: 'npx',
66
+ run: (script, args) => `npm run ${script} -- ${args}`,
67
+ list: 'npm ls',
68
+ };
69
+ },
70
+ };
71
+ return commands[packageManager]();
72
+ }
73
+ exports.getPackageManagerCommand = getPackageManagerCommand;
74
+ /**
75
+ * Returns the version of the package manager used in the workspace.
76
+ * By default, the package manager is derived based on the lock file,
77
+ * but it can also be passed in explicitly.
78
+ */
79
+ function getPackageManagerVersion(packageManager = detectPackageManager()) {
80
+ return (0, child_process_1.execSync)(`${packageManager} --version`).toString('utf-8').trim();
81
+ }
82
+ exports.getPackageManagerVersion = getPackageManagerVersion;
83
+ //# sourceMappingURL=package-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-manager.js","sourceRoot":"","sources":["../../../../../packages/nx/src/shared/package-manager.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AACzC,2BAAgC;AAChC,+BAA4B;AAc5B;;GAEG;AACH,SAAgB,oBAAoB,CAAC,MAAc,EAAE;IACnD,OAAO,IAAA,eAAU,EAAC,IAAA,WAAI,EAAC,GAAG,EAAE,WAAW,CAAC,CAAC;QACvC,CAAC,CAAC,MAAM;QACR,CAAC,CAAC,IAAA,eAAU,EAAC,IAAA,WAAI,EAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;YACzC,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,KAAK,CAAC;AACZ,CAAC;AAND,oDAMC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,wBAAwB,CACtC,iBAAiC,oBAAoB,EAAE;IAEvD,MAAM,QAAQ,GAA6D;QACzE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;YACX,OAAO,EAAE,MAAM;YACf,GAAG,EAAE,aAAa;YAClB,MAAM,EAAE,gBAAgB;YACxB,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,MAAM;YACZ,GAAG,EAAE,CAAC,MAAc,EAAE,IAAY,EAAE,EAAE,CAAC,QAAQ,MAAM,IAAI,IAAI,EAAE;YAC/D,IAAI,EAAE,WAAW;SAClB,CAAC;QACF,IAAI,EAAE,GAAG,EAAE;YACT,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,wBAAwB,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACnE,IAAI,OAAO,GAAG,KAAK,CAAC;YACpB,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,EAAE;gBAC/B,OAAO,GAAG,IAAI,CAAC;aAChB;YACD,OAAO;gBACL,OAAO,EAAE,mCAAmC;gBAC5C,GAAG,EAAE,UAAU;gBACf,MAAM,EAAE,aAAa;gBACrB,EAAE,EAAE,SAAS;gBACb,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM;gBACpC,GAAG,EAAE,CAAC,MAAc,EAAE,IAAY,EAAE,EAAE,CAAC,YAAY,MAAM,OAAO,IAAI,EAAE;gBACtE,IAAI,EAAE,qBAAqB;aAC5B,CAAC;QACJ,CAAC;QACD,GAAG,EAAE,GAAG,EAAE;;;YACR,YAAA,OAAO,CAAC,GAAG,EAAC,2BAA2B,uCAA3B,2BAA2B,GAAK,MAAM,EAAC;YAEnD,OAAO;gBACL,OAAO,EAAE,aAAa;gBACtB,GAAG,EAAE,aAAa;gBAClB,MAAM,EAAE,gBAAgB;gBACxB,EAAE,EAAE,QAAQ;gBACZ,IAAI,EAAE,KAAK;gBACX,GAAG,EAAE,CAAC,MAAc,EAAE,IAAY,EAAE,EAAE,CAAC,WAAW,MAAM,OAAO,IAAI,EAAE;gBACrE,IAAI,EAAE,QAAQ;aACf,CAAC;QACJ,CAAC;KACF,CAAC;IAEF,OAAO,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;AACpC,CAAC;AA7CD,4DA6CC;AAED;;;;GAIG;AACH,SAAgB,wBAAwB,CACtC,iBAAiC,oBAAoB,EAAE;IAEvD,OAAO,IAAA,wBAAQ,EAAC,GAAG,cAAc,YAAY,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;AAC1E,CAAC;AAJD,4DAIC"}
@@ -0,0 +1,113 @@
1
+ import type { Arguments } from 'yargs-parser';
2
+ import { TargetConfiguration, WorkspaceJsonConfiguration } from './workspace';
3
+ import { NxJsonConfiguration } from './nx';
4
+ declare type PropertyDescription = {
5
+ type?: string | string[];
6
+ required?: string[];
7
+ enum?: string[];
8
+ properties?: any;
9
+ oneOf?: PropertyDescription[];
10
+ anyOf?: PropertyDescription[];
11
+ allOf?: PropertyDescription[];
12
+ items?: any;
13
+ alias?: string;
14
+ aliases?: string[];
15
+ description?: string;
16
+ format?: string;
17
+ visible?: boolean;
18
+ default?: string | number | boolean | string[] | {
19
+ [key: string]: string | number | boolean | string[];
20
+ };
21
+ $ref?: string;
22
+ $default?: {
23
+ $source: 'argv';
24
+ index: number;
25
+ } | {
26
+ $source: 'projectName';
27
+ };
28
+ additionalProperties?: boolean;
29
+ 'x-prompt'?: string | {
30
+ message: string;
31
+ type: string;
32
+ items: any[];
33
+ multiselect?: boolean;
34
+ };
35
+ 'x-deprecated'?: boolean | string;
36
+ multipleOf?: number;
37
+ minimum?: number;
38
+ exclusiveMinimum?: number;
39
+ maximum?: number;
40
+ exclusiveMaximum?: number;
41
+ pattern?: string;
42
+ minLength?: number;
43
+ maxLength?: number;
44
+ };
45
+ declare type Properties = {
46
+ [p: string]: PropertyDescription;
47
+ };
48
+ export declare type Schema = {
49
+ properties: Properties;
50
+ required?: string[];
51
+ description?: string;
52
+ definitions?: Properties;
53
+ additionalProperties?: boolean;
54
+ };
55
+ export declare type Unmatched = {
56
+ name: string;
57
+ possible: string[];
58
+ };
59
+ export declare type Options = {
60
+ '--'?: Unmatched[];
61
+ [k: string]: string | number | boolean | string[] | Unmatched[];
62
+ };
63
+ export declare function handleErrors(isVerbose: boolean, fn: Function): Promise<any>;
64
+ export declare function convertToCamelCase(parsed: Arguments): Options;
65
+ /**
66
+ * Coerces (and replaces) options identified as 'boolean' or 'number' in the Schema
67
+ *
68
+ * @param opts The options to check
69
+ * @param schema The schema definition with types to check against
70
+ *
71
+ */
72
+ export declare function coerceTypesInOptions(opts: Options, schema: Schema): Options;
73
+ /**
74
+ * Converts any options passed in with short aliases to their full names if found
75
+ * Unmatched options are added to opts['--']
76
+ *
77
+ * @param opts The options passed in by the user
78
+ * @param schema The schema definition to check against
79
+ */
80
+ export declare function convertAliases(opts: Options, schema: Schema, excludeUnmatched: boolean): Options;
81
+ export declare class SchemaError {
82
+ readonly message: string;
83
+ constructor(message: string);
84
+ }
85
+ export declare function validateOptsAgainstSchema(opts: {
86
+ [k: string]: any;
87
+ }, schema: Schema): void;
88
+ export declare function validateObject(opts: {
89
+ [k: string]: any;
90
+ }, properties: Properties, required: string[], additionalProperties: boolean | undefined, definitions: Properties): void;
91
+ export declare function setDefaults(opts: {
92
+ [k: string]: any;
93
+ }, schema: Schema): {
94
+ [k: string]: any;
95
+ };
96
+ export declare function applyVerbosity(options: Record<string, unknown>, schema: Schema, isVerbose: boolean): void;
97
+ export declare function combineOptionsForExecutor(commandLineOpts: Options, config: string, target: TargetConfiguration, schema: Schema, defaultProjectName: string | null, relativeCwd: string | null, isVerbose?: boolean): any;
98
+ export declare function combineOptionsForGenerator(commandLineOpts: Options, collectionName: string, generatorName: string, wc: (WorkspaceJsonConfiguration & NxJsonConfiguration) | null, schema: Schema, isInteractive: boolean, defaultProjectName: string | null, relativeCwd: string | null, isVerbose?: boolean): Promise<Options>;
99
+ export declare function warnDeprecations(opts: {
100
+ [k: string]: any;
101
+ }, schema: Schema): void;
102
+ export declare function convertSmartDefaultsIntoNamedParams(opts: {
103
+ [k: string]: any;
104
+ }, schema: Schema, argv: string[], defaultProjectName: string | null, relativeCwd: string | null): void;
105
+ /**
106
+ * Tries to find what the user meant by unmatched commands
107
+ *
108
+ * @param opts The options passed in by the user
109
+ * @param schema The schema definition to check against
110
+ *
111
+ */
112
+ export declare function lookupUnmatched(opts: Options, schema: Schema): Options;
113
+ export {};