@nx/js 19.4.0-beta.0 → 19.4.0-beta.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "19.4.0-beta.
|
|
3
|
+
"version": "19.4.0-beta.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
6
6
|
"repository": {
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"semver": "^7.5.3",
|
|
59
59
|
"source-map-support": "0.5.19",
|
|
60
60
|
"tslib": "^2.3.0",
|
|
61
|
-
"@nx/devkit": "19.4.0-beta.
|
|
62
|
-
"@nx/workspace": "19.4.0-beta.
|
|
63
|
-
"@nrwl/js": "19.4.0-beta.
|
|
61
|
+
"@nx/devkit": "19.4.0-beta.2",
|
|
62
|
+
"@nx/workspace": "19.4.0-beta.2",
|
|
63
|
+
"@nrwl/js": "19.4.0-beta.2"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"verdaccio": "^5.0.4"
|
|
@@ -32,7 +32,7 @@ export declare function calculateDependenciesFromTaskGraph(taskGraph: TaskGraph,
|
|
|
32
32
|
* @param dependencies Dependencies calculated by Nx.
|
|
33
33
|
*/
|
|
34
34
|
export declare function computeCompilerOptionsPaths(tsConfig: string | ts.ParsedCommandLine, dependencies: DependentBuildableProjectNode[]): ts.MapLike<string[]>;
|
|
35
|
-
export declare function createTmpTsConfig(tsconfigPath: string, workspaceRoot: string, projectRoot: string, dependencies: DependentBuildableProjectNode[]): string;
|
|
35
|
+
export declare function createTmpTsConfig(tsconfigPath: string, workspaceRoot: string, projectRoot: string, dependencies: DependentBuildableProjectNode[], useWorkspaceAsBaseUrl?: boolean): string;
|
|
36
36
|
export declare function checkDependentProjectsHaveBeenBuilt(root: string, projectName: string, targetName: string, projectDependencies: DependentBuildableProjectNode[]): boolean;
|
|
37
37
|
export declare function findMissingBuildDependencies(root: string, projectName: string, targetName: string, projectDependencies: DependentBuildableProjectNode[]): DependentBuildableProjectNode[];
|
|
38
38
|
export declare function updatePaths(dependencies: DependentBuildableProjectNode[], paths: Record<string, string[]>): void;
|
|
@@ -226,10 +226,14 @@ function computeCompilerOptionsPaths(tsConfig, dependencies) {
|
|
|
226
226
|
return paths;
|
|
227
227
|
}
|
|
228
228
|
exports.computeCompilerOptionsPaths = computeCompilerOptionsPaths;
|
|
229
|
-
function createTmpTsConfig(tsconfigPath, workspaceRoot, projectRoot, dependencies) {
|
|
229
|
+
function createTmpTsConfig(tsconfigPath, workspaceRoot, projectRoot, dependencies, useWorkspaceAsBaseUrl = false) {
|
|
230
230
|
const tmpTsConfigPath = (0, path_1.join)(workspaceRoot, 'tmp', projectRoot, process.env.NX_TASK_TARGET_TARGET ?? 'build', 'tsconfig.generated.json');
|
|
231
231
|
const parsedTSConfig = readTsConfigWithRemappedPaths(tsconfigPath, tmpTsConfigPath, dependencies);
|
|
232
232
|
process.on('exit', () => cleanupTmpTsConfigFile(tmpTsConfigPath));
|
|
233
|
+
if (useWorkspaceAsBaseUrl) {
|
|
234
|
+
parsedTSConfig.compilerOptions ??= {};
|
|
235
|
+
parsedTSConfig.compilerOptions.baseUrl = workspaceRoot;
|
|
236
|
+
}
|
|
233
237
|
(0, devkit_1.writeJsonFile)(tmpTsConfigPath, parsedTSConfig);
|
|
234
238
|
return (0, path_1.join)(tmpTsConfigPath);
|
|
235
239
|
}
|