From 42245612d21beafa86b2a3e9cc9571c13eb92d99 Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Tue, 30 Jan 2024 11:00:16 +0100 Subject: [PATCH] ERROR: Trying to publish a package that has been compiled by Ivy in full compilation mode --- projects/common-map/tsconfig.lib.json | 13 ++++++++++-- projects/common-map3d/tsconfig.lib.json | 13 ++++++++++-- projects/common/tsconfig.lib.json | 3 ++- projects/ngx-openlayers/tsconfig.lib.json | 24 +++++------------------ 4 files changed, 29 insertions(+), 24 deletions(-) diff --git a/projects/common-map/tsconfig.lib.json b/projects/common-map/tsconfig.lib.json index 8c775b0..d8b6e76 100644 --- a/projects/common-map/tsconfig.lib.json +++ b/projects/common-map/tsconfig.lib.json @@ -10,18 +10,27 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, + "esModuleInterop": true, "types": [], "lib": [ "dom", "es2018" - ] + ], + "paths": { + "@angular/*": [ + + "node_modules/@angular/*" + + ] + } }, "angularCompilerOptions": { "skipTemplateCodegen": true, "strictMetadataEmit": true, "fullTemplateTypeCheck": true, "strictInjectionParameters": true, - "enableResourceInlining": true + "enableResourceInlining": true, + "compilationMode": "partial" }, "exclude": [ "src/test.ts", diff --git a/projects/common-map3d/tsconfig.lib.json b/projects/common-map3d/tsconfig.lib.json index a78ed73..cfb0d6c 100644 --- a/projects/common-map3d/tsconfig.lib.json +++ b/projects/common-map3d/tsconfig.lib.json @@ -11,18 +11,27 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, + "esModuleInterop": true, "types": [], "lib": [ "dom", "es2018" - ] + ], + "paths": { + "@angular/*": [ + + "node_modules/@angular/*" + + ] + } }, "angularCompilerOptions": { "skipTemplateCodegen": true, "strictMetadataEmit": true, "fullTemplateTypeCheck": true, "strictInjectionParameters": true, - "enableResourceInlining": true + "enableResourceInlining": true, + "compilationMode": "partial" }, "exclude": [ "src/test.ts", diff --git a/projects/common/tsconfig.lib.json b/projects/common/tsconfig.lib.json index 59954cd..d9507c7 100644 --- a/projects/common/tsconfig.lib.json +++ b/projects/common/tsconfig.lib.json @@ -29,7 +29,8 @@ "strictMetadataEmit": true, "fullTemplateTypeCheck": true, "strictInjectionParameters": true, - "enableResourceInlining": true + "enableResourceInlining": true, + "compilationMode": "partial" }, "exclude": [ "src/test.ts", diff --git a/projects/ngx-openlayers/tsconfig.lib.json b/projects/ngx-openlayers/tsconfig.lib.json index 773f568..6330633 100644 --- a/projects/ngx-openlayers/tsconfig.lib.json +++ b/projects/ngx-openlayers/tsconfig.lib.json @@ -1,23 +1,9 @@ { - "extends": "../../tsconfig.json", + "extends": "./tsconfig.lib.json", "compilerOptions": { - "outDir": "../../out-tsc/lib", - "declarationMap": true, - "declaration": true, - "inlineSources": true, - "types": [], - "lib": [ - "dom", - "es2020" - ] + "declarationMap": false }, "angularCompilerOptions": { - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "enableResourceInlining": true - }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] -} + "compilationMode": "partial" + } +} \ No newline at end of file