Skip to content

Commit

Permalink
fix: generate declarations to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianOsipiuk committed Jul 26, 2022
1 parent c46a921 commit 050870c
Show file tree
Hide file tree
Showing 16 changed files with 690 additions and 694 deletions.
1,240 changes: 613 additions & 627 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/query-async-storage-persister/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"module": "build/lib/index.mjs",
"main": "build/lib/index.js",
"browser": "build/umd/index.production.js",
"types": "build/types/packages/query-async-storage-persister/src/index.d.ts",
"types": "build/lib/index.d.ts",
"exports": {
".": {
"types": "./build/lib/index.d.ts",
"import": "./build/lib/index.mjs",
"default": "./build/lib/index.js"
},
Expand All @@ -24,7 +25,6 @@
"files": [
"build/lib/*",
"build/umd/*",
"build/types/*",
"src"
],
"scripts": {
Expand Down
14 changes: 10 additions & 4 deletions packages/query-async-storage-persister/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
"composite": true,
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./build/types"
"composite": true,
"rootDir": "./src",
"outDir": "./build/lib",
"tsBuildInfoFile": "./build/.tsbuildinfo"
},
"files": ["src/index.ts"],
"include": ["src"]
"include": ["src"],
"exclude": ["src/__tests__"],
"references": [
{ "path": "../query-core" },
{ "path": "../react-query-persist-client" }
]
}
4 changes: 2 additions & 2 deletions packages/query-broadcast-client-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"module": "build/lib/index.mjs",
"main": "build/lib/index.js",
"browser": "build/umd/index.production.js",
"types": "build/types/query-broadcast-client-experimental/src/index.d.ts",
"types": "build/lib/index.d.ts",
"exports": {
".": {
"types": "./build/lib/index.d.ts",
"import": "./build/lib/index.mjs",
"default": "./build/lib/index.js"
},
Expand All @@ -24,7 +25,6 @@
"files": [
"build/lib/*",
"build/umd/*",
"build/types/*",
"src"
],
"scripts": {
Expand Down
11 changes: 7 additions & 4 deletions packages/query-broadcast-client-experimental/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"composite": true,
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./build/types"
"composite": true,
"rootDir": "./src",
"outDir": "./build/lib",
"tsBuildInfoFile": "./build/.tsbuildinfo"
},
"files": ["src/index.ts"],
"include": ["src"]
"include": ["src"],
"exclude": ["src/__tests__"],
"references": [{ "path": "../query-core" }]
}
25 changes: 0 additions & 25 deletions packages/query-broadcast-client-experimental/yarn.lock

This file was deleted.

4 changes: 2 additions & 2 deletions packages/query-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"module": "build/lib/index.mjs",
"main": "build/lib/index.js",
"browser": "build/umd/index.production.js",
"types": "build/types/packages/query-core/src/index.d.ts",
"types": "build/lib/index.d.ts",
"exports": {
".": {
"types": "./build/lib/index.d.ts",
"import": "./build/lib/index.mjs",
"default": "./build/lib/index.js"
},
Expand All @@ -24,7 +25,6 @@
"files": [
"build/lib/*",
"build/umd/*",
"build/types/*",
"src"
],
"scripts": {
Expand Down
10 changes: 6 additions & 4 deletions packages/query-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"composite": true,
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./build/types"
"composite": true,
"rootDir": "./src",
"outDir": "./build/lib",
"tsBuildInfoFile": "./build/.tsbuildinfo"
},
"files": ["src/index.ts"],
"include": ["src"]
"include": ["src"],
"exclude": ["src/tests"]
}
4 changes: 2 additions & 2 deletions packages/query-sync-storage-persister/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"module": "build/lib/index.mjs",
"main": "build/lib/index.js",
"browser": "build/umd/index.production.js",
"types": "build/types/packages/query-sync-storage-persister/src/index.d.ts",
"types": "build/lib/index.d.ts",
"exports": {
".": {
"types": "./build/lib/index.d.ts",
"import": "./build/lib/index.mjs",
"default": "./build/lib/index.js"
},
Expand All @@ -24,7 +25,6 @@
"files": [
"build/lib/*",
"build/umd/*",
"build/types/*",
"src"
],
"scripts": {
Expand Down
13 changes: 9 additions & 4 deletions packages/query-sync-storage-persister/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"composite": true,
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./build/types"
"composite": true,
"rootDir": "./src",
"outDir": "./build/lib",
"tsBuildInfoFile": "./build/.tsbuildinfo"
},
"files": ["src/index.ts"],
"include": ["src"]
"include": ["src"],
"exclude": ["src/__tests__"],
"references": [
{ "path": "../react-query-persist-client" }
]
}
6 changes: 4 additions & 2 deletions packages/react-query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,27 @@
"module": "build/lib/index.mjs",
"main": "build/lib/index.js",
"browser": "build/umd/index.production.js",
"types": "build/types/react-query-devtools/src/index.d.ts",
"types": "build/lib/index.d.ts",
"files": [
"build/lib/*",
"build/umd/*",
"build/types/*",
"src"
],
"exports": {
".": {
"development": {
"types": "./build/lib/index.d.ts",
"require": "./build/lib/index.js",
"default": "./build/lib/index.mjs"
},
"default": {
"types": "./build/lib/index.d.ts",
"require": "./build/lib/noop.js",
"default": "./build/lib/noop.mjs"
}
},
"./devtools": {
"types": "./build/lib/index.d.ts",
"import": "./build/lib/index.mjs",
"default": "./build/lib/index.js"
},
Expand Down
14 changes: 10 additions & 4 deletions packages/react-query-devtools/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
"composite": true,
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./build/types"
"composite": true,
"rootDir": "./src",
"outDir": "./build/lib",
"tsBuildInfoFile": "./build/.tsbuildinfo"
},
"files": ["src/index.ts"],
"include": ["src"]
"include": ["src"],
"exclude": ["src/__tests__"],
"references": [
{ "path": "../query-core" },
{ "path": "../react-query-persist-client" }
]
}
4 changes: 2 additions & 2 deletions packages/react-query-persist-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"module": "build/lib/index.mjs",
"main": "build/lib/index.js",
"browser": "build/umd/index.production.js",
"types": "build/types/packages/react-query-persist-client/src/index.d.ts",
"types": "build/lib/index.d.ts",
"exports": {
".": {
"types": "./build/lib/index.d.ts",
"import": "./build/lib/index.mjs",
"default": "./build/lib/index.js"
},
Expand All @@ -24,7 +25,6 @@
"files": [
"build/lib/*",
"build/umd/*",
"build/types/*",
"src"
],
"scripts": {
Expand Down
14 changes: 10 additions & 4 deletions packages/react-query-persist-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
"composite": true,
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./build/types"
"composite": true,
"rootDir": "./src",
"outDir": "./build/lib",
"tsBuildInfoFile": "./build/.tsbuildinfo"
},
"files": ["src/index.ts"],
"include": ["src"]
"include": ["src"],
"exclude": ["src/__tests__"],
"references": [
{ "path": "../query-core" },
{ "path": "../react-query" }
]
}
4 changes: 2 additions & 2 deletions packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"module": "build/lib/index.mjs",
"main": "build/lib/index.js",
"browser": "build/umd/index.production.js",
"types": "build/types/packages/react-query/src/index.d.ts",
"types": "build/lib/index.d.ts",
"exports": {
".": {
"types": "./build/lib/index.d.ts",
"import": "./build/lib/index.mjs",
"default": "./build/lib/index.js"
},
Expand All @@ -34,7 +35,6 @@
"files": [
"build/lib/*",
"build/umd/*",
"build/types/*",
"src",
"codemods",
"!codemods/jest.config.js",
Expand Down
13 changes: 9 additions & 4 deletions packages/react-query/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"composite": true,
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./build/types"
"composite": true,
"rootDir": "./src",
"outDir": "./build/lib",
"tsBuildInfoFile": "./build/.tsbuildinfo"
},
"files": ["src/index.ts"],
"include": ["src"]
"include": ["src"],
"exclude": ["src/__tests__"],
"references": [
{ "path": "../query-core" }
]
}

0 comments on commit 050870c

Please sign in to comment.