Skip to content

Commit 96c672a

Browse files
committed
fix: add sources to published dist, migrate to tstyche, clean tsd
1 parent 8e24105 commit 96c672a

7 files changed

Lines changed: 349 additions & 888 deletions

File tree

‎packages/core/package.json‎

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"files": [
2727
"dist/",
2828
"!dist/test",
29-
"test-d/"
29+
"test-d/",
30+
"src"
3031
],
3132
"scripts": {
3233
"build": "tsc -p tsconfig.json",
@@ -38,7 +39,8 @@
3839
"test:e2e": "playwright test -c ../../playwright.config.ts",
3940
"test:e2e:dev": "playwright test -c ../../playwright.config.ts --ui",
4041
"test:e2e:headed": "playwright test -c ../../playwright.config.ts --headed",
41-
"test:types": "tsd -t test-d/index.test-entry.ts -f 'test-d/**/*.test-d.ts'",
42+
"test:types": "tstyche",
43+
"test:types:watch": "tstyche --watch",
4244
"test:unit": "c8 --reporter=html node --test 'dist/test/**/*.test.js'",
4345
"wea:generate": "wea-generate"
4446
},
@@ -57,7 +59,7 @@
5759
"c8": "^10.1.3",
5860
"jsx-forge": "0.4.0-next.1",
5961
"ts-patch": "^3.3.0",
60-
"tsd": "^0.33.0",
62+
"tstyche": "^7.1.0",
6163
"web-elements-analyzer": "0.0.0"
6264
},
6365
"peerDependencies": {
@@ -79,32 +81,5 @@
7981
"publishConfig": {
8082
"access": "public"
8183
},
82-
"customElements": "custom-elements.json",
83-
"tsd": {
84-
"compilerOptions": {
85-
"baseUrl": "../..",
86-
"jsx": "react-native",
87-
"jsxImportSource": "jsx-forge",
88-
"skipLibCheck": true,
89-
"strict": true,
90-
"target": "ES2022",
91-
"module": "preserve",
92-
"moduleResolution": "bundler",
93-
"paths": {
94-
"jsx-forge/jsx-runtime": [
95-
"packages/core/test-d/shims/jsx-forge-jsx-runtime.d.ts"
96-
]
97-
},
98-
"types": [
99-
"node",
100-
"packages/core/src/_ambient/css-modules.d.ts",
101-
"packages/core/src/_ambient/web-elements.d.ts"
102-
],
103-
"lib": [
104-
"ES2022",
105-
"DOM",
106-
"DOM.Iterable"
107-
]
108-
}
109-
}
84+
"customElements": "custom-elements.json"
11085
}

‎packages/core/test-d/index.test-entry.ts‎

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)