Skip to content

Commit ba8f1d3

Browse files
committed
Fix type issue for solidstart package
1 parent 298dd2a commit ba8f1d3

File tree

3 files changed

+14
-36
lines changed

3 files changed

+14
-36
lines changed

packages/solidstart/package.json

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -23,47 +23,25 @@
2323
"exports": {
2424
"./package.json": "./package.json",
2525
".": {
26+
"types": "./build/types/index.types.d.ts",
2627
"browser": {
27-
"import": {
28-
"types": "./build/types/index.types.d.ts",
29-
"default": "./build/esm/index.client.js"
30-
},
31-
"require": {
32-
"types": "./build/types/index.types.d.ts",
33-
"default": "./build/cjs/index.client.js"
34-
}
28+
"import": "./build/esm/index.client.js",
29+
"require": "./build/cjs/index.client.js"
3530
},
3631
"node": {
37-
"import": {
38-
"types": "./build/types/index.types.d.ts",
39-
"default": "./build/esm/index.server.js"
40-
},
41-
"require": {
42-
"types": "./build/types/index.types.d.ts",
43-
"default": "./build/cjs/index.server.js"
44-
}
32+
"import": "./build/esm/index.server.js",
33+
"require": "./build/cjs/index.server.js"
4534
}
4635
},
4736
"./solidrouter": {
37+
"types": "./solidrouter.types.d.ts",
4838
"browser": {
49-
"import": {
50-
"types": "./solidrouter.types.d.ts",
51-
"default": "./build/esm/solidrouter.client.js"
52-
},
53-
"require": {
54-
"types": "./solidrouter.types.d.ts",
55-
"default": "./build/cjs/solidrouter.client.js"
56-
}
39+
"import": "./build/esm/solidrouter.client.js",
40+
"require": "./build/cjs/solidrouter.client.js"
5741
},
5842
"node": {
59-
"import": {
60-
"types": "./solidrouter.types.d.ts",
61-
"default": "./build/esm/solidrouter.server.js"
62-
},
63-
"require": {
64-
"types": "./solidrouter.types.d.ts",
65-
"default": "./build/cjs/solidrouter.server.js"
66-
}
43+
"import": "./build/esm/solidrouter.server.js",
44+
"require": "./build/cjs/solidrouter.server.js"
6745
}
6846
}
6947
},

packages/solidstart/tsconfig.solidrouter-types.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
"outDir": "./"
99
},
1010

11-
"//": "These types are built separately because they are for a subpath export, which has problems if they are not in the root",
11+
// These types are built separately because they are for a subpath export, which has problems if they are not in the root
1212
"include": [
1313
"src/solidrouter.client.ts",
1414
"src/client/solidrouter.ts",
1515
"src/solidrouter.server.ts",
1616
"src/server/solidrouter.ts",
17-
"src/solidrouter.types.ts"
17+
"src/solidrouter.types.ts",
1818
],
19-
"//": "Without this, we cannot output into the root dir",
19+
// Without this, we cannot output into the root dir
2020
"exclude": []
2121
}

packages/solidstart/tsconfig.types.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"outDir": "build/types"
99
},
1010

11-
"//": "These are built separately in tsconfig.solidrouter-types.json",
11+
// These are built separately in tsconfig.solidrouter-types.json
1212
"exclude": [
1313
"src/solidrouter.client.ts",
1414
"src/client/solidrouter.ts",

0 commit comments

Comments
 (0)