@nx/js 23.2.0-beta.4 → 23.2.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +12 -15
- package/dist/src/executors/copy-workspace-modules/copy-workspace-modules.js +5 -6
- package/dist/src/executors/node/lib/output-file.js +4 -4
- package/dist/src/executors/node/node.impl.js +9 -9
- package/dist/src/executors/prune-lockfile/prune-lockfile.d.ts +1 -1
- package/dist/src/executors/prune-lockfile/prune-lockfile.js +7 -9
- package/dist/src/executors/tsc/lib/batch/watch.js +3 -3
- package/dist/src/executors/tsc/tsc.batch-impl.d.ts +1 -1
- package/dist/src/executors/tsc/tsc.batch-impl.js +2 -2
- package/dist/src/executors/verdaccio/verdaccio.impl.js +2 -2
- package/dist/src/generators/library/utils/add-release-config.js +2 -2
- package/dist/src/generators/setup-build/generator.js +1 -2
- package/dist/src/generators/typescript-sync/typescript-sync.d.ts +1 -1
- package/dist/src/generators/typescript-sync/typescript-sync.js +2 -2
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +5 -7
- package/dist/src/plugins/typescript/plugin.js +14 -14
- package/dist/src/plugins/typescript/util.d.ts +1 -1
- package/dist/src/release/utils/update-lock-file.js +6 -7
- package/dist/src/release/version-actions.d.ts +7 -2
- package/dist/src/release/version-actions.js +111 -57
- package/dist/src/utils/assets/copy-assets-handler.d.ts +1 -1
- package/dist/src/utils/assets/copy-assets-handler.js +2 -2
- package/dist/src/utils/buildable-libs-utils.js +10 -13
- package/dist/src/utils/find-npm-dependencies.js +7 -10
- package/dist/src/utils/generate-globs.js +11 -14
- package/dist/src/utils/get-main-file-dir.js +2 -2
- package/dist/src/utils/npm-config.d.ts +1 -1
- package/dist/src/utils/package-json/update-package-json.d.ts +1 -1
- package/dist/src/utils/package-json/update-package-json.js +9 -11
- package/dist/src/utils/package-manager-workspaces.js +2 -2
- package/dist/src/utils/typescript/create-ts-config.d.ts +1 -1
- package/dist/src/utils/typescript/create-ts-config.js +5 -5
- package/dist/src/utils/typescript/plugin.js +2 -2
- package/dist/src/utils/typescript/run-type-check.js +2 -2
- package/dist/src/utils/typescript/ts-solution-setup.d.ts +1 -1
- package/dist/src/utils/typescript/ts-solution-setup.js +3 -3
- package/dist/src/utils/watch-for-single-file-changes.js +2 -2
- package/package.json +5 -5
|
@@ -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,
|
|
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/
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "23.2.0-beta.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
|
-
"@babel/core": "^7.
|
|
123
|
+
"@babel/core": "^7.29.6",
|
|
124
124
|
"@babel/plugin-proposal-decorators": "^7.22.7",
|
|
125
125
|
"@babel/plugin-transform-class-properties": "^7.22.5",
|
|
126
126
|
"@babel/plugin-transform-class-static-block": "^7.22.5",
|
|
@@ -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.
|
|
151
|
-
"@nx/workspace": "23.2.0-beta.
|
|
150
|
+
"@nx/devkit": "23.2.0-beta.6",
|
|
151
|
+
"@nx/workspace": "23.2.0-beta.6"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|
|
154
|
-
"nx": "23.2.0-beta.
|
|
154
|
+
"nx": "23.2.0-beta.6"
|
|
155
155
|
},
|
|
156
156
|
"peerDependencies": {
|
|
157
157
|
"@swc/cli": ">=0.6.0 <0.9.0",
|