@nx/js 23.2.0-beta.4 → 23.2.0-beta.5

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 (40) hide show
  1. package/dist/internal.d.ts +3 -3
  2. package/dist/internal.js +12 -15
  3. package/dist/src/executors/copy-workspace-modules/copy-workspace-modules.js +4 -5
  4. package/dist/src/executors/node/lib/output-file.js +4 -4
  5. package/dist/src/executors/node/node.impl.js +9 -9
  6. package/dist/src/executors/prune-lockfile/prune-lockfile.d.ts +1 -1
  7. package/dist/src/executors/prune-lockfile/prune-lockfile.js +7 -9
  8. package/dist/src/executors/tsc/lib/batch/watch.js +3 -3
  9. package/dist/src/executors/tsc/tsc.batch-impl.d.ts +1 -1
  10. package/dist/src/executors/tsc/tsc.batch-impl.js +2 -2
  11. package/dist/src/executors/verdaccio/verdaccio.impl.js +2 -2
  12. package/dist/src/generators/library/utils/add-release-config.js +2 -2
  13. package/dist/src/generators/setup-build/generator.js +1 -2
  14. package/dist/src/generators/typescript-sync/typescript-sync.d.ts +1 -1
  15. package/dist/src/generators/typescript-sync/typescript-sync.js +2 -2
  16. package/dist/src/index.d.ts +2 -2
  17. package/dist/src/index.js +5 -7
  18. package/dist/src/plugins/typescript/plugin.js +14 -14
  19. package/dist/src/plugins/typescript/util.d.ts +1 -1
  20. package/dist/src/release/utils/update-lock-file.js +6 -7
  21. package/dist/src/release/version-actions.d.ts +7 -2
  22. package/dist/src/release/version-actions.js +111 -57
  23. package/dist/src/utils/assets/copy-assets-handler.d.ts +1 -1
  24. package/dist/src/utils/assets/copy-assets-handler.js +2 -2
  25. package/dist/src/utils/buildable-libs-utils.js +10 -13
  26. package/dist/src/utils/find-npm-dependencies.js +7 -10
  27. package/dist/src/utils/generate-globs.js +11 -14
  28. package/dist/src/utils/get-main-file-dir.js +2 -2
  29. package/dist/src/utils/npm-config.d.ts +1 -1
  30. package/dist/src/utils/package-json/update-package-json.d.ts +1 -1
  31. package/dist/src/utils/package-json/update-package-json.js +9 -11
  32. package/dist/src/utils/package-manager-workspaces.js +2 -2
  33. package/dist/src/utils/typescript/create-ts-config.d.ts +1 -1
  34. package/dist/src/utils/typescript/create-ts-config.js +5 -5
  35. package/dist/src/utils/typescript/plugin.js +2 -2
  36. package/dist/src/utils/typescript/run-type-check.js +2 -2
  37. package/dist/src/utils/typescript/ts-solution-setup.d.ts +1 -1
  38. package/dist/src/utils/typescript/ts-solution-setup.js +3 -3
  39. package/dist/src/utils/watch-for-single-file-changes.js +2 -2
  40. package/package.json +4 -4
@@ -6,9 +6,9 @@ exports.getFormattedDiagnostic = getFormattedDiagnostic;
6
6
  const tslib_1 = require("tslib");
7
7
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
8
8
  const path = tslib_1.__importStar(require("path"));
9
- const code_frames_1 = require("nx/src/utils/code-frames");
10
9
  const highlight_1 = require("../code-frames/highlight");
11
10
  const ts_config_1 = require("../../utils/typescript/ts-config");
11
+ const internal_1 = require("@nx/devkit/internal");
12
12
  async function runTypeCheckWatch(options, callback) {
13
13
  const { ts, workspaceRoot, config, compilerOptions } = await setupTypeScript(options);
14
14
  const host = ts.createWatchCompilerHost(config.fileNames, compilerOptions, ts.sys, ts.createEmitAndSemanticDiagnosticsBuilderProgram);
@@ -133,7 +133,7 @@ function getFormattedDiagnostic(ts, workspaceRoot, diagnostic) {
133
133
  const code = diagnostic.file.getFullText(diagnostic.file.getSourceFile());
134
134
  message +=
135
135
  '\n' +
136
- (0, code_frames_1.codeFrameColumns)(code, {
136
+ (0, internal_1.codeFrameColumns)(code, {
137
137
  start: { line: line, column },
138
138
  }, { highlight: highlight_1.highlight });
139
139
  }
@@ -1,5 +1,5 @@
1
1
  import { type ProjectConfiguration, type Tree } from '@nx/devkit';
2
- import type { JsonInput } from 'nx/src/native';
2
+ import type { JsonInput } from '@nx/devkit/internal';
3
3
  export declare const TS_SOLUTION_SETUP_TSCONFIG_INPUT: JsonInput;
4
4
  export declare function isUsingTypeScriptPlugin(tree: Tree): boolean;
5
5
  export declare function shouldConfigureTsSolutionSetup(tree: Tree, addPlugins: boolean, addTsPlugin?: boolean): boolean;
@@ -15,7 +15,7 @@ exports.getDefinedCustomConditionName = getDefinedCustomConditionName;
15
15
  const devkit_1 = require("@nx/devkit");
16
16
  const node_fs_1 = require("node:fs");
17
17
  const posix_1 = require("node:path/posix");
18
- const tree_1 = require("nx/src/generators/tree");
18
+ const internal_1 = require("@nx/devkit/internal");
19
19
  const package_manager_workspaces_1 = require("../package-manager-workspaces");
20
20
  const configuration_1 = require("./configuration");
21
21
  exports.TS_SOLUTION_SETUP_TSCONFIG_INPUT = {
@@ -48,7 +48,7 @@ function shouldConfigureTsSolutionSetup(tree, addPlugins, addTsPlugin) {
48
48
  return !tree.exists('tsconfig.base.json') && !tree.exists('tsconfig.json');
49
49
  }
50
50
  function isUsingTsSolutionSetup(tree) {
51
- tree ??= new tree_1.FsTree(devkit_1.workspaceRoot, false);
51
+ tree ??= new internal_1.FsTree(devkit_1.workspaceRoot, false);
52
52
  return ((0, package_manager_workspaces_1.isUsingPackageManagerWorkspaces)(tree) &&
53
53
  isWorkspaceSetupWithTsSolution(tree));
54
54
  }
@@ -113,7 +113,7 @@ function assertNotUsingTsSolutionSetup(tree, pluginName, generatorName) {
113
113
  throw new Error(`The ${artifactString} doesn't yet support the existing TypeScript setup. See the error above.`);
114
114
  }
115
115
  function findRuntimeTsConfigName(projectRoot, tree) {
116
- tree ??= new tree_1.FsTree(devkit_1.workspaceRoot, false);
116
+ tree ??= new internal_1.FsTree(devkit_1.workspaceRoot, false);
117
117
  if (tree.exists((0, devkit_1.joinPathFragments)(projectRoot, 'tsconfig.app.json')))
118
118
  return 'tsconfig.app.json';
119
119
  if (tree.exists((0, devkit_1.joinPathFragments)(projectRoot, 'tsconfig.lib.json')))
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.watchForSingleFileChanges = watchForSingleFileChanges;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const client_1 = require("nx/src/daemon/client/client");
6
5
  const path_1 = require("path");
6
+ const internal_1 = require("@nx/devkit/internal");
7
7
  async function watchForSingleFileChanges(projectName, projectRoot, relativeFilePath, callback) {
8
- const unregisterFileWatcher = await client_1.daemonClient.registerFileWatcher({ watchProjects: [projectName] }, (err, data) => {
8
+ const unregisterFileWatcher = await internal_1.daemonClient.registerFileWatcher({ watchProjects: [projectName] }, (err, data) => {
9
9
  if (err === 'reconnecting') {
10
10
  // Silent - daemon restarts automatically on lockfile changes
11
11
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/js",
3
- "version": "23.2.0-beta.4",
3
+ "version": "23.2.0-beta.5",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -147,11 +147,11 @@
147
147
  "source-map-support": "0.5.19",
148
148
  "tinyglobby": "^0.2.12",
149
149
  "tslib": "^2.3.0",
150
- "@nx/devkit": "23.2.0-beta.4",
151
- "@nx/workspace": "23.2.0-beta.4"
150
+ "@nx/devkit": "23.2.0-beta.5",
151
+ "@nx/workspace": "23.2.0-beta.5"
152
152
  },
153
153
  "devDependencies": {
154
- "nx": "23.2.0-beta.4"
154
+ "nx": "23.2.0-beta.5"
155
155
  },
156
156
  "peerDependencies": {
157
157
  "@swc/cli": ">=0.6.0 <0.9.0",