diff --git a/packages/vike-solid-query/integration/+config.ts b/packages/vike-solid-query/integration/+config.ts index 9d20200..1f0d1fb 100644 --- a/packages/vike-solid-query/integration/+config.ts +++ b/packages/vike-solid-query/integration/+config.ts @@ -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: { diff --git a/packages/vike-solid-query/package.json b/packages/vike-solid-query/package.json index ed93160..e1c15ff 100644 --- a/packages/vike-solid-query/package.json +++ b/packages/vike-solid-query/package.json @@ -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" diff --git a/packages/vike-solid-query/rollup.config.js b/packages/vike-solid-query/rollup.config.js index 62c0b1e..eb0a945 100644 --- a/packages/vike-solid-query/rollup.config.js +++ b/packages/vike-solid-query/rollup.config.js @@ -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: { @@ -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()], }, ]; diff --git a/packages/vike-solid-query/tsconfig.json b/packages/vike-solid-query/tsconfig.json index fa6918f..97f8153 100644 --- a/packages/vike-solid-query/tsconfig.json +++ b/packages/vike-solid-query/tsconfig.json @@ -13,8 +13,6 @@ "isolatedModules": true, "outDir": "./dist", "declaration": true, - "skipLibCheck": true, - "rootDir": "./" - }, - "include": ["integration/", "types.d.ts"] + "skipLibCheck": true + } }