Skip to content

Commit e644d3b

Browse files
authored
Merge pull request #3155 from adumesny/master
exclude .spec.ts from build
2 parents c5026bb + ff5fda4 commit e644d3b

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
}
2626
],
2727
"scripts": {
28-
"build": "yarn --no-progress && yarn build:ng && grunt && webpack && tsc --stripInternal && yarn doc",
28+
"build": "yarn --no-progress && yarn build:ng && grunt && webpack && tsc --project tsconfig.build.json --stripInternal && yarn doc",
2929
"build:ng": "cd angular && yarn --no-progress && yarn build lib",
3030
"w": "webpack",
31-
"t": "rm -rf dist/* && grunt && tsc --stripInternal",
31+
"t": "rm -rf dist/* && grunt && tsc --project tsconfig.build.json --stripInternal",
3232
"doc": "doctoc ./README.md && doctoc ./doc/CHANGES.md && node scripts/generate-docs.js",
3333
"doc:main": "node scripts/generate-docs.js --main-only",
3434
"doc:angular": "node scripts/generate-docs.js --angular-only",

tsconfig.build.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"skipLibCheck": true
5+
},
6+
"include": [
7+
"./src/**/*.ts"
8+
],
9+
"exclude": [
10+
"./src/**/*.spec.ts",
11+
"./src/**/*.test.ts",
12+
"./spec/**/*",
13+
"./vitest.setup.ts",
14+
"./vitest.config.ts",
15+
"./angular/**/*",
16+
"./demo/**/*",
17+
"./node_modules/**/*"
18+
]
19+
}

0 commit comments

Comments
 (0)