Skip to content

Commit

Permalink
Simplify tsconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Sachs <[email protected]>
  • Loading branch information
paul-sachs committed Dec 4, 2024
1 parent 13a1881 commit 80da04c
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 27 deletions.
4 changes: 2 additions & 2 deletions packages/connect-query-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"scripts": {
"prebuild": "rm -rf ./dist/*",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc --project tsconfig.cjs.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.esm.json --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
"build:cjs": "tsc --project tsconfig.build.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
"test": "vitest --run",
"test:watch": "vitest --watch",
"format": "prettier --write --ignore-unknown '.' '!dist'",
Expand Down
4 changes: 4 additions & 0 deletions packages/connect-query-core/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": ["src/index.ts"]
}
4 changes: 0 additions & 4 deletions packages/connect-query-core/tsconfig.cjs.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages/connect-query-core/tsconfig.esm.json

This file was deleted.

3 changes: 1 addition & 2 deletions packages/connect-query-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"files": ["src/index.ts"],
"include": [
"**/*.test.ts",
"**/*.test.tsx",
"src/test/**.tsx",
"vite.config.ts"
],
"extends": "../../tsconfig.base.json"
"extends": "./tsconfig.build.json"
}
4 changes: 2 additions & 2 deletions packages/connect-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"scripts": {
"prebuild": "rm -rf ./dist/*",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc --project tsconfig.cjs.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.esm.json --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
"build:cjs": "tsc --project tsconfig.build.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
"test": "vitest --run",
"test:watch": "vitest --watch",
"format": "prettier --write --ignore-unknown '.' '!dist'",
Expand Down
7 changes: 7 additions & 0 deletions packages/connect-query/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"files": ["src/index.ts"],
"compilerOptions": {
"jsx": "react-jsx"
}
}
4 changes: 0 additions & 4 deletions packages/connect-query/tsconfig.cjs.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages/connect-query/tsconfig.esm.json

This file was deleted.

6 changes: 1 addition & 5 deletions packages/connect-query/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
{
"files": ["src/index.ts"],
"include": [
"**/*.test.ts",
"**/*.test.tsx",
"src/test/**.tsx",
"vite.config.ts"
],
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"jsx": "react-jsx"
}
"extends": "./tsconfig.build.json"
}

0 comments on commit 80da04c

Please sign in to comment.