Skip to content

Commit 932e657

Browse files
committed
add paths to handle older ts versions in type tests
1 parent 2edab5c commit 932e657

File tree

7 files changed

+31
-7
lines changed

7 files changed

+31
-7
lines changed

Diff for: packages/cache/types/tsconfig.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
"strict": true,
1010
"target": "es5",
1111
"typeRoots": ["../"],
12-
"types": []
12+
"types": [],
13+
"paths": {
14+
"#is-browser": ["./src/conditions/true.ts"],
15+
"#is-development": ["./src/conditions/true.ts"]
16+
}
1317
},
1418
"include": ["./*.ts", "./*.tsx"]
1519
}

Diff for: packages/css/types/tsconfig.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"strict": true,
1010
"target": "es5",
1111
"typeRoots": ["../"],
12-
"types": []
12+
"types": [],
13+
"paths": {
14+
"#is-development": ["./src/conditions/true.ts"]
15+
}
1316
},
1417
"include": ["./*.ts", "./*.tsx"]
1518
}

Diff for: packages/react/types/tsconfig.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
"strict": true,
1010
"target": "es5",
1111
"typeRoots": ["../"],
12-
"types": []
12+
"types": [],
13+
"paths": {
14+
"#is-browser": ["./src/conditions/true.ts"],
15+
"#is-development": ["./src/conditions/true.ts"]
16+
}
1317
},
1418
"include": ["./*.ts", "./*.tsx"],
1519
"exclude": ["./css-prop.d.ts"]

Diff for: packages/serialize/types/tsconfig.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"strict": true,
1010
"target": "es5",
1111
"typeRoots": ["../"],
12-
"types": []
12+
"types": [],
13+
"paths": {
14+
"#is-development": ["./src/conditions/true.ts"]
15+
}
1316
},
1417
"include": ["./*.ts", "./*.tsx"]
1518
}

Diff for: packages/sheet/types/tsconfig.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"strict": true,
1010
"target": "es5",
1111
"typeRoots": ["../"],
12-
"types": []
12+
"types": [],
13+
"paths": {
14+
"#is-development": ["./src/conditions/true.ts"]
15+
}
1316
},
1417
"include": ["./*.ts", "./*.tsx"]
1518
}

Diff for: packages/styled/types/tsconfig.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
"strict": true,
1111
"target": "es5",
1212
"typeRoots": ["../"],
13-
"types": []
13+
"types": [],
14+
"paths": {
15+
"#is-browser": ["./src/conditions/true.ts"],
16+
"#is-development": ["./src/conditions/true.ts"]
17+
}
1418
},
1519
"include": ["./*.ts", "./*.tsx"]
1620
}

Diff for: packages/utils/types/tsconfig.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"strict": true,
1010
"target": "es5",
1111
"typeRoots": ["../"],
12-
"types": []
12+
"types": [],
13+
"paths": {
14+
"#is-browser": ["./src/conditions/true.ts"]
15+
}
1316
},
1417
"include": ["./*.ts", "./*.tsx"]
1518
}

0 commit comments

Comments
 (0)