Skip to content

Commit f336c94

Browse files
committed
fix compile for angular-v11
1 parent 4815f2d commit f336c94

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,4 @@ build-harmony/yarn.lock
102102
!.yarn/plugins
103103
!.yarn/sdks
104104
!.yarn/versions
105+

packages/angular-v11/angular-v11.env.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ export class AngularV11Env extends AngularEnv {
7676
peerDependencies: {
7777
'@angular/common': '~11.2.14',
7878
'@angular/core': '~11.2.14',
79+
'@angular/platform-browser': '~11.2.14',
80+
'@angular/platform-browser-dynamic': '~11.2.14',
7981
rxjs: '^6.6.3',
8082
'zone.js': '^0.11.0',
8183
typescript: '~4.1.5',

packages/angular-v11/angular-v11.main.runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class AngularV11Main extends AngularMain {
1313
workspace,
1414
compositions,
1515
envs,
16-
]: AngularDeps) {
16+
]: AngularDeps): Promise<AngularMain> {
1717
const angularV11Env = new AngularV11Env(
1818
jestAspect,
1919
compiler,

packages/angular-v11/component.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@angular/platform-browser-dynamic": "~11.2.14",
2727
"@angular/router": "~11.2.14",
2828
"@ngtools/webpack": "~11.2.13",
29+
"html-loader": "~2.1.2",
2930
"ng-packagr": "~11.2.4",
3031
"react-dev-utils": "10.2.1",
3132
"remark": "~13.0.0",

workspace.jsonc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,13 @@
7878
},
7979
"teambit.generator/generator": {
8080
"aspects": [
81-
"teambit.angular/angular-v12"
81+
"teambit.angular/angular-v12",
82+
"teambit.angular/angular-v11"
8283
]
8384
},
84-
// Add angular v12 templates to the list
85+
// Add angular templates to the list
8586
"teambit.angular/angular-v12": {},
87+
"teambit.angular/angular-v11": {},
8688
/**
8789
* workspace variants allow you to set different subsets of configuration for components in your workspace.
8890
* this is extremely useful for upgrading, aligning and building components with a

0 commit comments

Comments
 (0)