File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 20
20
"module" : " build/esm/index.server.js" ,
21
21
"browser" : " build/esm/index.client.js" ,
22
22
"types" : " build/types/index.types.d.ts" ,
23
+ "//" : [
24
+ " For `@sentry/solidstart/solidrouter` types to resolve correctly for both `moduleResolution: bundler` and `moduleResolution: node`" ,
25
+ " - type definitions have to be exported at root level (/build won't work)" ,
26
+ " - type definitions have to match in name (i.e. `solidrouter.d.ts`)" ,
27
+ " - the `types` entry needs to be set both at the root of the export and within `browser` and `node`"
28
+ ],
23
29
"exports" : {
24
30
"./package.json" : " ./package.json" ,
25
31
"." : {
89
95
"build:types:watch" : " tsc -p tsconfig.types.json --watch" ,
90
96
"build:tarball" : " npm pack" ,
91
97
"circularDepCheck" : " madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts && madge --circular src/solidrouter.client.ts && madge --circular src/solidrouter.server.ts && madge --circular src/solidrouter.types.ts" ,
92
- "clean" : " rimraf build coverage sentry-solidstart-*.tgz ./*.d.ts ./*.d.ts.map ./client/*.d.ts ./client/*.d.ts.map ./ server/*d.ts ./server/*d.ts.map " ,
98
+ "clean" : " rimraf build coverage sentry-solidstart-*.tgz ./*.d.ts ./*.d.ts.map ./client ./server" ,
93
99
"fix" : " eslint . --format stylish --fix" ,
94
100
"lint" : " eslint . --format stylish" ,
95
101
"test" : " yarn test:unit" ,
You can’t perform that action at this time.
0 commit comments