Skip to content

Commit 0981ee0

Browse files
committed
First working version with bundler & node moduleResolution
1 parent ba8f1d3 commit 0981ee0

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

packages/solidstart/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@
3434
}
3535
},
3636
"./solidrouter": {
37-
"types": "./solidrouter.types.d.ts",
37+
"types": "./solidrouter.d.ts",
3838
"browser": {
39+
"types": "./solidrouter.d.ts",
3940
"import": "./build/esm/solidrouter.client.js",
4041
"require": "./build/cjs/solidrouter.client.js"
4142
},
4243
"node": {
44+
"types": "./solidrouter.d.ts",
4345
"import": "./build/esm/solidrouter.server.js",
4446
"require": "./build/cjs/solidrouter.server.js"
4547
}

packages/solidstart/rollup.npm.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default makeNPMConfigVariants(
1111
'src/client/solidrouter.ts',
1212
'src/server/index.ts',
1313
'src/server/solidrouter.ts',
14+
'src/solidrouter.ts',
1415
],
1516
// prevent this internal nextjs code from ending up in our built package (this doesn't happen automatially because
1617
// the name doesn't match an SDK dependency)

packages/solidstart/tsconfig.solidrouter-types.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"src/client/solidrouter.ts",
1515
"src/solidrouter.server.ts",
1616
"src/server/solidrouter.ts",
17-
"src/solidrouter.types.ts",
17+
"src/solidrouter.ts",
1818
],
1919
// Without this, we cannot output into the root dir
2020
"exclude": []

packages/solidstart/tsconfig.types.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"src/client/solidrouter.ts",
1515
"src/solidrouter.server.ts",
1616
"src/server/solidrouter.ts",
17-
"src/solidrouter.types.ts"
17+
"src/solidrouter.ts"
1818
]
1919
}

0 commit comments

Comments
 (0)