@nx/js 22.0.0-beta.1 → 22.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/generators.json +0 -6
  2. package/package.json +4 -7
  3. package/src/generators/library/library.d.ts.map +1 -1
  4. package/src/generators/library/library.js +1 -2
  5. package/src/generators/library/utils/add-release-config.d.ts +1 -1
  6. package/src/generators/library/utils/add-release-config.d.ts.map +1 -1
  7. package/src/generators/library/utils/add-release-config.js +10 -26
  8. package/src/generators/release-version/release-version.d.ts +0 -5
  9. package/src/generators/release-version/release-version.d.ts.map +1 -1
  10. package/src/generators/release-version/release-version.js +0 -785
  11. package/src/plugins/typescript/plugin.d.ts +2 -2
  12. package/src/plugins/typescript/plugin.d.ts.map +1 -1
  13. package/src/plugins/typescript/plugin.js +4 -26
  14. package/src/release/utils/update-lock-file.d.ts +1 -2
  15. package/src/release/utils/update-lock-file.d.ts.map +1 -1
  16. package/src/release/utils/update-lock-file.js +6 -9
  17. package/src/release/version-actions.d.ts.map +1 -1
  18. package/src/release/version-actions.js +2 -3
  19. package/spec/jest.config.d.ts +0 -13
  20. package/spec/jest.config.d.ts.map +0 -1
  21. package/spec/migrations.spec.d.ts +0 -2
  22. package/spec/migrations.spec.d.ts.map +0 -1
  23. package/spec/src/executors/node/lib/detect-module-format.spec.d.ts +0 -2
  24. package/spec/src/executors/node/lib/detect-module-format.spec.d.ts.map +0 -1
  25. package/spec/src/executors/node/lib/esm-loader.spec.d.ts +0 -2
  26. package/spec/src/executors/node/lib/esm-loader.spec.d.ts.map +0 -1
  27. package/spec/src/executors/release-publish/extract-npm-publish-json-data.spec.d.ts +0 -2
  28. package/spec/src/executors/release-publish/extract-npm-publish-json-data.spec.d.ts.map +0 -1
  29. package/spec/src/executors/release-publish/release-publish.impl.spec.d.ts +0 -2
  30. package/spec/src/executors/release-publish/release-publish.impl.spec.d.ts.map +0 -1
  31. package/spec/src/executors/tsc/tsc.impl.spec.d.ts +0 -2
  32. package/spec/src/executors/tsc/tsc.impl.spec.d.ts.map +0 -1
  33. package/spec/src/generators/convert-to-swc/convert-to-swc.spec.d.ts +0 -2
  34. package/spec/src/generators/convert-to-swc/convert-to-swc.spec.d.ts.map +0 -1
  35. package/spec/src/generators/init/init.spec.d.ts +0 -2
  36. package/spec/src/generators/init/init.spec.d.ts.map +0 -1
  37. package/spec/src/generators/library/library.spec.d.ts +0 -2
  38. package/spec/src/generators/library/library.spec.d.ts.map +0 -1
  39. package/spec/src/generators/library/utils/add-release-config.spec.d.ts +0 -2
  40. package/spec/src/generators/library/utils/add-release-config.spec.d.ts.map +0 -1
  41. package/spec/src/generators/release-version/release-version-workspace-root-project.spec.d.ts +0 -2
  42. package/spec/src/generators/release-version/release-version-workspace-root-project.spec.d.ts.map +0 -1
  43. package/spec/src/generators/release-version/release-version.spec.d.ts +0 -2
  44. package/spec/src/generators/release-version/release-version.spec.d.ts.map +0 -1
  45. package/spec/src/generators/release-version/utils/resolve-local-package-dependencies.spec.d.ts +0 -2
  46. package/spec/src/generators/release-version/utils/resolve-local-package-dependencies.spec.d.ts.map +0 -1
  47. package/spec/src/generators/release-version/utils/resolve-version-spec.spec.d.ts +0 -2
  48. package/spec/src/generators/release-version/utils/resolve-version-spec.spec.d.ts.map +0 -1
  49. package/spec/src/generators/release-version/utils/sort-projects-topologically.spec.d.ts +0 -2
  50. package/spec/src/generators/release-version/utils/sort-projects-topologically.spec.d.ts.map +0 -1
  51. package/spec/src/generators/setup-build/generator.spec.d.ts +0 -2
  52. package/spec/src/generators/setup-build/generator.spec.d.ts.map +0 -1
  53. package/spec/src/generators/setup-prettier/generator.spec.d.ts +0 -2
  54. package/spec/src/generators/setup-prettier/generator.spec.d.ts.map +0 -1
  55. package/spec/src/generators/setup-verdaccio/generator.spec.d.ts +0 -2
  56. package/spec/src/generators/setup-verdaccio/generator.spec.d.ts.map +0 -1
  57. package/spec/src/generators/typescript-sync/typescript-sync.spec.d.ts +0 -2
  58. package/spec/src/generators/typescript-sync/typescript-sync.spec.d.ts.map +0 -1
  59. package/spec/src/migrations/update-21-5-0/migrate-development-custom-condition.spec.d.ts +0 -2
  60. package/spec/src/migrations/update-21-5-0/migrate-development-custom-condition.spec.d.ts.map +0 -1
  61. package/spec/src/migrations/update-22-0-0/remove-external-options-from-js-executors.spec.d.ts +0 -2
  62. package/spec/src/migrations/update-22-0-0/remove-external-options-from-js-executors.spec.d.ts.map +0 -1
  63. package/spec/src/plugins/rollup/type-definitions.spec.d.ts +0 -2
  64. package/spec/src/plugins/rollup/type-definitions.spec.d.ts.map +0 -1
  65. package/spec/src/plugins/typescript/plugin.spec.d.ts +0 -2
  66. package/spec/src/plugins/typescript/plugin.spec.d.ts.map +0 -1
  67. package/spec/src/plugins/typescript/util.spec.d.ts +0 -2
  68. package/spec/src/plugins/typescript/util.spec.d.ts.map +0 -1
  69. package/spec/src/release/utils/semver.spec.d.ts +0 -2
  70. package/spec/src/release/utils/semver.spec.d.ts.map +0 -1
  71. package/spec/src/utils/add-local-registry-scripts.spec.d.ts +0 -2
  72. package/spec/src/utils/add-local-registry-scripts.spec.d.ts.map +0 -1
  73. package/spec/src/utils/assets/copy-assets-handler.spec.d.ts +0 -2
  74. package/spec/src/utils/assets/copy-assets-handler.spec.d.ts.map +0 -1
  75. package/spec/src/utils/buildable-libs-utils.spec.d.ts +0 -2
  76. package/spec/src/utils/buildable-libs-utils.spec.d.ts.map +0 -1
  77. package/spec/src/utils/compiler-helper-dependency.spec.d.ts +0 -2
  78. package/spec/src/utils/compiler-helper-dependency.spec.d.ts.map +0 -1
  79. package/spec/src/utils/find-npm-dependencies.spec.d.ts +0 -2
  80. package/spec/src/utils/find-npm-dependencies.spec.d.ts.map +0 -1
  81. package/spec/src/utils/get-import-path.spec.d.ts +0 -2
  82. package/spec/src/utils/get-import-path.spec.d.ts.map +0 -1
  83. package/spec/src/utils/npm-config.spec.d.ts +0 -2
  84. package/spec/src/utils/npm-config.spec.d.ts.map +0 -1
  85. package/spec/src/utils/package-json/update-package-json.spec.d.ts +0 -2
  86. package/spec/src/utils/package-json/update-package-json.spec.d.ts.map +0 -1
  87. package/spec/src/utils/typescript/create-ts-config.spec.d.ts +0 -2
  88. package/spec/src/utils/typescript/create-ts-config.spec.d.ts.map +0 -1
  89. package/spec/src/utils/typescript/load-ts-transformers.spec.d.ts +0 -2
  90. package/spec/src/utils/typescript/load-ts-transformers.spec.d.ts.map +0 -1
  91. package/spec/src/utils/typescript/plugin.spec.d.ts +0 -2
  92. package/spec/src/utils/typescript/plugin.spec.d.ts.map +0 -1
  93. package/spec/src/utils/typescript/run-type-check.spec.d.ts +0 -2
  94. package/spec/src/utils/typescript/run-type-check.spec.d.ts.map +0 -1
  95. package/spec/tsconfig.spec.tsbuildinfo +0 -1
  96. package/src/generators/release-version/schema.d.ts +0 -1
  97. package/src/generators/release-version/schema.json +0 -86
  98. package/src/generators/release-version/test-utils/create-workspace-with-package-dependencies.d.ts +0 -17
  99. package/src/generators/release-version/test-utils/create-workspace-with-package-dependencies.d.ts.map +0 -1
  100. package/src/generators/release-version/test-utils/create-workspace-with-package-dependencies.js +0 -39
  101. package/src/generators/release-version/utils/package.d.ts +0 -13
  102. package/src/generators/release-version/utils/package.d.ts.map +0 -1
  103. package/src/generators/release-version/utils/package.js +0 -34
  104. package/src/generators/release-version/utils/resolve-local-package-dependencies.d.ts +0 -12
  105. package/src/generators/release-version/utils/resolve-local-package-dependencies.d.ts.map +0 -1
  106. package/src/generators/release-version/utils/resolve-local-package-dependencies.js +0 -77
  107. package/src/generators/release-version/utils/resolve-version-spec.d.ts +0 -2
  108. package/src/generators/release-version/utils/resolve-version-spec.d.ts.map +0 -1
  109. package/src/generators/release-version/utils/resolve-version-spec.js +0 -28
  110. package/src/generators/release-version/utils/sort-projects-topologically.d.ts +0 -3
  111. package/src/generators/release-version/utils/sort-projects-topologically.d.ts.map +0 -1
  112. package/src/generators/release-version/utils/sort-projects-topologically.js +0 -47
@@ -1,4 +1,4 @@
1
- import { type CreateDependencies, type CreateNodes, type CreateNodesV2 } from '@nx/devkit';
1
+ import { type CreateDependencies, type CreateNodesV2 } from '@nx/devkit';
2
2
  export interface TscPluginOptions {
3
3
  typecheck?: boolean | {
4
4
  targetName?: string;
@@ -18,5 +18,5 @@ export interface TscPluginOptions {
18
18
  export declare const createDependencies: CreateDependencies;
19
19
  export declare const PLUGIN_NAME = "@nx/js/typescript";
20
20
  export declare const createNodesV2: CreateNodesV2<TscPluginOptions>;
21
- export declare const createNodes: CreateNodes<TscPluginOptions>;
21
+ export declare const createNodes: CreateNodesV2<TscPluginOptions>;
22
22
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/plugins/typescript/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAGhB,KAAK,aAAa,EAInB,MAAM,YAAY,CAAC;AAiCpB,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EACN,OAAO,GACP;QACE,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACN,KAAK,CAAC,EACF,OAAO,GACP;QACE,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;IACN,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAyFD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAEhC,CAAC;AAEF,eAAO,MAAM,WAAW,sBAAsB,CAAC;AAI/C,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,gBAAgB,CA4DzD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,gBAAgB,CAsCrD,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/plugins/typescript/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,kBAAkB,EAEvB,KAAK,aAAa,EAInB,MAAM,YAAY,CAAC;AAiCpB,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EACN,OAAO,GACP;QACE,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACN,KAAK,CAAC,EACF,OAAO,GACP;QACE,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;IACN,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAyFD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAEhC,CAAC;AAEF,eAAO,MAAM,WAAW,sBAAsB,CAAC;AAI/C,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,gBAAgB,CA6DzD,CAAC;AAEF,eAAO,MAAM,WAAW,iCAAgB,CAAC"}
@@ -83,7 +83,7 @@ exports.createNodesV2 = [
83
83
  const projectRoot = projectRoots[idx];
84
84
  const hash = hashes[idx];
85
85
  const cacheKey = `${hash}_${configFilePath}`;
86
- targetsCache[cacheKey] ??= buildTscTargets((0, node_path_1.join)(context.workspaceRoot, configFilePath), projectRoot, options, context);
86
+ targetsCache[cacheKey] ??= buildTscTargets((0, node_path_1.join)(context.workspaceRoot, configFilePath), projectRoot, options, context, validConfigFilePaths);
87
87
  const { targets } = targetsCache[cacheKey];
88
88
  return {
89
89
  projects: {
@@ -100,29 +100,7 @@ exports.createNodesV2 = [
100
100
  }
101
101
  },
102
102
  ];
103
- exports.createNodes = [
104
- tsConfigGlob,
105
- async (configFilePath, options, context) => {
106
- devkit_1.logger.warn('`createNodes` is deprecated. Update your plugin to utilize createNodesV2 instead. In Nx 20, this will change to the createNodesV2 API.');
107
- const projectRoot = (0, node_path_1.dirname)(configFilePath);
108
- if (!checkIfConfigFileShouldBeProject(configFilePath, projectRoot, context)) {
109
- return {};
110
- }
111
- const normalizedOptions = normalizePluginOptions(options);
112
- cache = { fileHashes: {}, rawFiles: {}, isExternalProjectReference: {} };
113
- initializeTsConfigCache([configFilePath], context.workspaceRoot);
114
- const { targets } = buildTscTargets((0, node_path_1.join)(context.workspaceRoot, configFilePath), projectRoot, normalizedOptions, context);
115
- writeTsConfigCache(toRelativePaths(tsConfigCacheData, context.workspaceRoot));
116
- return {
117
- projects: {
118
- [projectRoot]: {
119
- projectType: 'library',
120
- targets,
121
- },
122
- },
123
- };
124
- },
125
- ];
103
+ exports.createNodes = exports.createNodesV2;
126
104
  async function resolveValidConfigFilesAndHashes(configFilePaths, optionsHash, context) {
127
105
  const lockFileHash = (0, file_hasher_1.hashFile)((0, node_path_1.join)(context.workspaceRoot, (0, lock_file_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot)))) ?? '';
128
106
  const validConfigFilePaths = [];
@@ -201,7 +179,7 @@ function checkIfConfigFileShouldBeProject(configFilePath, projectRoot, context)
201
179
  }
202
180
  return true;
203
181
  }
204
- function buildTscTargets(configFilePath, projectRoot, options, context) {
182
+ function buildTscTargets(configFilePath, projectRoot, options, context, configFiles) {
205
183
  const targets = {};
206
184
  const namedInputs = (0, get_named_inputs_1.getNamedInputs)(projectRoot, context);
207
185
  const tsConfig = retrieveTsConfigFromCache(configFilePath, context.workspaceRoot);
@@ -229,7 +207,7 @@ function buildTscTargets(configFilePath, projectRoot, options, context) {
229
207
  else if (options.build) {
230
208
  // check if the project will have a build target
231
209
  const buildConfigPath = (0, devkit_1.joinPathFragments)(projectRoot, options.build.configName);
232
- if (context.configFiles.some((f) => f === buildConfigPath) &&
210
+ if (configFiles.some((f) => f === buildConfigPath) &&
233
211
  (options.build.skipBuildCheck ||
234
212
  (0, util_1.isValidPackageJsonBuildConfig)(retrieveTsConfigFromCache(buildConfigPath, context.workspaceRoot), context.workspaceRoot, projectRoot))) {
235
213
  dependsOn.unshift(options.build.targetName);
@@ -1,7 +1,6 @@
1
- export declare function updateLockFile(cwd: string, { dryRun, verbose, useLegacyVersioning, options, }: {
1
+ export declare function updateLockFile(cwd: string, { dryRun, verbose, options, }: {
2
2
  dryRun?: boolean;
3
3
  verbose?: boolean;
4
- useLegacyVersioning?: boolean;
5
4
  options?: {
6
5
  skipLockFileUpdate?: boolean;
7
6
  installArgs?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"update-lock-file.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/release/utils/update-lock-file.ts"],"names":[],"mappings":"AAaA,wBAAsB,cAAc,CAClC,GAAG,EAAE,MAAM,EACX,EACE,MAAM,EACN,OAAO,EACP,mBAAmB,EACnB,OAAO,GACR,EAAE;IACD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,OAAO,CAAC,EAAE;QACR,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;CACH,qBAgGF"}
1
+ {"version":3,"file":"update-lock-file.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/release/utils/update-lock-file.ts"],"names":[],"mappings":"AAaA,wBAAsB,cAAc,CAClC,GAAG,EAAE,MAAM,EACX,EACE,MAAM,EACN,OAAO,EACP,OAAO,GACR,EAAE;IACD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE;QACR,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;CACH,qBAgGF"}
@@ -7,7 +7,7 @@ const client_1 = require("nx/src/daemon/client/client");
7
7
  // eslint-disable-next-line @typescript-eslint/no-restricted-imports
8
8
  const lock_file_1 = require("nx/src/plugins/js/lock-file/lock-file");
9
9
  const semver_1 = require("semver");
10
- async function updateLockFile(cwd, { dryRun, verbose, useLegacyVersioning, options, }) {
10
+ async function updateLockFile(cwd, { dryRun, verbose, options, }) {
11
11
  if (options?.skipLockFileUpdate) {
12
12
  if (verbose) {
13
13
  console.log('\nSkipped lock file update because skipLockFileUpdate was set.');
@@ -62,7 +62,7 @@ async function updateLockFile(cwd, { dryRun, verbose, useLegacyVersioning, optio
62
62
  if (dryRun) {
63
63
  return [];
64
64
  }
65
- execLockFileUpdate(command, cwd, env, useLegacyVersioning);
65
+ execLockFileUpdate(command, cwd, env);
66
66
  if (isDaemonEnabled) {
67
67
  try {
68
68
  await client_1.daemonClient.startInBackground();
@@ -79,7 +79,7 @@ async function updateLockFile(cwd, { dryRun, verbose, useLegacyVersioning, optio
79
79
  }
80
80
  return [lockFile];
81
81
  }
82
- function execLockFileUpdate(command, cwd, env, useLegacyVersioning) {
82
+ function execLockFileUpdate(command, cwd, env) {
83
83
  try {
84
84
  const LARGE_BUFFER = 1024 * 1000000;
85
85
  (0, child_process_1.execSync)(command, {
@@ -93,16 +93,13 @@ function execLockFileUpdate(command, cwd, env, useLegacyVersioning) {
93
93
  });
94
94
  }
95
95
  catch (e) {
96
- const configPathStart = useLegacyVersioning
97
- ? 'release.version.generatorOptions'
98
- : 'release.version.versionActionsOptions';
99
96
  devkit_1.output.error({
100
97
  title: `Error updating lock file with command '${command}'`,
101
98
  bodyLines: [
102
99
  `Verify that '${command}' succeeds when run from the workspace root.`,
103
- `To configure a string of arguments to be passed to this command, set the '${configPathStart}.installArgs' property in nx.json.`,
104
- `To ignore install lifecycle scripts, set '${configPathStart}.installIgnoreScripts' to true in nx.json.`,
105
- `To disable this step entirely, set '${configPathStart}.skipLockFileUpdate' to true in nx.json.`,
100
+ `To configure a string of arguments to be passed to this command, set the 'release.version.versionActionsOptions.installArgs' property in nx.json.`,
101
+ `To ignore install lifecycle scripts, set 'release.version.versionActionsOptions.installIgnoreScripts' to true in nx.json.`,
102
+ `To disable this step entirely, set 'release.version.versionActionsOptions.skipLockFileUpdate' to true in nx.json.`,
106
103
  ],
107
104
  });
108
105
  throw e;
@@ -1 +1 @@
1
- {"version":3,"file":"version-actions.d.ts","sourceRoot":"","sources":["../../../../../packages/js/src/release/version-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEZ,IAAI,EAGL,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAM3E,eAAO,MAAM,yBAAyB,EAAE,yBAmBvC,CAAC;AAKF,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,cAAc;IAC1D,sBAAsB,WAAoB;IAEpC,oCAAoC,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC;QAC9D,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IAkBI,8BAA8B,CAClC,IAAI,EAAE,IAAI,EACV,8BAA8B,EAAE,6BAA6B,CAAC,gCAAgC,CAAC,GAC9F,OAAO,CAAC;QACT,cAAc,EAAE,MAAM,CAAC;QACvB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IAkEI,8BAA8B,CAClC,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,qBAAqB,EAAE,MAAM,GAC5B,OAAO,CAAC;QACT,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;QAC9B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;KACrC,CAAC;IA+BI,oBAAoB,CACxB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,EAAE,CAAC;IAcd,yBAAyB,CAC7B,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3C,OAAO,CAAC,MAAM,EAAE,CAAC;IAuFpB,OAAO,CAAC,yBAAyB;CAyClC"}
1
+ {"version":3,"file":"version-actions.d.ts","sourceRoot":"","sources":["../../../../../packages/js/src/release/version-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEZ,IAAI,EAGL,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAM3E,eAAO,MAAM,yBAAyB,EAAE,yBAkBvC,CAAC;AAKF,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,cAAc;IAC1D,sBAAsB,WAAoB;IAEpC,oCAAoC,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC;QAC9D,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IAkBI,8BAA8B,CAClC,IAAI,EAAE,IAAI,EACV,8BAA8B,EAAE,6BAA6B,CAAC,gCAAgC,CAAC,GAC9F,OAAO,CAAC;QACT,cAAc,EAAE,MAAM,CAAC;QACvB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IAkEI,8BAA8B,CAClC,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,qBAAqB,EAAE,MAAM,GAC5B,OAAO,CAAC;QACT,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;QAC9B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;KACrC,CAAC;IA+BI,oBAAoB,CACxB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,EAAE,CAAC;IAcd,yBAAyB,CAC7B,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3C,OAAO,CAAC,MAAM,EAAE,CAAC;IAwFpB,OAAO,CAAC,yBAAyB;CAyClC"}
@@ -13,7 +13,6 @@ const afterAllProjectsVersioned = async (cwd, { rootVersionActionsOptions, ...op
13
13
  return {
14
14
  changedFiles: await (0, update_lock_file_1.updateLockFile)(cwd, {
15
15
  ...opts,
16
- useLegacyVersioning: false,
17
16
  options: rootVersionActionsOptions,
18
17
  }),
19
18
  deletedFiles: [],
@@ -137,13 +136,13 @@ class JsVersionActions extends release_1.VersionActions {
137
136
  'peerDependencies',
138
137
  'optionalDependencies',
139
138
  ];
140
- // TODO(v22): Flip this to all by default
141
139
  const preserveMatchingDependencyRanges = this.finalConfigForProject.preserveMatchingDependencyRanges === true
142
140
  ? dependencyTypes
143
141
  : this.finalConfigForProject.preserveMatchingDependencyRanges ===
144
142
  false
145
143
  ? []
146
- : this.finalConfigForProject.preserveMatchingDependencyRanges || [];
144
+ : this.finalConfigForProject.preserveMatchingDependencyRanges ||
145
+ dependencyTypes;
147
146
  for (const depType of dependencyTypes) {
148
147
  if (json[depType]) {
149
148
  for (const [dep, version] of Object.entries(dependenciesToUpdate)) {
@@ -1,13 +0,0 @@
1
- declare const _default: {
2
- displayName: string;
3
- preset: string;
4
- transform: {
5
- '^.+\\.[tj]sx?$': (string | {
6
- tsconfig: string;
7
- })[];
8
- };
9
- testEnvironment: string;
10
- moduleFileExtensions: string[];
11
- };
12
- export default _default;
13
- //# sourceMappingURL=jest.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jest.config.d.ts","sourceRoot":"","sources":["../../../../packages/js/jest.config.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,wBAQE"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=migrations.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrations.spec.d.ts","sourceRoot":"","sources":["../../../../packages/js/migrations.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=detect-module-format.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"detect-module-format.spec.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/js/src/executors/node/lib/detect-module-format.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=esm-loader.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"esm-loader.spec.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/js/src/executors/node/lib/esm-loader.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=extract-npm-publish-json-data.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extract-npm-publish-json-data.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/executors/release-publish/extract-npm-publish-json-data.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=release-publish.impl.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release-publish.impl.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/executors/release-publish/release-publish.impl.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=tsc.impl.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tsc.impl.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/executors/tsc/tsc.impl.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import 'nx/src/internal-testing-utils/mock-project-graph';
2
- //# sourceMappingURL=convert-to-swc.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"convert-to-swc.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/generators/convert-to-swc/convert-to-swc.spec.ts"],"names":[],"mappings":"AAAA,OAAO,kDAAkD,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=init.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/generators/init/init.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import 'nx/src/internal-testing-utils/mock-project-graph';
2
- //# sourceMappingURL=library.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"library.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/generators/library/library.spec.ts"],"names":[],"mappings":"AAAA,OAAO,kDAAkD,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=add-release-config.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-release-config.spec.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/js/src/generators/library/utils/add-release-config.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=release-version-workspace-root-project.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release-version-workspace-root-project.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/generators/release-version/release-version-workspace-root-project.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=release-version.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release-version.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/generators/release-version/release-version.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=resolve-local-package-dependencies.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-local-package-dependencies.spec.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/js/src/generators/release-version/utils/resolve-local-package-dependencies.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=resolve-version-spec.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-version-spec.spec.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/js/src/generators/release-version/utils/resolve-version-spec.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sort-projects-topologically.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sort-projects-topologically.spec.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/js/src/generators/release-version/utils/sort-projects-topologically.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import 'nx/src/internal-testing-utils/mock-project-graph';
2
- //# sourceMappingURL=generator.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/generators/setup-build/generator.spec.ts"],"names":[],"mappings":"AAAA,OAAO,kDAAkD,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=generator.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/generators/setup-prettier/generator.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import 'nx/src/internal-testing-utils/mock-project-graph';
2
- //# sourceMappingURL=generator.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/generators/setup-verdaccio/generator.spec.ts"],"names":[],"mappings":"AAAA,OAAO,kDAAkD,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=typescript-sync.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typescript-sync.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/generators/typescript-sync/typescript-sync.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=migrate-development-custom-condition.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-development-custom-condition.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/migrations/update-21-5-0/migrate-development-custom-condition.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=remove-external-options-from-js-executors.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-external-options-from-js-executors.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/migrations/update-22-0-0/remove-external-options-from-js-executors.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=type-definitions.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type-definitions.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/plugins/rollup/type-definitions.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=plugin.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/plugins/typescript/plugin.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=util.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/plugins/typescript/util.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=semver.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"semver.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/release/utils/semver.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=add-local-registry-scripts.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-local-registry-scripts.spec.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/utils/add-local-registry-scripts.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=copy-assets-handler.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"copy-assets-handler.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/utils/assets/copy-assets-handler.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=buildable-libs-utils.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildable-libs-utils.spec.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/utils/buildable-libs-utils.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=compiler-helper-dependency.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compiler-helper-dependency.spec.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/utils/compiler-helper-dependency.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import 'nx/src/internal-testing-utils/mock-fs';
2
- //# sourceMappingURL=find-npm-dependencies.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-npm-dependencies.spec.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/utils/find-npm-dependencies.spec.ts"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=get-import-path.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-import-path.spec.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/utils/get-import-path.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=npm-config.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"npm-config.spec.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/utils/npm-config.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import 'nx/src/internal-testing-utils/mock-fs';
2
- //# sourceMappingURL=update-package-json.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-package-json.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/utils/package-json/update-package-json.spec.ts"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=create-ts-config.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-ts-config.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/utils/typescript/create-ts-config.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=load-ts-transformers.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"load-ts-transformers.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/utils/typescript/load-ts-transformers.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=plugin.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/utils/typescript/plugin.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=run-type-check.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-type-check.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/js/src/utils/typescript/run-type-check.spec.ts"],"names":[],"mappings":""}