From e1b3f702682c8859a6a9a89081d03a12657ef57e Mon Sep 17 00:00:00 2001 From: labkey-nicka Date: Thu, 19 Mar 2026 15:32:58 -0700 Subject: [PATCH] Specify client library paths in tsconfig.json --- assay/tsconfig.json | 10 +++++++++- core/tsconfig.json | 10 +++++++++- experiment/tsconfig.json | 10 +++++++++- pipeline/tsconfig.json | 10 +++++++++- 4 files changed, 36 insertions(+), 4 deletions(-) diff --git a/assay/tsconfig.json b/assay/tsconfig.json index 51a3abbe122..f2776d1cc73 100644 --- a/assay/tsconfig.json +++ b/assay/tsconfig.json @@ -1,5 +1,13 @@ { "extends": "./node_modules/@labkey/build/webpack/tsconfig.json", + "compilerOptions": { + "paths": { + // Point to the dist/lib folder where the .d.ts files are output + "@labkey/api": ["../../../../clientAPIs/labkey-api-js/dist/index"], + "@labkey/components": ["../../../../clientAPIs/labkey-ui-components/packages/components/dist/index"], + "@labkey/premium": ["../../../../clientAPIs/labkey-ui-premium/dist/index"], + }, + }, "include": ["src/client/**/*"], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/core/tsconfig.json b/core/tsconfig.json index 51a3abbe122..f2776d1cc73 100644 --- a/core/tsconfig.json +++ b/core/tsconfig.json @@ -1,5 +1,13 @@ { "extends": "./node_modules/@labkey/build/webpack/tsconfig.json", + "compilerOptions": { + "paths": { + // Point to the dist/lib folder where the .d.ts files are output + "@labkey/api": ["../../../../clientAPIs/labkey-api-js/dist/index"], + "@labkey/components": ["../../../../clientAPIs/labkey-ui-components/packages/components/dist/index"], + "@labkey/premium": ["../../../../clientAPIs/labkey-ui-premium/dist/index"], + }, + }, "include": ["src/client/**/*"], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/experiment/tsconfig.json b/experiment/tsconfig.json index 51a3abbe122..f2776d1cc73 100644 --- a/experiment/tsconfig.json +++ b/experiment/tsconfig.json @@ -1,5 +1,13 @@ { "extends": "./node_modules/@labkey/build/webpack/tsconfig.json", + "compilerOptions": { + "paths": { + // Point to the dist/lib folder where the .d.ts files are output + "@labkey/api": ["../../../../clientAPIs/labkey-api-js/dist/index"], + "@labkey/components": ["../../../../clientAPIs/labkey-ui-components/packages/components/dist/index"], + "@labkey/premium": ["../../../../clientAPIs/labkey-ui-premium/dist/index"], + }, + }, "include": ["src/client/**/*"], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/pipeline/tsconfig.json b/pipeline/tsconfig.json index 51a3abbe122..f2776d1cc73 100644 --- a/pipeline/tsconfig.json +++ b/pipeline/tsconfig.json @@ -1,5 +1,13 @@ { "extends": "./node_modules/@labkey/build/webpack/tsconfig.json", + "compilerOptions": { + "paths": { + // Point to the dist/lib folder where the .d.ts files are output + "@labkey/api": ["../../../../clientAPIs/labkey-api-js/dist/index"], + "@labkey/components": ["../../../../clientAPIs/labkey-ui-components/packages/components/dist/index"], + "@labkey/premium": ["../../../../clientAPIs/labkey-ui-premium/dist/index"], + }, + }, "include": ["src/client/**/*"], - "exclude": ["node_modules"] + "exclude": ["node_modules"], }