Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Change svelte-package output directory #5561

Merged
merged 2 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@
"./package.json": "./package.json"
},
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc --noEmit",
"test:lib": "vitest run --coverage",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "pnpm build:rollup",
"build:rollup": "rollup --config rollup.config.js"
"build": "rollup --config rollup.config.js"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/query-devtools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "solid-js",
"outDir": "./build/lib",
"outDir": "./dist",
"types": ["vitest/globals"]
},
"include": ["src"]
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-query-devtools/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const config = {
project: './tsconfig.json',
extraFileExtensions: ['.svelte'],
},
ignorePatterns: ['*.config.*', '*.setup.*', '**/build/*'],
ignorePatterns: ['*.config.*', '*.setup.*', '**/dist/*'],
overrides: [
{
files: ['*.svelte'],
Expand Down
20 changes: 10 additions & 10 deletions packages/svelte-query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@
"url": "https://github.com/sponsors/tannerlinsley"
},
"type": "module",
"types": "build/lib/index.d.ts",
"module": "build/lib/index.js",
"svelte": "./build/lib/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"svelte": "./dist/index.js",
"exports": {
".": {
"types": "./build/lib/index.d.ts",
"svelte": "./build/lib/index.js",
"import": "./build/lib/index.js",
"default": "./build/lib/index.js"
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"files": [
"build/lib",
"dist",
"src"
],
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"clean": "rimraf ./dist && rimraf ./coverage",
"test:types": "svelte-check --tsconfig ./tsconfig.json",
"test:eslint": "eslint --ext .svelte,.ts ./src",
"test:build": "publint --strict",
"build": "svelte-package --input ./src --output ./build/lib"
"build": "svelte-package --input ./src --output ./dist"
},
"dependencies": {
"@tanstack/query-devtools": "^5.0.0-alpha.43",
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-query/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const config = {
project: './tsconfig.json',
extraFileExtensions: ['.svelte'],
},
ignorePatterns: ['*.config.*', '*.setup.*', '**/build/*'],
ignorePatterns: ['*.config.*', '*.setup.*', '**/dist/*'],
overrides: [
{
files: ['*.svelte'],
Expand Down
22 changes: 11 additions & 11 deletions packages/svelte-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@
"url": "https://github.com/sponsors/tannerlinsley"
},
"type": "module",
"types": "build/lib/index.d.ts",
"module": "build/lib/index.js",
"svelte": "./build/lib/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"svelte": "./dist/index.js",
"exports": {
".": {
"types": "./build/lib/index.d.ts",
"svelte": "./build/lib/index.js",
"import": "./build/lib/index.js",
"default": "./build/lib/index.js"
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"files": [
"build/lib",
"dist",
"src",
"!build/lib/__tests__",
"!dist/__tests__",
"!src/__tests__"
],
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"clean": "rimraf ./dist && rimraf ./coverage",
"test:types": "svelte-check --tsconfig ./tsconfig.json",
"test:eslint": "eslint --ext .svelte,.ts ./src",
"test:lib": "vitest run --coverage",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"build": "svelte-package --input ./src --output ./build/lib"
"build": "svelte-package --input ./src --output ./dist"
},
"dependencies": {
"@tanstack/query-core": "^5.0.0-alpha.43"
Expand Down