Skip to content

Commit

Permalink
Revert "build: Add custom export condition for source files for types…
Browse files Browse the repository at this point in the history
…cript"

This reverts commit 1a9c0e5.
  • Loading branch information
thetarnav committed Jan 1, 2025
1 parent b8dd086 commit 0bee80d
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 37 deletions.
7 changes: 1 addition & 6 deletions extension/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,5 @@
"compilerOptions": {
"outDir": "dist",
},
"include": ["src/**/*"],
"references": [
{"path": "../packages/shared"},
{"path": "../packages/frontend"},
{"path": "../packages/debugger"},
],
"include": ["src/**/*"]
}
15 changes: 9 additions & 6 deletions packages/debugger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,27 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"@solid-devtools/source": "./src/index.ts",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./bundled": {
"@solid-devtools/source": "./src/index.ts",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/bundled.js"
}
},
"./*": {
"@solid-devtools/source": "./src/*.ts",
"./types": {
"import": {
"types": "./dist/*.d.ts",
"default": "./dist/*.js"
"types": "./dist/types.d.ts",
"default": "./dist/types.js"
}
},
"./setup": {
"import": {
"types": "./dist/setup.d.ts",
"default": "./dist/setup.js"
}
}
},
Expand Down
10 changes: 0 additions & 10 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"@solid-devtools/source": "./src/index.tsx",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./dist/styles.css": "./dist/styles.css"
},
"dependencies": {
"@nothing-but/utils": "~0.17.0",
"@solid-devtools/debugger": "workspace:^",
Expand Down
1 change: 0 additions & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"module": "./dist/server.js",
"types": "./dist/index.d.ts",
"exports": {
"@solid-devtools/source": "./src/index.ts",
"browser": {
"development": {
"import": "./dist/index.js",
Expand Down
4 changes: 0 additions & 4 deletions packages/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"@solid-devtools/source": "./src/index.ts",
"browser": {
"development": {
"import": {
Expand All @@ -46,7 +45,6 @@
}
},
"./setup": {
"@solid-devtools/source": "./src/setup.ts",
"browser": {
"development": {
"import": {
Expand All @@ -65,14 +63,12 @@
}
},
"./vite": {
"@solid-devtools/source": "./src/vite.ts",
"import": {
"types": "./dist/vite.d.ts",
"default": "./dist/vite.js"
}
},
"./babel": {
"@solid-devtools/source": "./src/babel.ts",
"import": {
"types": "./dist/babel.d.ts",
"default": "./dist/babel.js"
Expand Down
1 change: 0 additions & 1 deletion packages/overlay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"module": "./dist/index_noop.js",
"types": "./dist/index.d.ts",
"exports": {
"@solid-devtools/source": "./src/index.tsx",
"browser": {
"development": {
"types": "./dist/index.d.ts",
Expand Down
26 changes: 21 additions & 5 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,32 @@
"exports": {
".": {
"import": {
"@solid-devtools/source": "./src/index.ts",
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./*": {
"./detect": {
"import": {
"@solid-devtools/source": "./src/*.ts",
"types": "./dist/*.d.ts",
"default": "./dist/*.js"
"types": "./dist/detect.d.ts",
"default": "./dist/detect.js"
}
},
"./primitives": {
"import": {
"types": "./dist/primitives.d.ts",
"default": "./dist/primitives.js"
}
},
"./utils": {
"import": {
"types": "./dist/utils.d.ts",
"default": "./dist/utils.js"
}
},
"./theme": {
"import": {
"types": "./dist/theme.d.ts",
"default": "./dist/theme.js"
}
}
},
Expand Down
4 changes: 0 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
"lib": ["DOM", "DOM.Iterable", "DOM.AsyncIterable", "ESNext"],
"jsx": "preserve",
"jsxImportSource": "solid-js",
/*
Use source files locally
*/
"customConditions": ["@solid-devtools/source"],
/*
Checking
*/
Expand Down

0 comments on commit 0bee80d

Please sign in to comment.