Skip to content

Commit fd2cd65

Browse files
fix: Simplify exports in solidjs packages (#5523)
1 parent c9ec5d9 commit fd2cd65

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

packages/query-devtools/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"url": "https://github.com/sponsors/tannerlinsley"
1212
},
1313
"type": "module",
14-
"types": "build/types/index.d.ts",
14+
"types": "build/lib/index.d.ts",
1515
"main": "build/lib/index.cjs",
1616
"module": "build/lib/index.js",
1717
"exports": {
1818
".": {
19-
"types": "./build/types/index.d.ts",
20-
"solid": "./build/source/index.jsx",
19+
"types": "./build/lib/index.d.ts",
20+
"solid": "./build/lib/index.js",
2121
"import": "./build/lib/index.js",
2222
"require": "./build/lib/index.cjs",
2323
"default": "./build/lib/index.cjs"
@@ -32,7 +32,7 @@
3232
"test:lib:dev": "pnpm run test:lib --watch",
3333
"build": "pnpm build:rollup && pnpm build:types",
3434
"build:rollup": "rollup --config rollup.config.js",
35-
"build:types": "tsc"
35+
"build:types": "tsc --emitDeclarationOnly"
3636
},
3737
"files": [
3838
"build",

packages/query-devtools/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"declarationDir": "./build/types",
54
"jsx": "preserve",
65
"jsxImportSource": "solid-js",
7-
"outDir": "./build/source",
6+
"outDir": "./build/lib",
87
"types": ["vitest/globals"]
98
},
109
"include": ["src"]

packages/solid-query/package.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,15 @@
1111
"url": "https://github.com/sponsors/tannerlinsley"
1212
},
1313
"type": "module",
14-
"types": "build/types/index.d.ts",
14+
"types": "build/lib/index.d.ts",
1515
"main": "build/lib/index.cjs",
1616
"module": "build/lib/index.js",
1717
"exports": {
1818
".": {
19-
"types": "./build/types/index.d.ts",
20-
"solid": "./build/source/index.js",
19+
"types": "./build/lib/index.d.ts",
20+
"solid": "./build/lib/index.js",
2121
"import": "./build/lib/index.js",
22-
"browser": {
23-
"import": "./build/lib/index.js",
24-
"require": "./build/lib/index.cjs"
25-
},
2622
"require": "./build/lib/index.cjs",
27-
"node": "./build/lib/index.cjs",
2823
"default": "./build/lib/index.cjs"
2924
},
3025
"./package.json": "./package.json"
@@ -40,7 +35,7 @@
4035
"test:lib:dev": "pnpm run test:lib --watch",
4136
"build": "pnpm build:rollup && pnpm build:types",
4237
"build:rollup": "rollup --config rollup.config.js",
43-
"build:types": "tsc"
38+
"build:types": "tsc --emitDeclarationOnly"
4439
},
4540
"files": [
4641
"build",

packages/solid-query/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"declarationDir": "./build/types",
54
"jsx": "preserve",
65
"jsxImportSource": "solid-js",
7-
"outDir": "./build/source",
6+
"outDir": "./build/lib",
87
"types": ["vitest/globals"]
98
},
109
"include": ["src"]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
2+
3+
const config = {
4+
preprocess: vitePreprocess(),
5+
}
6+
7+
export default config

0 commit comments

Comments
 (0)