Skip to content

Commit 230a9d4

Browse files
committed
chore: run compat tests on compiled output
1 parent db86453 commit 230a9d4

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build": "pnpm run /^build:/",
1010
"build:lib": "ng build lib",
1111
"build:demo": "ng build demo",
12+
"pretest": "pnpm build:lib",
1213
"test": "pnpm run /^test:/",
1314
"test:lib": "ng test lib",
1415
"test:demo": "ng test demo",

tests/v21/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, inject } from '@angular/core';
2-
import { AngularMaterialRuntimeTheme } from 'lib';
2+
import { AngularMaterialRuntimeTheme } from 'lib-dist';
33

44
@Component({
55
selector: 'app-root',

tests/v22/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, inject } from '@angular/core';
2-
import { AngularMaterialRuntimeTheme } from 'lib';
2+
import { AngularMaterialRuntimeTheme } from 'lib-dist';
33

44
@Component({
55
selector: 'app-root',

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"noImplicitOverride": true,
99
"noPropertyAccessFromIndexSignature": true,
1010
"paths": {
11-
"lib": ["./projects/lib/src/public-api.ts"]
11+
"lib": ["./projects/lib/src/public-api.ts"],
12+
"lib-dist": ["./dist/lib"]
1213
},
1314
"noImplicitReturns": true,
1415
"noFallthroughCasesInSwitch": true,

0 commit comments

Comments
 (0)