Skip to content

Commit f67cf73

Browse files
authored
build: exclude tests from dist (#519)
1 parent 2225215 commit f67cf73

File tree

102 files changed

+514
-90
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+514
-90
lines changed

packages/api-console-module/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,14 @@
5151
"rxjs": "~7.5.0"
5252
},
5353
"jest": {
54+
"testEnvironment": "node",
5455
"transform": {
55-
"^.+\\.(ts|tsx)$": "ts-jest"
56+
"^.+\\.(ts|tsx)$": [
57+
"ts-jest",
58+
{
59+
"tsconfig": "<rootDir>/tsconfig.spec.json"
60+
}
61+
]
5662
},
5763
"moduleNameMapper": {
5864
"(.+)\\.js": "$1"

packages/api-console-module/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"index.ts",
2323
"node_modules/@deepkit/api-console-gui/src/api.ts"
2424
],
25+
"exclude": [
26+
"tests"
27+
],
2528
"references": [
2629
{
2730
"path": "../api-console-api/tsconfig.json"

packages/rpc/tsconfig.test.json renamed to packages/api-console-module/tsconfig.spec.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"target": "es2020"
5-
},
63
"include": [
74
"src",
85
"index.ts",

packages/app/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@
4242
"conditional-type-checks": "^1.0.5"
4343
},
4444
"jest": {
45+
"testEnvironment": "node",
4546
"transform": {
46-
"^.+\\.(ts|tsx)$": "ts-jest"
47+
"^.+\\.(ts|tsx)$": [
48+
"ts-jest",
49+
{
50+
"tsconfig": "<rootDir>/tsconfig.spec.json"
51+
}
52+
]
4753
},
4854
"moduleNameMapper": {
4955
"(.+)\\.js": "$1"

packages/app/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"src",
2323
"index.ts"
2424
],
25+
"exclude": [
26+
"tests"
27+
],
2528
"references": [
2629
{
2730
"path": "../core/tsconfig.json"

packages/type-compiler/tsconfig.test.json renamed to packages/app/tsconfig.spec.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"target": "es2020"
5-
},
63
"include": [
74
"src",
85
"index.ts",

packages/broker/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,14 @@
4444
"@deepkit/type": "^1.0.1-alpha.113"
4545
},
4646
"jest": {
47+
"testEnvironment": "node",
4748
"transform": {
48-
"^.+\\.(ts|tsx)$": "ts-jest"
49+
"^.+\\.(ts|tsx)$": [
50+
"ts-jest",
51+
{
52+
"tsconfig": "<rootDir>/tsconfig.spec.json"
53+
}
54+
]
4955
},
5056
"moduleNameMapper": {
5157
"(.+)\\.js": "$1"

packages/broker/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
"reflection": true,
2020
"include": [
2121
"src",
22-
"tests",
2322
"index.ts"
2423
],
24+
"exclude": [
25+
"tests"
26+
],
2527
"references": [
2628
{
2729
"path": "../bson/tsconfig.json"

packages/type-spec/tsconfig.test.json renamed to packages/broker/tsconfig.spec.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"target": "es2020"
5-
},
63
"include": [
74
"src",
85
"index.ts",

packages/bson/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@
3737
"jest": {
3838
"testEnvironment": "node",
3939
"transform": {
40-
"^.+\\.(ts|tsx)$": "ts-jest"
40+
"^.+\\.(ts|tsx)$": [
41+
"ts-jest",
42+
{
43+
"tsconfig": "<rootDir>/tsconfig.spec.json"
44+
}
45+
]
4146
},
4247
"moduleNameMapper": {
4348
"(.+)\\.js": "$1"

0 commit comments

Comments
 (0)