Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
fix(bundle): Fixes imports between submodules in the compiled bundle.
Browse files Browse the repository at this point in the history
  • Loading branch information
ffriedl89 committed Jul 28, 2020
1 parent 9c7c728 commit edf2a81
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@
"packagr": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "libs/barista-components/tsconfig.json",
"tsConfig": "libs/barista-components/tsconfig.lib.json",
"project": "libs/barista-components/ng-package.json"
}
},
Expand Down
15 changes: 15 additions & 0 deletions libs/barista-components/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"baseUrl": ".",
/* The root dirs here are essential to have the correct
imports between modules for the packagr */
"rootDirs": [".", "../../dist/libs/components"],
"target": "es2015",
"declaration": true,
"inlineSources": true,
"types": [],
"lib": ["dom", "es2018"]
}
}

0 comments on commit edf2a81

Please sign in to comment.