Skip to content

Commit

Permalink
fix(vike-solid-query): Build everything using rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
phonzammi committed Sep 25, 2024
1 parent 21483db commit 01e0751
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/vike-solid-query/integration/+config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
require: {
"vike-solid": ">=0.7.4",
},
Wrapper: "import:vike-solid-query/__internal/integration/Wrapper:default",
Wrapper: "import:./Wrapper.js:default",
queryClientConfig: {
defaultOptions: {
queries: {
Expand Down
5 changes: 2 additions & 3 deletions packages/vike-solid-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
"default": "./dist/src/index.js",
"types": "./dist/src/index.d.ts"
},
"./config": "./dist/integration/+config.js",
"./__internal/integration/Wrapper": "./dist/integration/Wrapper.jsx"
"./config": "./dist/integration/+config.js"
},
"scripts": {
"dev": "rollup -c rollup.config.js --watch",
"dev:typecheck": "tsc --noEmit --watch",
"build": "rollup -c rollup.config.js && tsc",
"build": "tsc --noEmit && rollup -c rollup.config.js",
"release": "LANG=en_US release-me patch",
"release:minor": "LANG=en_US release-me minor",
"release:commit": "LANG=en_US release-me commit"
Expand Down
8 changes: 5 additions & 3 deletions packages/vike-solid-query/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ export default [
withSolid({
input: {
"src/server": "./src/index.ts",
"integration/+config": "./integration/+config.ts",
"integration/Wrapper": "./integration/Wrapper.tsx",
},
ssr: true,
external: [],
external: ["vike-solid/usePageContext"],
}),
withSolid({
input: {
Expand All @@ -17,8 +19,8 @@ export default [
external: [],
}),
{
input: ["./src/index.ts"],
output: [{ dir: "dist/src", format: "es", sanitizeFileName: false }],
input: ["./src/index.ts", "./integration/+config.ts", "./integration/Wrapper.tsx"],
output: [{ dir: "dist", format: "es", sanitizeFileName: false }],
plugins: [dts()],
},
];
6 changes: 2 additions & 4 deletions packages/vike-solid-query/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"isolatedModules": true,
"outDir": "./dist",
"declaration": true,
"skipLibCheck": true,
"rootDir": "./"
},
"include": ["integration/", "types.d.ts"]
"skipLibCheck": true
}
}

0 comments on commit 01e0751

Please sign in to comment.