@nx/plugin 23.0.0-pr.35465.2bc2643 → 23.0.0-rc.1

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 (104) hide show
  1. package/{generators.d.ts → dist/generators.d.ts} +0 -1
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +2 -0
  4. package/{src → dist/src}/generators/create-package/create-package.d.ts +0 -1
  5. package/{src → dist/src}/generators/create-package/create-package.js +8 -10
  6. package/{src → dist/src}/generators/create-package/utils/normalize-schema.d.ts +0 -1
  7. package/{src → dist/src}/generators/create-package/utils/normalize-schema.js +7 -8
  8. package/{src → dist/src}/generators/e2e-project/e2e.d.ts +0 -1
  9. package/{src → dist/src}/generators/e2e-project/e2e.js +8 -11
  10. package/{src → dist/src}/generators/executor/executor.d.ts +0 -1
  11. package/{src → dist/src}/generators/executor/executor.js +4 -4
  12. package/{src → dist/src}/generators/executor/files/executor/__fileName__.ts.template +2 -2
  13. package/{src → dist/src}/generators/executor/files/hasher/hasher.spec.ts.template +2 -1
  14. package/{src → dist/src}/generators/executor/files/hasher/hasher.ts.template +1 -1
  15. package/{src → dist/src}/generators/generator/files/generator/__fileName__.ts.template +2 -2
  16. package/{src → dist/src}/generators/generator/generator.d.ts +0 -1
  17. package/{src → dist/src}/generators/generator/generator.js +4 -4
  18. package/{src → dist/src}/generators/lint-checks/generator.d.ts +1 -2
  19. package/{src → dist/src}/generators/lint-checks/generator.js +31 -13
  20. package/{src → dist/src}/generators/migration/files/migration/__fileName__.ts__tmpl__ +1 -1
  21. package/{src → dist/src}/generators/migration/migration.d.ts +0 -1
  22. package/{src → dist/src}/generators/migration/migration.js +7 -5
  23. package/{src → dist/src}/generators/plugin/plugin.d.ts +0 -1
  24. package/{src → dist/src}/generators/plugin/plugin.js +14 -9
  25. package/{src → dist/src}/generators/plugin/schema.json +0 -6
  26. package/{src → dist/src}/generators/plugin/utils/normalize-schema.d.ts +0 -1
  27. package/{src → dist/src}/generators/plugin/utils/normalize-schema.js +8 -9
  28. package/{src → dist/src}/generators/preset/generator.d.ts +0 -1
  29. package/{src → dist/src}/utils/has-generator.d.ts +0 -1
  30. package/{src → dist/src}/utils/paths.d.ts +0 -1
  31. package/{src → dist/src}/utils/paths.js +2 -2
  32. package/{src → dist/src}/utils/testing-utils/async-commands.d.ts +0 -1
  33. package/{src → dist/src}/utils/testing-utils/commands.d.ts +0 -1
  34. package/{src → dist/src}/utils/testing-utils/index.d.ts +0 -1
  35. package/{src → dist/src}/utils/testing-utils/nx-project.d.ts +0 -1
  36. package/{src → dist/src}/utils/testing-utils/paths.d.ts +0 -1
  37. package/{src → dist/src}/utils/testing-utils/utils.d.ts +0 -1
  38. package/{src → dist/src}/utils/versions.d.ts +0 -1
  39. package/{src → dist/src}/utils/versions.js +2 -1
  40. package/{testing.d.ts → dist/testing.d.ts} +0 -1
  41. package/generators.json +16 -16
  42. package/package.json +46 -9
  43. package/generators.d.ts.map +0 -1
  44. package/index.d.ts +0 -1
  45. package/index.d.ts.map +0 -1
  46. package/index.js +0 -0
  47. package/src/generators/create-package/create-package.d.ts.map +0 -1
  48. package/src/generators/create-package/utils/normalize-schema.d.ts.map +0 -1
  49. package/src/generators/e2e-project/e2e.d.ts.map +0 -1
  50. package/src/generators/executor/executor.d.ts.map +0 -1
  51. package/src/generators/generator/generator.d.ts.map +0 -1
  52. package/src/generators/lint-checks/generator.d.ts.map +0 -1
  53. package/src/generators/migration/migration.d.ts.map +0 -1
  54. package/src/generators/plugin/plugin.d.ts.map +0 -1
  55. package/src/generators/plugin/utils/normalize-schema.d.ts.map +0 -1
  56. package/src/generators/preset/generator.d.ts.map +0 -1
  57. package/src/utils/has-generator.d.ts.map +0 -1
  58. package/src/utils/paths.d.ts.map +0 -1
  59. package/src/utils/testing-utils/async-commands.d.ts.map +0 -1
  60. package/src/utils/testing-utils/commands.d.ts.map +0 -1
  61. package/src/utils/testing-utils/index.d.ts.map +0 -1
  62. package/src/utils/testing-utils/nx-project.d.ts.map +0 -1
  63. package/src/utils/testing-utils/paths.d.ts.map +0 -1
  64. package/src/utils/testing-utils/utils.d.ts.map +0 -1
  65. package/src/utils/versions.d.ts.map +0 -1
  66. package/testing.d.ts.map +0 -1
  67. /package/{LICENSE → dist/LICENSE} +0 -0
  68. /package/{generators.js → dist/generators.js} +0 -0
  69. /package/{src → dist/src}/generators/create-package/files/create-framework-package/bin/index.ts__tmpl__ +0 -0
  70. /package/{src → dist/src}/generators/create-package/files/e2e/__cliName__.spec.ts__tmpl__ +0 -0
  71. /package/{src → dist/src}/generators/create-package/schema.d.ts +0 -0
  72. /package/{src → dist/src}/generators/create-package/schema.json +0 -0
  73. /package/{src → dist/src}/generators/e2e-project/files/src/__simplePluginName__.spec.ts__tmpl__ +0 -0
  74. /package/{src → dist/src}/generators/e2e-project/files/tsconfig.json__tmpl__ +0 -0
  75. /package/{src → dist/src}/generators/e2e-project/schema.d.ts +0 -0
  76. /package/{src → dist/src}/generators/e2e-project/schema.json +0 -0
  77. /package/{src → dist/src}/generators/executor/files/executor/__fileName__.spec.ts.template +0 -0
  78. /package/{src → dist/src}/generators/executor/files/executor/schema.d.ts.template +0 -0
  79. /package/{src → dist/src}/generators/executor/files/executor/schema.json.template +0 -0
  80. /package/{src → dist/src}/generators/executor/schema.d.ts +0 -0
  81. /package/{src → dist/src}/generators/executor/schema.json +0 -0
  82. /package/{src → dist/src}/generators/generator/files/generator/__fileName__.spec.ts.template +0 -0
  83. /package/{src → dist/src}/generators/generator/files/generator/schema.d.ts.template +0 -0
  84. /package/{src → dist/src}/generators/generator/files/generator/schema.json.template +0 -0
  85. /package/{src → dist/src}/generators/generator/schema.d.ts +0 -0
  86. /package/{src → dist/src}/generators/generator/schema.json +0 -0
  87. /package/{src → dist/src}/generators/lint-checks/schema.d.ts +0 -0
  88. /package/{src → dist/src}/generators/lint-checks/schema.json +0 -0
  89. /package/{src → dist/src}/generators/migration/files/migration/__fileName__.spec.ts__tmpl__ +0 -0
  90. /package/{src → dist/src}/generators/migration/schema.d.ts +0 -0
  91. /package/{src → dist/src}/generators/migration/schema.json +0 -0
  92. /package/{src → dist/src}/generators/plugin/files/plugin/src/index.ts__tmpl__ +0 -0
  93. /package/{src → dist/src}/generators/plugin/schema.d.ts +0 -0
  94. /package/{src → dist/src}/generators/preset/generator.js +0 -0
  95. /package/{src → dist/src}/generators/preset/schema.d.ts +0 -0
  96. /package/{src → dist/src}/generators/preset/schema.json +0 -0
  97. /package/{src → dist/src}/utils/has-generator.js +0 -0
  98. /package/{src → dist/src}/utils/testing-utils/async-commands.js +0 -0
  99. /package/{src → dist/src}/utils/testing-utils/commands.js +0 -0
  100. /package/{src → dist/src}/utils/testing-utils/index.js +0 -0
  101. /package/{src → dist/src}/utils/testing-utils/nx-project.js +0 -0
  102. /package/{src → dist/src}/utils/testing-utils/paths.js +0 -0
  103. /package/{src → dist/src}/utils/testing-utils/utils.js +0 -0
  104. /package/{testing.js → dist/testing.js} +0 -0
@@ -4,4 +4,3 @@ export * from './src/generators/executor/executor';
4
4
  export * from './src/generators/generator/generator';
5
5
  export * from './src/generators/plugin/plugin';
6
6
  export * from './src/generators/migration/migration';
7
- //# sourceMappingURL=generators.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,4 +3,3 @@ import { CreatePackageSchema } from './schema';
3
3
  export declare function createPackageGenerator(host: Tree, schema: CreatePackageSchema): Promise<GeneratorCallback>;
4
4
  export declare function createPackageGeneratorInternal(host: Tree, schema: CreatePackageSchema): Promise<GeneratorCallback>;
5
5
  export default createPackageGenerator;
6
- //# sourceMappingURL=create-package.d.ts.map
@@ -4,10 +4,8 @@ exports.createPackageGenerator = createPackageGenerator;
4
4
  exports.createPackageGeneratorInternal = createPackageGeneratorInternal;
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const js_1 = require("@nx/js");
7
- const add_tslib_dependencies_1 = require("@nx/js/src/utils/typescript/add-tslib-dependencies");
8
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
9
- const versions_1 = require("@nx/js/src/utils/versions");
10
- const versions_2 = require("nx/src/utils/versions");
7
+ const internal_1 = require("@nx/js/internal");
8
+ const versions_1 = require("nx/src/utils/versions");
11
9
  const path_1 = require("path");
12
10
  const has_generator_1 = require("../../utils/has-generator");
13
11
  const generator_1 = require("../generator/generator");
@@ -24,10 +22,10 @@ async function createPackageGeneratorInternal(host, schema) {
24
22
  const options = await (0, normalize_schema_1.normalizeSchema)(host, schema);
25
23
  const pluginPackageName = await addPresetGenerator(host, options);
26
24
  if (options.bundler === 'tsc') {
27
- tasks.push((0, add_tslib_dependencies_1.addTsLibDependencies)(host));
25
+ tasks.push((0, js_1.addTsLibDependencies)(host));
28
26
  }
29
27
  const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, {
30
- 'create-nx-workspace': versions_2.nxVersion,
28
+ 'create-nx-workspace': versions_1.nxVersion,
31
29
  }, {});
32
30
  tasks.push(installTask);
33
31
  const cliPackageTask = await createCliPackage(host, options, pluginPackageName);
@@ -73,7 +71,7 @@ async function createCliPackage(host, options, pluginPackageName) {
73
71
  useTscExecutor: true,
74
72
  });
75
73
  host.delete((0, devkit_1.joinPathFragments)(options.projectRoot, 'src'));
76
- const isTsSolutionSetup = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host);
74
+ const isTsSolutionSetup = (0, internal_1.isUsingTsSolutionSetup)(host);
77
75
  // Add the bin entry to the package.json
78
76
  (0, devkit_1.updateJson)(host, (0, devkit_1.joinPathFragments)(options.projectRoot, 'package.json'), (packageJson) => {
79
77
  packageJson.bin = {
@@ -88,8 +86,8 @@ async function createCliPackage(host, options, pluginPackageName) {
88
86
  delete packageJson.exports;
89
87
  }
90
88
  packageJson.dependencies = {
91
- 'create-nx-workspace': versions_2.nxVersion,
92
- ...(options.bundler === 'tsc' && { tslib: versions_1.tsLibVersion }),
89
+ 'create-nx-workspace': versions_1.nxVersion,
90
+ ...(options.bundler === 'tsc' && { tslib: internal_1.tsLibVersion }),
93
91
  };
94
92
  return packageJson;
95
93
  });
@@ -131,7 +129,7 @@ function addE2eProject(host, options) {
131
129
  const e2eProjectConfiguration = (0, devkit_1.readProjectConfiguration)(host, options.e2eProject);
132
130
  const projectConfiguration = (0, devkit_1.readProjectConfiguration)(host, options.project);
133
131
  const { name: pluginPackageName } = (0, devkit_1.readJson)(host, (0, path_1.join)(projectConfiguration.root, 'package.json'));
134
- (0, devkit_1.generateFiles)(host, (0, devkit_1.joinPathFragments)(__dirname, './files/e2e'), (0, ts_solution_setup_1.getProjectSourceRoot)(e2eProjectConfiguration, host), {
132
+ (0, devkit_1.generateFiles)(host, (0, devkit_1.joinPathFragments)(__dirname, './files/e2e'), (0, internal_1.getProjectSourceRoot)(e2eProjectConfiguration, host), {
135
133
  pluginName: options.project,
136
134
  cliName: options.name,
137
135
  packageManagerCommands: (0, devkit_1.getPackageManagerCommand)(),
@@ -12,4 +12,3 @@ export interface NormalizedSchema extends CreatePackageSchema {
12
12
  isTsSolutionSetup: boolean;
13
13
  }
14
14
  export declare function normalizeSchema(host: Tree, schema: CreatePackageSchema): Promise<NormalizedSchema>;
15
- //# sourceMappingURL=normalize-schema.d.ts.map
@@ -2,16 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeSchema = normalizeSchema;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
6
- const generator_prompts_1 = require("@nx/js/src/utils/generator-prompts");
7
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
5
+ const internal_1 = require("@nx/devkit/internal");
6
+ const internal_2 = require("@nx/js/internal");
8
7
  async function normalizeSchema(host, schema) {
9
- const linter = await (0, generator_prompts_1.normalizeLinterOption)(host, schema.linter);
10
- const unitTestRunner = await (0, generator_prompts_1.normalizeUnitTestRunnerOption)(host, schema.unitTestRunner, ['jest']);
8
+ const linter = await (0, internal_2.normalizeLinterOption)(host, schema.linter);
9
+ const unitTestRunner = await (0, internal_2.normalizeUnitTestRunnerOption)(host, schema.unitTestRunner, ['jest']);
11
10
  if (!schema.directory) {
12
11
  throw new Error(`Please provide the --directory option. It should be the directory containing the project '${schema.project}'.`);
13
12
  }
14
- const { projectName, names: projectNames, projectRoot, } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
13
+ const { projectName, names: projectNames, projectRoot, } = await (0, internal_1.determineProjectNameAndRootOptions)(host, {
15
14
  name: schema.name,
16
15
  projectType: 'library',
17
16
  directory: schema.directory,
@@ -20,8 +19,8 @@ async function normalizeSchema(host, schema) {
20
19
  // jsLibraryGenerator, so, if the TS solution setup is not configured, we
21
20
  // additionally check if the TS solution setup will be configured by the
22
21
  // jsLibraryGenerator
23
- const isTsSolutionSetup = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host) ||
24
- (0, ts_solution_setup_1.shouldConfigureTsSolutionSetup)(host, schema.addPlugin);
22
+ const isTsSolutionSetup = (0, internal_2.isUsingTsSolutionSetup)(host) ||
23
+ (0, internal_2.shouldConfigureTsSolutionSetup)(host, schema.addPlugin);
25
24
  const nxJson = (0, devkit_1.readNxJson)(host);
26
25
  const addPlugin = schema.addPlugin ??
27
26
  (isTsSolutionSetup &&
@@ -3,4 +3,3 @@ import type { Schema } from './schema';
3
3
  export declare function e2eProjectGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
4
4
  export declare function e2eProjectGeneratorInternal(host: Tree, schema: Schema): Promise<GeneratorCallback>;
5
5
  export default e2eProjectGenerator;
6
- //# sourceMappingURL=e2e.d.ts.map
@@ -2,25 +2,22 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.e2eProjectGenerator = e2eProjectGenerator;
4
4
  exports.e2eProjectGeneratorInternal = e2eProjectGeneratorInternal;
5
+ const internal_1 = require("@nx/devkit/internal");
5
6
  const devkit_1 = require("@nx/devkit");
6
- const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
7
7
  const eslint_1 = require("@nx/eslint");
8
8
  const jest_1 = require("@nx/jest");
9
9
  const js_1 = require("@nx/js");
10
- const generator_1 = require("@nx/js/src/generators/setup-verdaccio/generator");
11
- const add_local_registry_scripts_1 = require("@nx/js/src/utils/add-local-registry-scripts");
12
- const generator_prompts_1 = require("@nx/js/src/utils/generator-prompts");
13
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
10
+ const internal_2 = require("@nx/js/internal");
14
11
  const path_1 = require("path");
15
12
  async function normalizeOptions(host, options) {
16
- const linter = await (0, generator_prompts_1.normalizeLinterOption)(host, options.linter);
13
+ const linter = await (0, internal_2.normalizeLinterOption)(host, options.linter);
17
14
  const projectName = options.rootProject ? 'e2e' : `${options.pluginName}-e2e`;
18
15
  const nxJson = (0, devkit_1.readNxJson)(host);
19
16
  const addPlugin = options.addPlugin ??
20
17
  (process.env.NX_ADD_PLUGINS !== 'false' &&
21
18
  nxJson.useInferencePlugins !== false);
22
19
  let projectRoot;
23
- const projectNameAndRootOptions = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
20
+ const projectNameAndRootOptions = await (0, internal_1.determineProjectNameAndRootOptions)(host, {
24
21
  name: projectName,
25
22
  projectType: 'application',
26
23
  directory: options.rootProject || !options.projectDirectory
@@ -29,7 +26,7 @@ async function normalizeOptions(host, options) {
29
26
  });
30
27
  projectRoot = projectNameAndRootOptions.projectRoot;
31
28
  const pluginPropertyName = (0, devkit_1.names)(options.pluginName).propertyName;
32
- const isTsSolutionSetup = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host);
29
+ const isTsSolutionSetup = (0, internal_2.isUsingTsSolutionSetup)(host);
33
30
  return {
34
31
  ...options,
35
32
  projectName,
@@ -92,7 +89,7 @@ async function addJest(host, options) {
92
89
  addPlugin: options.addPlugin,
93
90
  compiler: options.isTsSolutionSetup ? 'swc' : undefined,
94
91
  });
95
- const { startLocalRegistryPath, stopLocalRegistryPath } = (0, add_local_registry_scripts_1.addLocalRegistryScripts)(host);
92
+ const { startLocalRegistryPath, stopLocalRegistryPath } = (0, internal_2.addLocalRegistryScripts)(host);
96
93
  const jestConfigPath = (0, jest_1.findJestConfig)(host, options.projectRoot);
97
94
  if (!jestConfigPath) {
98
95
  throw new Error(`Could not find Jest config for project ${options.projectName} at ${options.projectRoot}`);
@@ -149,7 +146,7 @@ async function e2eProjectGeneratorInternal(host, schema) {
149
146
  validatePlugin(host, schema.pluginName);
150
147
  const options = await normalizeOptions(host, schema);
151
148
  addFiles(host, options);
152
- tasks.push(await (0, generator_1.setupVerdaccio)(host, {
149
+ tasks.push(await (0, js_1.setupVerdaccio)(host, {
153
150
  skipFormat: true,
154
151
  }));
155
152
  tasks.push(await addJest(host, options));
@@ -174,7 +171,7 @@ async function e2eProjectGeneratorInternal(host, schema) {
174
171
  // If we are using the new TS solution
175
172
  // We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
176
173
  if (options.isTsSolutionSetup) {
177
- await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.projectRoot);
174
+ await (0, internal_2.addProjectToTsSolutionWorkspace)(host, options.projectRoot);
178
175
  }
179
176
  if (!options.skipFormat) {
180
177
  await (0, devkit_1.formatFiles)(host);
@@ -3,4 +3,3 @@ import type { Schema } from './schema';
3
3
  export declare function createExecutorsJson(host: Tree, projectRoot: string, projectName: string, skipLintChecks?: boolean): Promise<void>;
4
4
  export declare function executorGenerator(host: Tree, schema: Schema): Promise<void>;
5
5
  export default executorGenerator;
6
- //# sourceMappingURL=executor.d.ts.map
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createExecutorsJson = createExecutorsJson;
4
4
  exports.executorGenerator = executorGenerator;
5
5
  const tslib_1 = require("tslib");
6
+ const internal_1 = require("@nx/devkit/internal");
6
7
  const devkit_1 = require("@nx/devkit");
7
- const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
8
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
8
+ const internal_2 = require("@nx/js/internal");
9
9
  const path_1 = require("path");
10
10
  const paths_1 = require("../../utils/paths");
11
11
  const versions_1 = require("../../utils/versions");
@@ -85,7 +85,7 @@ async function updateExecutorJson(host, options) {
85
85
  });
86
86
  }
87
87
  async function normalizeOptions(tree, options) {
88
- const { artifactName: name, directory: initialDirectory, fileName, project, } = await (0, artifact_name_and_directory_utils_1.determineArtifactNameAndDirectoryOptions)(tree, {
88
+ const { artifactName: name, directory: initialDirectory, fileName, project, } = await (0, internal_1.determineArtifactNameAndDirectoryOptions)(tree, {
89
89
  path: options.path,
90
90
  name: options.name,
91
91
  allowedFileExtensions: ['ts'],
@@ -124,7 +124,7 @@ async function normalizeOptions(tree, options) {
124
124
  description,
125
125
  projectRoot,
126
126
  projectSourceRoot: projectSourceRoot ?? (0, path_1.join)(projectRoot, 'src'),
127
- isTsSolutionSetup: (0, ts_solution_setup_1.isUsingTsSolutionSetup)(tree),
127
+ isTsSolutionSetup: (0, internal_2.isUsingTsSolutionSetup)(tree),
128
128
  };
129
129
  }
130
130
  async function executorGenerator(host, schema) {
@@ -1,5 +1,5 @@
1
- import { PromiseExecutor } from "@nx/devkit";
2
- import { <%= className %>ExecutorSchema } from './schema';
1
+ import type { PromiseExecutor } from "@nx/devkit";
2
+ import type { <%= className %>ExecutorSchema } from './schema';
3
3
 
4
4
  const runExecutor: PromiseExecutor<<%= className %>ExecutorSchema> = async (options) => {
5
5
  console.log('Executor ran for <%= className %>', options);
@@ -15,7 +15,8 @@ describe('<%=propertyName%>Hasher', () => {
15
15
  },
16
16
  overrides: {},
17
17
  outputs: [],
18
- parallelism: true
18
+ parallelism: true,
19
+ cache: false
19
20
  }, {
20
21
  hasher: mockHasher
21
22
  } as unknown as HasherContext)
@@ -1,4 +1,4 @@
1
- import { CustomHasher } from '@nx/devkit';
1
+ import type { CustomHasher } from '@nx/devkit';
2
2
 
3
3
  /**
4
4
  * This is a boilerplate custom hasher that matches
@@ -2,10 +2,10 @@ import {
2
2
  addProjectConfiguration,
3
3
  formatFiles,
4
4
  generateFiles,
5
- Tree,
5
+ type Tree,
6
6
  } from '@nx/devkit';
7
7
  import * as path from 'path';
8
- import { <%= className %>GeneratorSchema } from './schema';
8
+ import type { <%= className %>GeneratorSchema } from './schema';
9
9
 
10
10
  export async function <%= generatorFnName %> (tree: Tree, options: <%= schemaInterfaceName %>) {
11
11
  const projectRoot = `libs/${options.name}`;
@@ -3,4 +3,3 @@ import type { Schema } from './schema';
3
3
  export declare function createGeneratorsJson(host: Tree, projectRoot: string, projectName: string, skipLintChecks?: boolean, skipFormat?: boolean): Promise<void>;
4
4
  export declare function generatorGenerator(host: Tree, schema: Schema): Promise<void>;
5
5
  export default generatorGenerator;
6
- //# sourceMappingURL=generator.d.ts.map
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createGeneratorsJson = createGeneratorsJson;
4
4
  exports.generatorGenerator = generatorGenerator;
5
5
  const tslib_1 = require("tslib");
6
+ const internal_1 = require("@nx/devkit/internal");
6
7
  const devkit_1 = require("@nx/devkit");
7
- const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
8
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
8
+ const internal_2 = require("@nx/js/internal");
9
9
  const node_path_1 = require("node:path");
10
10
  const has_generator_1 = require("../../utils/has-generator");
11
11
  const paths_1 = require("../../utils/paths");
12
12
  const versions_1 = require("../../utils/versions");
13
13
  const generator_1 = tslib_1.__importDefault(require("../lint-checks/generator"));
14
14
  async function normalizeOptions(tree, options) {
15
- const { artifactName: name, directory: initialDirectory, fileName, project, } = await (0, artifact_name_and_directory_utils_1.determineArtifactNameAndDirectoryOptions)(tree, {
15
+ const { artifactName: name, directory: initialDirectory, fileName, project, } = await (0, internal_1.determineArtifactNameAndDirectoryOptions)(tree, {
16
16
  path: options.path,
17
17
  name: options.name,
18
18
  allowedFileExtensions: ['ts'],
@@ -51,7 +51,7 @@ async function normalizeOptions(tree, options) {
51
51
  description,
52
52
  projectRoot,
53
53
  projectSourceRoot: projectSourceRoot ?? (0, node_path_1.join)(projectRoot, 'src'),
54
- isTsSolutionSetup: (0, ts_solution_setup_1.isUsingTsSolutionSetup)(tree),
54
+ isTsSolutionSetup: (0, internal_2.isUsingTsSolutionSetup)(tree),
55
55
  };
56
56
  }
57
57
  function addFiles(host, options) {
@@ -1,8 +1,7 @@
1
1
  import { ProjectConfiguration, TargetConfiguration, Tree } from '@nx/devkit';
2
- import type { Schema as EsLintExecutorOptions } from '@nx/eslint/src/executors/lint/schema';
2
+ import type { Schema as EsLintExecutorOptions } from '@nx/eslint/internal';
3
3
  import { PluginLintChecksGeneratorSchema } from './schema';
4
4
  import { PackageJson } from 'nx/src/utils/package-json';
5
5
  export default function pluginLintCheckGenerator(host: Tree, options: PluginLintChecksGeneratorSchema): Promise<void>;
6
6
  export declare function addMigrationJsonChecks(host: Tree, options: PluginLintChecksGeneratorSchema, packageJson: PackageJson): void;
7
7
  export declare function getEsLintOptions(project: ProjectConfiguration): [target: string, configuration: TargetConfiguration<EsLintExecutorOptions>];
8
- //# sourceMappingURL=generator.d.ts.map
@@ -6,8 +6,7 @@ exports.getEsLintOptions = getEsLintOptions;
6
6
  const devkit_1 = require("@nx/devkit");
7
7
  const logger_1 = require("nx/src/utils/logger");
8
8
  const package_json_1 = require("nx/src/utils/package-json");
9
- const eslint_file_1 = require("@nx/eslint/src/generators/utils/eslint-file");
10
- const flat_config_1 = require("@nx/eslint/src/utils/flat-config");
9
+ const internal_1 = require("@nx/eslint/internal");
11
10
  async function pluginLintCheckGenerator(host, options) {
12
11
  const project = (0, devkit_1.readProjectConfiguration)(host, options.projectName);
13
12
  const packageJson = (0, devkit_1.readJson)(host, (0, devkit_1.joinPathFragments)(project.root, 'package.json'));
@@ -49,7 +48,7 @@ function addMigrationJsonChecks(host, options, packageJson) {
49
48
  (0, devkit_1.updateProjectConfiguration)(host, options.projectName, projectConfiguration);
50
49
  }
51
50
  // Update project level eslintrc
52
- (0, eslint_file_1.updateOverrideInLintConfig)(host, projectConfiguration.root, (o) => Object.keys(o.rules ?? {})?.includes('@nx/nx-plugin-checks') ||
51
+ (0, internal_1.updateOverrideInLintConfig)(host, projectConfiguration.root, (o) => Object.keys(o.rules ?? {})?.includes('@nx/nx-plugin-checks') ||
53
52
  Object.keys(o.rules ?? {})?.includes('@nrwl/nx/nx-plugin-checks'), (o) => {
54
53
  const fileSet = new Set(Array.isArray(o.files) ? o.files : [o.files]);
55
54
  fileSet.add(relativeMigrationsJsonPath);
@@ -60,7 +59,7 @@ function addMigrationJsonChecks(host, options, packageJson) {
60
59
  });
61
60
  }
62
61
  function formatFilesEntries(tree, files) {
63
- if (!(0, flat_config_1.useFlatConfig)(tree)) {
62
+ if (!(0, internal_1.useFlatConfig)(tree)) {
64
63
  return files;
65
64
  }
66
65
  const filesAfter = files.map((f) => {
@@ -97,12 +96,31 @@ function updateProjectTarget(host, options, packageJson) {
97
96
  opts.lintFilePatterns.push(`${project.root}/package.json`);
98
97
  opts.lintFilePatterns = [...new Set(opts.lintFilePatterns)];
99
98
  project.targets[target].options = opts;
99
+ // Plugin checks read schema/implementation files which may live in the
100
+ // project's build outputs (and migration prompt files copied as assets).
101
+ // Ensure lint runs after build and includes the relevant build outputs
102
+ // as inputs so the sandbox allows the reads and the cache invalidates
103
+ // when those outputs change.
104
+ const targetConfig = project.targets[target];
105
+ const dependsOn = new Set(targetConfig.dependsOn ?? []);
106
+ dependsOn.add('build');
107
+ targetConfig.dependsOn = Array.from(dependsOn);
108
+ const inputs = targetConfig.inputs ?? ['...'];
109
+ const hasDependentOutputs = inputs.some((input) => typeof input === 'object' &&
110
+ input !== null &&
111
+ 'dependentTasksOutputFiles' in input);
112
+ if (!hasDependentOutputs) {
113
+ inputs.push({
114
+ dependentTasksOutputFiles: '**/*.{json,d.ts,js,md}',
115
+ });
116
+ }
117
+ targetConfig.inputs = inputs;
100
118
  }
101
119
  }
102
120
  (0, devkit_1.updateProjectConfiguration)(host, options.projectName, project);
103
121
  }
104
122
  function updateProjectEslintConfig(host, options, packageJson) {
105
- if ((0, eslint_file_1.isEslintConfigSupported)(host, options.root)) {
123
+ if ((0, internal_1.isEslintConfigSupported)(host, options.root)) {
106
124
  const lookup = (o) => Object.keys(o.rules ?? {}).includes('@nx/nx-plugin-checks') ||
107
125
  Object.keys(o.rules ?? {}).includes('@nrwl/nx/nx-plugin-checks');
108
126
  const files = [
@@ -113,12 +131,12 @@ function updateProjectEslintConfig(host, options, packageJson) {
113
131
  packageJson.builders,
114
132
  (0, package_json_1.readNxMigrateConfig)(packageJson).migrations,
115
133
  ].filter((f) => !!f);
116
- const parser = (0, flat_config_1.useFlatConfig)(host)
134
+ const parser = (0, internal_1.useFlatConfig)(host)
117
135
  ? { languageOptions: { parser: 'jsonc-eslint-parser' } }
118
136
  : { parser: 'jsonc-eslint-parser' };
119
- if ((0, eslint_file_1.lintConfigHasOverride)(host, options.root, lookup)) {
137
+ if ((0, internal_1.lintConfigHasOverride)(host, options.root, lookup)) {
120
138
  // update it
121
- (0, eslint_file_1.updateOverrideInLintConfig)(host, options.root, lookup, (o) => ({
139
+ (0, internal_1.updateOverrideInLintConfig)(host, options.root, lookup, (o) => ({
122
140
  ...o,
123
141
  files: formatFilesEntries(host, [
124
142
  ...new Set([
@@ -135,7 +153,7 @@ function updateProjectEslintConfig(host, options, packageJson) {
135
153
  }
136
154
  else {
137
155
  // add it
138
- (0, eslint_file_1.addOverrideToLintConfig)(host, options.root, {
156
+ (0, internal_1.addOverrideToLintConfig)(host, options.root, {
139
157
  files: formatFilesEntries(host, files),
140
158
  ...parser,
141
159
  rules: {
@@ -149,11 +167,11 @@ function updateProjectEslintConfig(host, options, packageJson) {
149
167
  // This is required, otherwise every json file that is not overriden
150
168
  // will display false errors in the IDE
151
169
  function updateRootEslintConfig(host) {
152
- if ((0, eslint_file_1.isEslintConfigSupported)(host)) {
153
- if (!(0, eslint_file_1.lintConfigHasOverride)(host, '', (o) => Array.isArray(o.files)
170
+ if ((0, internal_1.isEslintConfigSupported)(host)) {
171
+ if (!(0, internal_1.lintConfigHasOverride)(host, '', (o) => Array.isArray(o.files)
154
172
  ? o.files.some((f) => f.match(/\.json$/))
155
173
  : !!o.files?.match(/\.json$/), true)) {
156
- (0, eslint_file_1.addOverrideToLintConfig)(host, '', {
174
+ (0, internal_1.addOverrideToLintConfig)(host, '', {
157
175
  files: '*.json',
158
176
  parser: 'jsonc-eslint-parser',
159
177
  rules: {},
@@ -187,7 +205,7 @@ function setupVsCodeLintingForJsonFiles(host) {
187
205
  (0, devkit_1.writeJson)(host, '.vscode/settings.json', existing);
188
206
  }
189
207
  function projectIsEsLintEnabled(tree, project) {
190
- return !!(0, eslint_file_1.findEslintFile)(tree, project.root);
208
+ return !!(0, internal_1.findEslintFile)(tree, project.root);
191
209
  }
192
210
  function getEsLintOptions(project) {
193
211
  return Object.entries(project.targets || {}).find(([, x]) => x.executor === '@nx/eslint:lint' ||
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
- import { Tree } from '@nx/devkit';
2
+ import type { Tree } from '@nx/devkit';
3
3
 
4
4
  export default function update(host: Tree) {
5
5
  // ...
@@ -2,4 +2,3 @@ import { type Tree } from '@nx/devkit';
2
2
  import type { Schema } from './schema';
3
3
  export declare function migrationGenerator(host: Tree, schema: Schema): Promise<void>;
4
4
  export default migrationGenerator;
5
- //# sourceMappingURL=migration.d.ts.map
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.migrationGenerator = migrationGenerator;
4
+ const internal_1 = require("@nx/devkit/internal");
4
5
  const devkit_1 = require("@nx/devkit");
5
- const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
6
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
6
+ const internal_2 = require("@nx/js/internal");
7
7
  const node_path_1 = require("node:path");
8
8
  const package_json_1 = require("nx/src/utils/package-json");
9
9
  const paths_1 = require("../../utils/paths");
10
10
  const versions_1 = require("../../utils/versions");
11
11
  const generator_1 = require("../lint-checks/generator");
12
12
  async function normalizeOptions(tree, options) {
13
- const { artifactName: name, directory, fileName, project, } = await (0, artifact_name_and_directory_utils_1.determineArtifactNameAndDirectoryOptions)(tree, {
13
+ const { artifactName: name, directory, fileName, project, } = await (0, internal_1.determineArtifactNameAndDirectoryOptions)(tree, {
14
14
  path: options.path,
15
15
  name: options.name,
16
16
  allowedFileExtensions: ['ts'],
@@ -27,7 +27,7 @@ async function normalizeOptions(tree, options) {
27
27
  description,
28
28
  projectRoot,
29
29
  projectSourceRoot: projectSourceRoot ?? (0, node_path_1.join)(projectRoot, 'src'),
30
- isTsSolutionSetup: (0, ts_solution_setup_1.isUsingTsSolutionSetup)(tree),
30
+ isTsSolutionSetup: (0, internal_2.isUsingTsSolutionSetup)(tree),
31
31
  };
32
32
  return normalized;
33
33
  }
@@ -42,7 +42,9 @@ function updateMigrationsJson(host, options) {
42
42
  const migrationsPath = (0, devkit_1.joinPathFragments)(options.projectRoot, configuredMigrationPath ?? 'migrations.json');
43
43
  const migrations = host.exists(migrationsPath)
44
44
  ? (0, devkit_1.readJson)(host, migrationsPath)
45
- : {};
45
+ : {
46
+ $schema: `${(0, devkit_1.offsetFromRoot)((0, node_path_1.dirname)(migrationsPath))}node_modules/nx/schemas/migrations-schema.json`,
47
+ };
46
48
  const generators = migrations.generators ?? {};
47
49
  const dir = (0, paths_1.getArtifactMetadataDirectory)(host, options.project, options.directory, options.isTsSolutionSetup);
48
50
  generators[options.name] = {
@@ -3,4 +3,3 @@ import type { Schema } from './schema';
3
3
  export declare function pluginGenerator(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
4
4
  export declare function pluginGeneratorInternal(host: Tree, schema: Schema): Promise<GeneratorCallback>;
5
5
  export default pluginGenerator;
6
- //# sourceMappingURL=plugin.d.ts.map
@@ -5,14 +5,12 @@ exports.pluginGeneratorInternal = pluginGeneratorInternal;
5
5
  const tslib_1 = require("tslib");
6
6
  const devkit_1 = require("@nx/devkit");
7
7
  const js_1 = require("@nx/js");
8
- const add_swc_dependencies_1 = require("@nx/js/src/utils/swc/add-swc-dependencies");
9
- const add_tslib_dependencies_1 = require("@nx/js/src/utils/typescript/add-tslib-dependencies");
10
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
8
+ const internal_1 = require("@nx/js/internal");
11
9
  const path = tslib_1.__importStar(require("path"));
12
10
  const e2e_1 = require("../e2e-project/e2e");
13
11
  const generator_1 = tslib_1.__importDefault(require("../lint-checks/generator"));
14
12
  const normalize_schema_1 = require("./utils/normalize-schema");
15
- const nxVersion = require('../../../package.json').version;
13
+ const nxVersion = require(path.join('@nx/plugin', 'package.json')).version;
16
14
  async function addFiles(host, options) {
17
15
  host.delete((0, devkit_1.normalizePath)(`${options.projectRoot}/src/lib`));
18
16
  (0, devkit_1.generateFiles)(host, path.join(__dirname, './files/plugin'), options.projectRoot, {
@@ -24,7 +22,7 @@ function updatePluginConfig(host, options) {
24
22
  const project = (0, devkit_1.readProjectConfiguration)(host, options.projectName);
25
23
  if (project.targets.build) {
26
24
  if (options.isTsSolutionSetup && options.bundler === 'tsc') {
27
- project.targets.build.options.rootDir = (0, ts_solution_setup_1.getProjectSourceRoot)(project, host);
25
+ project.targets.build.options.rootDir = (0, internal_1.getProjectSourceRoot)(project, host);
28
26
  project.targets.build.options.generatePackageJson = false;
29
27
  }
30
28
  project.targets.build.options.assets = [
@@ -67,12 +65,19 @@ async function pluginGeneratorInternal(host, schema) {
67
65
  }));
68
66
  if (options.isTsSolutionSetup) {
69
67
  (0, devkit_1.updateJson)(host, (0, devkit_1.joinPathFragments)(options.projectRoot, 'package.json'), (json) => {
70
- delete json.type;
68
+ // Force CommonJS for the plugin package. `jsLibraryGenerator` sets
69
+ // `type: "module"` for TS-solution libs, but Nx-plugin generators
70
+ // and executors that get loaded by `nx generate` / `nx run` rely on
71
+ // CJS globals like `__dirname` (e.g. `path.join(__dirname, 'files')`
72
+ // in generator factories). Setting `type: "commonjs"` explicitly
73
+ // overrides Node's content-based ESM detection so the source TS
74
+ // files load as CJS at runtime.
75
+ json.type = 'commonjs';
71
76
  return json;
72
77
  });
73
78
  }
74
79
  if (options.bundler === 'tsc') {
75
- tasks.push((0, add_tslib_dependencies_1.addTsLibDependencies)(host));
80
+ tasks.push((0, js_1.addTsLibDependencies)(host));
76
81
  }
77
82
  tasks.push((0, devkit_1.addDependenciesToPackageJson)(host, {
78
83
  '@nx/devkit': nxVersion,
@@ -83,8 +88,8 @@ async function pluginGeneratorInternal(host, schema) {
83
88
  }));
84
89
  // Ensures Swc Deps are installed to handle running
85
90
  // local plugin generators and executors
86
- tasks.push((0, add_swc_dependencies_1.addSwcDependencies)(host));
87
- tasks.push((0, add_swc_dependencies_1.addSwcRegisterDependencies)(host));
91
+ tasks.push((0, internal_1.addSwcDependencies)(host));
92
+ tasks.push((0, internal_1.addSwcRegisterDependencies)(host));
88
93
  await addFiles(host, options);
89
94
  updatePluginConfig(host, options);
90
95
  if (options.e2eTestRunner !== 'none') {
@@ -75,12 +75,6 @@
75
75
  "type": "string",
76
76
  "description": "A directory where the plugin E2E project is placed."
77
77
  },
78
- "standaloneConfig": {
79
- "description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
80
- "type": "boolean",
81
- "default": true,
82
- "x-deprecated": "Nx only supports standaloneConfig"
83
- },
84
78
  "setParserOptionsProject": {
85
79
  "type": "boolean",
86
80
  "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
@@ -18,4 +18,3 @@ export interface NormalizedSchema extends Schema {
18
18
  isTsSolutionSetup: boolean;
19
19
  }
20
20
  export declare function normalizeOptions(host: Tree, options: Schema): Promise<NormalizedSchema>;
21
- //# sourceMappingURL=normalize-schema.d.ts.map
@@ -2,24 +2,23 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeOptions = normalizeOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
6
- const generator_prompts_1 = require("@nx/js/src/utils/generator-prompts");
7
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
5
+ const internal_1 = require("@nx/devkit/internal");
6
+ const internal_2 = require("@nx/js/internal");
8
7
  async function normalizeOptions(host, options) {
9
- const linter = await (0, generator_prompts_1.normalizeLinterOption)(host, options.linter);
10
- const unitTestRunner = await (0, generator_prompts_1.normalizeUnitTestRunnerOption)(host, options.unitTestRunner, ['jest', 'vitest']);
8
+ const linter = await (0, internal_2.normalizeLinterOption)(host, options.linter);
9
+ const unitTestRunner = await (0, internal_2.normalizeUnitTestRunnerOption)(host, options.unitTestRunner, ['jest', 'vitest']);
11
10
  // this helper is called before the jsLibraryGenerator is called, so, if the
12
11
  // TS solution setup is not configured, we additionally check if the TS
13
12
  // solution setup will be configured by the jsLibraryGenerator
14
- const isTsSolutionSetup = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host) ||
15
- (0, ts_solution_setup_1.shouldConfigureTsSolutionSetup)(host, options.addPlugin);
13
+ const isTsSolutionSetup = (0, internal_2.isUsingTsSolutionSetup)(host) ||
14
+ (0, internal_2.shouldConfigureTsSolutionSetup)(host, options.addPlugin);
16
15
  const nxJson = (0, devkit_1.readNxJson)(host);
17
16
  const addPlugin = options.addPlugin ??
18
17
  (isTsSolutionSetup &&
19
18
  process.env.NX_ADD_PLUGINS !== 'false' &&
20
19
  nxJson.useInferencePlugins !== false);
21
- await (0, project_name_and_root_utils_1.ensureRootProjectName)(options, 'library');
22
- const { projectName, projectRoot, importPath } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
20
+ await (0, internal_1.ensureRootProjectName)(options, 'library');
21
+ const { projectName, projectRoot, importPath } = await (0, internal_1.determineProjectNameAndRootOptions)(host, {
23
22
  name: options.name,
24
23
  projectType: 'library',
25
24
  directory: options.directory,
@@ -3,4 +3,3 @@ import type { PresetGeneratorSchema } from './schema';
3
3
  export declare function presetGenerator(tree: Tree, rawOptions: PresetGeneratorSchema): Promise<GeneratorCallback>;
4
4
  export declare function presetGeneratorInternal(tree: Tree, rawOptions: PresetGeneratorSchema): Promise<GeneratorCallback>;
5
5
  export default presetGenerator;
6
- //# sourceMappingURL=generator.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export declare function hasGenerator(tree: Tree, projectName: string, generatorName: string): boolean;
3
- //# sourceMappingURL=has-generator.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { type Tree } from '@nx/devkit';
2
2
  export declare function getArtifactMetadataDirectory(tree: Tree, projectName: string, sourceDirectory: string, isTsSolutionSetup: boolean): string;
3
- //# sourceMappingURL=paths.d.ts.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getArtifactMetadataDirectory = getArtifactMetadataDirectory;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
5
+ const internal_1 = require("@nx/js/internal");
6
6
  const posix_1 = require("node:path/posix");
7
7
  function getArtifactMetadataDirectory(tree, projectName, sourceDirectory, isTsSolutionSetup) {
8
8
  const project = (0, devkit_1.readProjectConfiguration)(tree, projectName);
@@ -24,6 +24,6 @@ function getArtifactMetadataDirectory(tree, projectName, sourceDirectory, isTsSo
24
24
  // unless the user manually changed the build process. In that case, we can't
25
25
  // reliably determine the output directory because it depends on the build
26
26
  // tool, so we'll just assume some defaults.
27
- const baseDir = (0, ts_solution_setup_1.getProjectSourceRoot)(project, tree);
27
+ const baseDir = (0, internal_1.getProjectSourceRoot)(project, tree);
28
28
  return `./${(0, posix_1.join)('dist', (0, posix_1.relative)(baseDir, sourceDirectory))}`;
29
29
  }
@@ -25,4 +25,3 @@ export declare function runNxCommandAsync(command: string, opts?: {
25
25
  stdout: string;
26
26
  stderr: string;
27
27
  }>;
28
- //# sourceMappingURL=async-commands.d.ts.map
@@ -14,4 +14,3 @@ export declare function runCommand(command: string, opts: {
14
14
  env?: NodeJS.ProcessEnv;
15
15
  cwd?: string;
16
16
  }): string;
17
- //# sourceMappingURL=commands.d.ts.map
@@ -3,4 +3,3 @@ export * from './commands';
3
3
  export * from './paths';
4
4
  export * from './nx-project';
5
5
  export * from './utils';
6
- //# sourceMappingURL=index.d.ts.map
@@ -23,4 +23,3 @@ export declare function newNxProject(npmPackageName: string, pluginDistPath: str
23
23
  * It will also copy `@nx` packages to the e2e directory
24
24
  */
25
25
  export declare function ensureNxProject(npmPackageName?: string, pluginDistPath?: string): void;
26
- //# sourceMappingURL=nx-project.d.ts.map
@@ -13,4 +13,3 @@ export declare function tmpProjPath(path?: string): string;
13
13
  * @returns `'${process.cwd()}/tmp/nx-e2e/proj-backup/<path>'`
14
14
  */
15
15
  export declare function tmpBackupProjPath(path?: string): string;
16
- //# sourceMappingURL=paths.d.ts.map
@@ -78,4 +78,3 @@ export declare function exists(path: string): boolean;
78
78
  * @param filePath Path to the file
79
79
  */
80
80
  export declare function getSize(filePath: string): number;
81
- //# sourceMappingURL=utils.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare const nxVersion: any;
2
2
  export declare const jsoncEslintParserVersion = "^2.1.0";
3
- //# sourceMappingURL=versions.d.ts.map
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.jsoncEslintParserVersion = exports.nxVersion = void 0;
4
- exports.nxVersion = require('../../package.json').version;
4
+ const path_1 = require("path");
5
+ exports.nxVersion = require((0, path_1.join)('@nx/plugin', 'package.json')).version;
5
6
  exports.jsoncEslintParserVersion = '^2.1.0';
@@ -1,2 +1 @@
1
1
  export * from './src/utils/testing-utils';
2
- //# sourceMappingURL=testing.d.ts.map
package/generators.json CHANGED
@@ -4,43 +4,43 @@
4
4
  "extends": ["@nx/workspace"],
5
5
  "generators": {
6
6
  "plugin": {
7
- "factory": "./src/generators/plugin/plugin#pluginGeneratorInternal",
8
- "schema": "./src/generators/plugin/schema.json",
7
+ "factory": "./dist/src/generators/plugin/plugin#pluginGeneratorInternal",
8
+ "schema": "./dist/src/generators/plugin/schema.json",
9
9
  "description": "Create a Nx Plugin."
10
10
  },
11
11
  "create-package": {
12
- "factory": "./src/generators/create-package/create-package#createPackageGeneratorInternal",
13
- "schema": "./src/generators/create-package/schema.json",
12
+ "factory": "./dist/src/generators/create-package/create-package#createPackageGeneratorInternal",
13
+ "schema": "./dist/src/generators/create-package/schema.json",
14
14
  "description": "Create a package which can be used by npx to create a new workspace"
15
15
  },
16
16
  "e2e-project": {
17
- "factory": "./src/generators/e2e-project/e2e#e2eProjectGeneratorInternal",
18
- "schema": "./src/generators/e2e-project/schema.json",
17
+ "factory": "./dist/src/generators/e2e-project/e2e#e2eProjectGeneratorInternal",
18
+ "schema": "./dist/src/generators/e2e-project/schema.json",
19
19
  "description": "Create a E2E application for a Nx Plugin."
20
20
  },
21
21
  "migration": {
22
- "factory": "./src/generators/migration/migration",
23
- "schema": "./src/generators/migration/schema.json",
22
+ "factory": "./dist/src/generators/migration/migration",
23
+ "schema": "./dist/src/generators/migration/schema.json",
24
24
  "description": "Create a migration for an Nx Plugin."
25
25
  },
26
26
  "generator": {
27
- "factory": "./src/generators/generator/generator",
28
- "schema": "./src/generators/generator/schema.json",
27
+ "factory": "./dist/src/generators/generator/generator",
28
+ "schema": "./dist/src/generators/generator/schema.json",
29
29
  "description": "Create a generator for an Nx Plugin."
30
30
  },
31
31
  "executor": {
32
- "factory": "./src/generators/executor/executor",
33
- "schema": "./src/generators/executor/schema.json",
32
+ "factory": "./dist/src/generators/executor/executor",
33
+ "schema": "./dist/src/generators/executor/schema.json",
34
34
  "description": "Create an executor for an Nx Plugin."
35
35
  },
36
36
  "plugin-lint-checks": {
37
- "factory": "./src/generators/lint-checks/generator",
38
- "schema": "./src/generators/lint-checks/schema.json",
37
+ "factory": "./dist/src/generators/lint-checks/generator",
38
+ "schema": "./dist/src/generators/lint-checks/schema.json",
39
39
  "description": "Adds linting configuration to validate common json files for nx plugins."
40
40
  },
41
41
  "preset": {
42
- "factory": "./src/generators/preset/generator#presetGeneratorInternal",
43
- "schema": "./src/generators/preset/schema.json",
42
+ "factory": "./dist/src/generators/preset/generator#presetGeneratorInternal",
43
+ "schema": "./dist/src/generators/preset/schema.json",
44
44
  "description": "Initializes a workspace with an nx-plugin inside of it. Use as: `create-nx-workspace --preset @nx/plugin`.",
45
45
  "hidden": true,
46
46
  "x-use-standalone-layout": true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/plugin",
3
- "version": "23.0.0-pr.35465.2bc2643",
3
+ "version": "23.0.0-rc.1",
4
4
  "private": false,
5
5
  "description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
6
6
  "repository": {
@@ -13,9 +13,15 @@
13
13
  "Nx",
14
14
  "CLI"
15
15
  ],
16
- "main": "./index.js",
16
+ "main": "./dist/index.js",
17
17
  "type": "commonjs",
18
- "types": "./index.d.ts",
18
+ "types": "./dist/index.d.ts",
19
+ "files": [
20
+ "dist",
21
+ "!dist/tsconfig.tsbuildinfo",
22
+ "migrations.json",
23
+ "generators.json"
24
+ ],
19
25
  "author": "Nrwl",
20
26
  "license": "MIT",
21
27
  "bugs": {
@@ -25,19 +31,50 @@
25
31
  "generators": "./generators.json",
26
32
  "ng-update": {
27
33
  "requirements": {},
28
- "migrations": "./migrations.json"
34
+ "migrations": "./migrations.json",
35
+ "supportsOptionalMigrations": true
29
36
  },
30
37
  "dependencies": {
31
38
  "tslib": "^2.3.0",
32
- "@nx/devkit": "23.0.0-pr.35465.2bc2643",
33
- "@nx/jest": "23.0.0-pr.35465.2bc2643",
34
- "@nx/js": "23.0.0-pr.35465.2bc2643",
35
- "@nx/eslint": "23.0.0-pr.35465.2bc2643"
39
+ "@nx/devkit": "23.0.0-rc.1",
40
+ "@nx/jest": "23.0.0-rc.1",
41
+ "@nx/js": "23.0.0-rc.1",
42
+ "@nx/eslint": "23.0.0-rc.1"
36
43
  },
37
44
  "devDependencies": {
38
- "nx": "23.0.0-pr.35465.2bc2643"
45
+ "nx": "23.0.0-rc.1"
39
46
  },
40
47
  "publishConfig": {
41
48
  "access": "public"
49
+ },
50
+ "typesVersions": {
51
+ "*": {
52
+ "generators": [
53
+ "dist/generators.d.ts"
54
+ ],
55
+ "testing": [
56
+ "dist/testing.d.ts"
57
+ ]
58
+ }
59
+ },
60
+ "exports": {
61
+ ".": {
62
+ "@nx/nx-source": "./index.ts",
63
+ "types": "./dist/index.d.ts",
64
+ "default": "./dist/index.js"
65
+ },
66
+ "./package.json": "./package.json",
67
+ "./migrations.json": "./migrations.json",
68
+ "./generators.json": "./generators.json",
69
+ "./generators": {
70
+ "@nx/nx-source": "./generators.ts",
71
+ "types": "./dist/generators.d.ts",
72
+ "default": "./dist/generators.js"
73
+ },
74
+ "./testing": {
75
+ "@nx/nx-source": "./testing.ts",
76
+ "types": "./dist/testing.d.ts",
77
+ "default": "./dist/testing.js"
78
+ }
42
79
  }
43
80
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"generators.d.ts","sourceRoot":"","sources":["../../../packages/plugin/generators.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC"}
package/index.d.ts DELETED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/plugin/index.ts"],"names":[],"mappings":""}
package/index.js DELETED
File without changes
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-package.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/generators/create-package/create-package.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAMjB,IAAI,EAGL,MAAM,YAAY,CAAC;AAapB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,mBAAmB,8BAO5B;AAED,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,mBAAmB,8BAoC5B;AAwJD,eAAe,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize-schema.d.ts","sourceRoot":"","sources":["../../../../../../../packages/plugin/src/generators/create-package/utils/normalize-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAS7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D,OAAO,EAAE,KAAK,GAAG,KAAK,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,MAAM,EAAE,UAAU,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAsB,eAAe,CACnC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,gBAAgB,CAAC,CAkD3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"e2e.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/generators/e2e-project/e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAeL,KAAK,iBAAiB,EAEtB,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAkBpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA+LvC,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAMnE;AAED,wBAAsB,2BAA2B,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BA8C3E;AAED,eAAe,mBAAmB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/generators/executor/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAQpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAmCvC,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,cAAc,CAAC,EAAE,OAAO,iBAsBzB;AAsID,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,iBAajE;AAED,eAAe,iBAAiB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/generators/generator/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,IAAI,EAGL,MAAM,YAAY,CAAC;AASpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA2FvC,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,cAAc,CAAC,EAAE,OAAO,EACxB,UAAU,CAAC,EAAE,OAAO,iBAuBrB;AA2ED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,iBAalE;AAED,eAAe,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/generators/lint-checks/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,oBAAoB,EAGpB,mBAAmB,EACnB,IAAI,EAIL,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,MAAM,IAAI,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAE5F,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAuB,MAAM,2BAA2B,CAAC;AAU7E,wBAA8B,wBAAwB,CACpD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,+BAA+B,iBA2BzC;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,+BAA+B,EACxC,WAAW,EAAE,WAAW,QAyDzB;AAmLD,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,oBAAoB,GAC5B,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,mBAAmB,CAAC,qBAAqB,CAAC,CAAC,CAO7E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/generators/migration/migration.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAQpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAiKvC,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,iBAuBlE;AAED,eAAe,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/generators/plugin/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAKjB,IAAI,EAGL,MAAM,YAAY,CAAC;AAWpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAuDvC,wBAAsB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAM/D;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAwFvE;AAED,eAAe,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize-schema.d.ts","sourceRoot":"","sources":["../../../../../../../packages/plugin/src/generators/plugin/utils/normalize-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAKnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAS7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,WAAW,gBAAiB,SAAQ,MAAM;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,GAAG,KAAK,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,MAAM,EAAE,UAAU,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAwD3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/generators/preset/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,iBAAiB,EACtB,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAIpB,OAAO,KAAK,EAEV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAElB,wBAAsB,eAAe,CACnC,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,qBAAqB,8BAOlC;AAED,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,qBAAqB,8BA8ClC;AA8BD,eAAe,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"has-generator.d.ts","sourceRoot":"","sources":["../../../../../packages/plugin/src/utils/has-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,IAAI,EACL,MAAM,YAAY,CAAC;AAGpB,wBAAgB,YAAY,CAC1B,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GACpB,OAAO,CAkBT"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../../packages/plugin/src/utils/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAIjE,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,iBAAiB,EAAE,OAAO,GACzB,MAAM,CAoCR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"async-commands.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/utils/testing-utils/async-commands.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,IAAI,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAEpE,GACA,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAiB7C;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,IAAI,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAEpE,GACA,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAU7C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/utils/testing-utils/commands.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,OAAO,CAAC,EAAE,MAAM,EAChB,IAAI,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAEpE,GACA,MAAM,CAiCR;AAED,wBAAgB,UAAU,CACxB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9C,MAAM,CAWR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/utils/testing-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"nx-project.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/utils/testing-utils/nx-project.ts"],"names":[],"mappings":"AA4BA,wBAAgB,yBAAyB,CACvC,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,QAMjB;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,UAElC;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,GAAE,OAAc,UAS9D;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,cAAc,EAAE,MAAM,EACtB,cAAc,EAAE,MAAM,GACrB,IAAI,CAKN;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,cAAc,CAAC,EAAE,MAAM,EACvB,cAAc,CAAC,EAAE,MAAM,GACtB,IAAI,CAGN"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/utils/testing-utils/paths.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,WAExB;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,UAIxC;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,MAAM,UAI9C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/plugin/src/utils/testing-utils/utils.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC;AAEvC;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,QAYhD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,QAGzE;AAID;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GAAG,CAAC,CAAC,mBAAmB,EAAE,MAAM,KAAK,MAAM,CAAC,GAC1D,IAAI,CAUN;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAG9D;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,GAAG,aAAa,EAAE,MAAM,EAAE,QAOzD;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAEnD;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,GAAG,EAC7C,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gBAAgB,GACzB,CAAC,CAEH;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAG7C;AAED;;GAEG;AACH,wBAAgB,OAAO,IAAI,IAAI,CAE9B;AAED;;GAEG;AACH,wBAAgB,MAAM,IAAI,IAAI,CAE7B;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEtD;AAED;;GAEG;AACH,wBAAgB,MAAM,IAAI,MAAM,CAE/B;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE5C;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEhD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/plugin/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,wBAAwB,WAAW,CAAC"}
package/testing.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../packages/plugin/testing.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes