@nx/js 23.0.0-beta.13 → 23.0.0-beta.15
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/src/internal.d.ts +18 -0
- package/dist/src/internal.js +25 -0
- package/migrations.json +1 -1
- package/package.json +12 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Backwards-compatibility shim for `@nx/js/src/internal`.
|
|
3
|
+
*
|
|
4
|
+
* The `./src/internal` subpath was removed in nx 23 — the canonical path is
|
|
5
|
+
* now `@nx/js/internal`. Additionally, `getRootTsConfigPath` moved to the
|
|
6
|
+
* main `@nx/js` entry.
|
|
7
|
+
*
|
|
8
|
+
* This shim keeps `@nx/conformance@4` / `@nx/conformance@5.0.x` working on
|
|
9
|
+
* nx 23. Both packages do:
|
|
10
|
+
* `const { getRootTsConfigPath } = await import('@nx/js/src/internal')`
|
|
11
|
+
* `const { registerTsProject } = await import('@nx/js/src/internal')`
|
|
12
|
+
*
|
|
13
|
+
* Do NOT add new exports here. Consumers should migrate to:
|
|
14
|
+
* - `@nx/js/internal` for `registerTsProject` (and other internal helpers)
|
|
15
|
+
* - `@nx/js` for `getRootTsConfigPath`
|
|
16
|
+
*/
|
|
17
|
+
export { registerTsProject } from '../internal';
|
|
18
|
+
export { getRootTsConfigPath } from './utils/typescript/ts-config';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Backwards-compatibility shim for `@nx/js/src/internal`.
|
|
4
|
+
*
|
|
5
|
+
* The `./src/internal` subpath was removed in nx 23 — the canonical path is
|
|
6
|
+
* now `@nx/js/internal`. Additionally, `getRootTsConfigPath` moved to the
|
|
7
|
+
* main `@nx/js` entry.
|
|
8
|
+
*
|
|
9
|
+
* This shim keeps `@nx/conformance@4` / `@nx/conformance@5.0.x` working on
|
|
10
|
+
* nx 23. Both packages do:
|
|
11
|
+
* `const { getRootTsConfigPath } = await import('@nx/js/src/internal')`
|
|
12
|
+
* `const { registerTsProject } = await import('@nx/js/src/internal')`
|
|
13
|
+
*
|
|
14
|
+
* Do NOT add new exports here. Consumers should migrate to:
|
|
15
|
+
* - `@nx/js/internal` for `registerTsProject` (and other internal helpers)
|
|
16
|
+
* - `@nx/js` for `getRootTsConfigPath`
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.getRootTsConfigPath = exports.registerTsProject = void 0;
|
|
20
|
+
// registerTsProject lives in the new ./internal entry
|
|
21
|
+
var internal_1 = require("../internal");
|
|
22
|
+
Object.defineProperty(exports, "registerTsProject", { enumerable: true, get: function () { return internal_1.registerTsProject; } });
|
|
23
|
+
// getRootTsConfigPath moved to the main @nx/js entry in nx 23
|
|
24
|
+
var ts_config_1 = require("./utils/typescript/ts-config");
|
|
25
|
+
Object.defineProperty(exports, "getRootTsConfigPath", { enumerable: true, get: function () { return ts_config_1.getRootTsConfigPath; } });
|
package/migrations.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"factory": "./dist/src/migrations/update-22-1-0/remove-redundant-ts-project-references"
|
|
17
17
|
},
|
|
18
18
|
"23-0-0-rewrite-internal-subpath-imports": {
|
|
19
|
-
"version": "23.0.0-beta.
|
|
19
|
+
"version": "23.0.0-beta.14",
|
|
20
20
|
"description": "Rewrites `@nx/js/src/*` subpath imports to the new `@nx/js/internal` entry. The `./src/*` wildcard has been removed from `@nx/js`'s exports map; `@nx/js/src/release/version-actions` is preserved as a non-wildcard entry for back-compat with existing nx.json release configs. If a rewritten import resolves to a symbol that lives on the public `@nx/js` entry (e.g. `libraryGenerator`, `extractTsConfigBase`, `resolvePathsBaseUrl`), change the specifier to `@nx/js`.",
|
|
21
21
|
"factory": "./dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports"
|
|
22
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
"internal": [
|
|
44
44
|
"dist/internal.d.ts"
|
|
45
45
|
],
|
|
46
|
+
"src/internal": [
|
|
47
|
+
"dist/src/internal.d.ts"
|
|
48
|
+
],
|
|
46
49
|
"src/release/version-actions": [
|
|
47
50
|
"dist/src/release/version-actions.d.ts"
|
|
48
51
|
],
|
|
@@ -92,6 +95,11 @@
|
|
|
92
95
|
"types": "./dist/internal.d.ts",
|
|
93
96
|
"default": "./dist/internal.js"
|
|
94
97
|
},
|
|
98
|
+
"./src/internal": {
|
|
99
|
+
"@nx/nx-source": "./src/internal.ts",
|
|
100
|
+
"types": "./dist/src/internal.d.ts",
|
|
101
|
+
"default": "./dist/src/internal.js"
|
|
102
|
+
},
|
|
95
103
|
"./src/release/version-actions": {
|
|
96
104
|
"@nx/nx-source": "./src/release/version-actions.ts",
|
|
97
105
|
"types": "./dist/src/release/version-actions.d.ts",
|
|
@@ -128,11 +136,11 @@
|
|
|
128
136
|
"source-map-support": "0.5.19",
|
|
129
137
|
"tinyglobby": "^0.2.12",
|
|
130
138
|
"tslib": "^2.3.0",
|
|
131
|
-
"@nx/
|
|
132
|
-
"@nx/
|
|
139
|
+
"@nx/workspace": "23.0.0-beta.15",
|
|
140
|
+
"@nx/devkit": "23.0.0-beta.15"
|
|
133
141
|
},
|
|
134
142
|
"devDependencies": {
|
|
135
|
-
"nx": "23.0.0-beta.
|
|
143
|
+
"nx": "23.0.0-beta.15"
|
|
136
144
|
},
|
|
137
145
|
"peerDependencies": {
|
|
138
146
|
"verdaccio": "^6.0.5"
|