Skip to content

Commit

Permalink
fix: Simplify exports in solidjs packages (#5523)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jun 3, 2023
1 parent c9ec5d9 commit fd2cd65
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions packages/query-devtools/package.json
Expand Up @@ -11,13 +11,13 @@
"url": "https://github.com/sponsors/tannerlinsley"
},
"type": "module",
"types": "build/types/index.d.ts",
"types": "build/lib/index.d.ts",
"main": "build/lib/index.cjs",
"module": "build/lib/index.js",
"exports": {
".": {
"types": "./build/types/index.d.ts",
"solid": "./build/source/index.jsx",
"types": "./build/lib/index.d.ts",
"solid": "./build/lib/index.js",
"import": "./build/lib/index.js",
"require": "./build/lib/index.cjs",
"default": "./build/lib/index.cjs"
Expand All @@ -32,7 +32,7 @@
"test:lib:dev": "pnpm run test:lib --watch",
"build": "pnpm build:rollup && pnpm build:types",
"build:rollup": "rollup --config rollup.config.js",
"build:types": "tsc"
"build:types": "tsc --emitDeclarationOnly"
},
"files": [
"build",
Expand Down
3 changes: 1 addition & 2 deletions packages/query-devtools/tsconfig.json
@@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declarationDir": "./build/types",
"jsx": "preserve",
"jsxImportSource": "solid-js",
"outDir": "./build/source",
"outDir": "./build/lib",
"types": ["vitest/globals"]
},
"include": ["src"]
Expand Down
13 changes: 4 additions & 9 deletions packages/solid-query/package.json
Expand Up @@ -11,20 +11,15 @@
"url": "https://github.com/sponsors/tannerlinsley"
},
"type": "module",
"types": "build/types/index.d.ts",
"types": "build/lib/index.d.ts",
"main": "build/lib/index.cjs",
"module": "build/lib/index.js",
"exports": {
".": {
"types": "./build/types/index.d.ts",
"solid": "./build/source/index.js",
"types": "./build/lib/index.d.ts",
"solid": "./build/lib/index.js",
"import": "./build/lib/index.js",
"browser": {
"import": "./build/lib/index.js",
"require": "./build/lib/index.cjs"
},
"require": "./build/lib/index.cjs",
"node": "./build/lib/index.cjs",
"default": "./build/lib/index.cjs"
},
"./package.json": "./package.json"
Expand All @@ -40,7 +35,7 @@
"test:lib:dev": "pnpm run test:lib --watch",
"build": "pnpm build:rollup && pnpm build:types",
"build:rollup": "rollup --config rollup.config.js",
"build:types": "tsc"
"build:types": "tsc --emitDeclarationOnly"
},
"files": [
"build",
Expand Down
3 changes: 1 addition & 2 deletions packages/solid-query/tsconfig.json
@@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declarationDir": "./build/types",
"jsx": "preserve",
"jsxImportSource": "solid-js",
"outDir": "./build/source",
"outDir": "./build/lib",
"types": ["vitest/globals"]
},
"include": ["src"]
Expand Down
7 changes: 7 additions & 0 deletions packages/svelte-query-devtools/svelte.config.js
@@ -0,0 +1,7 @@
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'

const config = {
preprocess: vitePreprocess(),
}

export default config

0 comments on commit fd2cd65

Please sign in to comment.