Skip to content

Commit f2741d1

Browse files
authoredJul 5, 2024··
fix: Update package.json fields (#7674)
1 parent 70c40e7 commit f2741d1

File tree

24 files changed

+552
-395
lines changed

24 files changed

+552
-395
lines changed
 

‎package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "query",
2+
"name": "root",
33
"private": true,
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/TanStack/query.git"
77
},
8-
"packageManager": "pnpm@9.3.0",
8+
"packageManager": "pnpm@9.4.0",
99
"type": "module",
1010
"scripts": {
1111
"clean": "pnpm --filter \"./packages/**\" run clean",
@@ -38,9 +38,8 @@
3838
"test:knip"
3939
]
4040
},
41-
"namespace": "@tanstack",
4241
"devDependencies": {
43-
"@arethetypeswrong/cli": "^0.16.0",
42+
"@arethetypeswrong/cli": "^0.15.3",
4443
"@cspell/eslint-plugin": "^8.9.1",
4544
"@eslint-react/eslint-plugin": "^1.5.16",
4645
"@solidjs/testing-library": "^0.8.8",

‎packages/angular-query-devtools-experimental/package.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
"type": "github",
1515
"url": "https://github.com/sponsors/tannerlinsley"
1616
},
17-
"type": "module",
18-
"sideEffects": false,
19-
"files": [
20-
"build"
21-
],
2217
"scripts": {
2318
"clean": "rimraf ./build && rimraf ./coverage",
2419
"test:eslint": "eslint ./src",
@@ -29,6 +24,24 @@
2924
"test:build": "publint --strict && attw --pack",
3025
"build": "ng-packagr -p ng-package.json -c tsconfig.build.json && rimraf ./build/package.json"
3126
},
27+
"type": "module",
28+
"types": "build/index.d.ts",
29+
"module": "build/fesm2022/tanstack-angular-query-devtools-experimental.mjs",
30+
"exports": {
31+
".": {
32+
"types": "./build/index.d.ts",
33+
"esm2022": "./build/esm2022/tanstack-angular-query-devtools-experimental.mjs",
34+
"esm": "./build/esm2022/tanstack-angular-query-devtools-experimental.mjs",
35+
"default": "./build/fesm2022/tanstack-angular-query-devtools-experimental.mjs"
36+
},
37+
"./package.json": {
38+
"default": "./package.json"
39+
}
40+
},
41+
"sideEffects": false,
42+
"files": [
43+
"build"
44+
],
3245
"dependencies": {
3346
"@tanstack/query-devtools": "workspace:*",
3447
"tslib": "^2.6.2"
@@ -47,18 +60,5 @@
4760
"@angular/common": ">=16.0.0",
4861
"@angular/core": ">=16.0.0",
4962
"@tanstack/angular-query-experimental": "workspace:^"
50-
},
51-
"module": "build/fesm2022/tanstack-angular-query-devtools-experimental.mjs",
52-
"types": "build/index.d.ts",
53-
"exports": {
54-
"./package.json": {
55-
"default": "./package.json"
56-
},
57-
".": {
58-
"types": "./build/index.d.ts",
59-
"esm2022": "./build/esm2022/tanstack-angular-query-devtools-experimental.mjs",
60-
"esm": "./build/esm2022/tanstack-angular-query-devtools-experimental.mjs",
61-
"default": "./build/fesm2022/tanstack-angular-query-devtools-experimental.mjs"
62-
}
6363
}
6464
}

‎packages/angular-query-experimental/package.json

+25-25
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"directory": "packages/angular-query-experimental"
1111
},
1212
"homepage": "https://tanstack.com/query",
13+
"funding": {
14+
"type": "github",
15+
"url": "https://github.com/sponsors/tannerlinsley"
16+
},
1317
"keywords": [
1418
"angular query",
1519
"angular",
@@ -22,18 +26,6 @@
2226
"state",
2327
"tanstack"
2428
],
25-
"funding": {
26-
"type": "github",
27-
"url": "https://github.com/sponsors/tannerlinsley"
28-
},
29-
"type": "module",
30-
"sideEffects": false,
31-
"files": [
32-
"build",
33-
"!**/*.d.ts",
34-
"!**/*.d.ts.map",
35-
"build/rollup.d.ts"
36-
],
3729
"scripts": {
3830
"clean": "rimraf ./build && rimraf ./coverage",
3931
"test:eslint": "eslint ./src",
@@ -47,6 +39,27 @@
4739
"test:build": "publint --strict && attw --pack",
4840
"build": "ng-packagr -p ng-package.json -c tsconfig.build.json && rimraf ./build/package.json && api-extractor run --local"
4941
},
42+
"type": "module",
43+
"types": "build/rollup.d.ts",
44+
"module": "build/fesm2022/tanstack-angular-query-experimental.mjs",
45+
"exports": {
46+
".": {
47+
"types": "./build/rollup.d.ts",
48+
"esm2022": "./build/esm2022/tanstack-angular-query-experimental.mjs",
49+
"esm": "./build/esm2022/tanstack-angular-query-experimental.mjs",
50+
"default": "./build/fesm2022/tanstack-angular-query-experimental.mjs"
51+
},
52+
"./package.json": {
53+
"default": "./package.json"
54+
}
55+
},
56+
"sideEffects": false,
57+
"files": [
58+
"build",
59+
"!**/*.d.ts",
60+
"!**/*.d.ts.map",
61+
"build/rollup.d.ts"
62+
],
5063
"dependencies": {
5164
"@tanstack/query-core": "workspace:*",
5265
"tslib": "^2.6.2"
@@ -68,18 +81,5 @@
6881
"peerDependencies": {
6982
"@angular/core": ">=16.0.0",
7083
"@angular/common": ">=16.0.0"
71-
},
72-
"module": "build/fesm2022/tanstack-angular-query-experimental.mjs",
73-
"types": "build/rollup.d.ts",
74-
"exports": {
75-
"./package.json": {
76-
"default": "./package.json"
77-
},
78-
".": {
79-
"types": "./build/rollup.d.ts",
80-
"esm2022": "./build/esm2022/tanstack-angular-query-experimental.mjs",
81-
"esm": "./build/esm2022/tanstack-angular-query-experimental.mjs",
82-
"default": "./build/fesm2022/tanstack-angular-query-experimental.mjs"
83-
}
8484
}
8585
}

‎packages/eslint-plugin-query/package.json

+14-13
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@
1414
"type": "github",
1515
"url": "https://github.com/sponsors/tannerlinsley"
1616
},
17+
"scripts": {
18+
"clean": "rimraf ./dist && rimraf ./coverage",
19+
"test:eslint": "eslint ./src",
20+
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
21+
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
22+
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
23+
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
24+
"test:types:ts53": "tsc",
25+
"test:lib": "vitest",
26+
"test:lib:dev": "pnpm run test:lib --watch",
27+
"test:build": "publint --strict && attw --pack",
28+
"build": "vite build"
29+
},
1730
"type": "module",
1831
"types": "dist/esm/index.d.ts",
1932
"main": "dist/cjs/index.cjs",
@@ -31,19 +44,7 @@
3144
},
3245
"./package.json": "./package.json"
3346
},
34-
"scripts": {
35-
"clean": "rimraf ./dist && rimraf ./coverage",
36-
"test:eslint": "eslint ./src",
37-
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
38-
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
39-
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
40-
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
41-
"test:types:ts53": "tsc",
42-
"test:lib": "vitest",
43-
"test:lib:dev": "pnpm run test:lib --watch",
44-
"test:build": "publint --strict && attw --pack",
45-
"build": "vite build"
46-
},
47+
"sideEffects": false,
4748
"files": [
4849
"dist",
4950
"src"

‎packages/query-async-storage-persister/package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@
1414
"type": "github",
1515
"url": "https://github.com/sponsors/tannerlinsley"
1616
},
17+
"scripts": {
18+
"clean": "rimraf ./build && rimraf ./coverage",
19+
"test:eslint": "eslint ./src",
20+
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
21+
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
22+
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
23+
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
24+
"test:types:ts53": "tsc",
25+
"test:lib": "vitest",
26+
"test:lib:dev": "pnpm run test:lib --watch",
27+
"test:build": "publint --strict && attw --pack",
28+
"build": "tsup"
29+
},
1730
"type": "module",
1831
"types": "build/legacy/index.d.ts",
1932
"main": "build/legacy/index.cjs",
@@ -36,19 +49,6 @@
3649
"build",
3750
"src"
3851
],
39-
"scripts": {
40-
"clean": "rimraf ./build && rimraf ./coverage",
41-
"test:eslint": "eslint ./src",
42-
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
43-
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
44-
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
45-
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
46-
"test:types:ts53": "tsc",
47-
"test:lib": "vitest",
48-
"test:lib:dev": "pnpm run test:lib --watch",
49-
"test:build": "publint --strict && attw --pack",
50-
"build": "tsup"
51-
},
5252
"dependencies": {
5353
"@tanstack/query-persist-client-core": "workspace:*"
5454
}

‎packages/query-broadcast-client-experimental/package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@
1414
"type": "github",
1515
"url": "https://github.com/sponsors/tannerlinsley"
1616
},
17+
"scripts": {
18+
"clean": "rimraf ./build && rimraf ./coverage",
19+
"test:eslint": "eslint ./src",
20+
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
21+
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
22+
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
23+
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
24+
"test:types:ts53": "tsc",
25+
"test:build": "publint --strict && attw --pack",
26+
"build": "tsup"
27+
},
1728
"type": "module",
1829
"types": "build/legacy/index.d.ts",
1930
"main": "build/legacy/index.cjs",
@@ -36,17 +47,6 @@
3647
"build",
3748
"src"
3849
],
39-
"scripts": {
40-
"clean": "rimraf ./build && rimraf ./coverage",
41-
"test:eslint": "eslint ./src",
42-
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
43-
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
44-
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
45-
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
46-
"test:types:ts53": "tsc",
47-
"test:build": "publint --strict && attw --pack",
48-
"build": "tsup"
49-
},
5050
"dependencies": {
5151
"@tanstack/query-core": "workspace:*",
5252
"broadcast-channel": "^7.0.0"

‎packages/query-codemods/package.json

+10-6
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,26 @@
44
"description": "Collection of codemods to make the migration easier.",
55
"author": "Balázs Máté Petró",
66
"license": "MIT",
7-
"repository": "tanstack/query",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/TanStack/query.git",
10+
"directory": "packages/query-codemods"
11+
},
812
"homepage": "https://tanstack.com/query",
913
"funding": {
1014
"type": "github",
1115
"url": "https://github.com/sponsors/tannerlinsley"
1216
},
13-
"type": "module",
14-
"exports": {
15-
"./package.json": "./package.json"
16-
},
17-
"sideEffects": false,
1817
"scripts": {
1918
"test:eslint": "eslint ./src",
2019
"test:lib": "vitest",
2120
"test:lib:dev": "pnpm run test:lib --watch"
2221
},
22+
"type": "module",
23+
"exports": {
24+
"./package.json": "./package.json"
25+
},
26+
"sideEffects": false,
2327
"files": [
2428
"src",
2529
"!src/jest.config.js",

‎packages/query-core/package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@
1414
"type": "github",
1515
"url": "https://github.com/sponsors/tannerlinsley"
1616
},
17+
"scripts": {
18+
"clean": "rimraf ./build && rimraf ./coverage",
19+
"test:eslint": "eslint ./src",
20+
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
21+
"test:types:ts47": "node ../../node_modules/typescript47/lib/tsc.js -p tsconfig.legacy.json",
22+
"test:types:ts48": "node ../../node_modules/typescript48/lib/tsc.js -p tsconfig.legacy.json",
23+
"test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json",
24+
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json",
25+
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js -p tsconfig.legacy.json",
26+
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js -p tsconfig.legacy.json",
27+
"test:types:ts53": "tsc",
28+
"test:lib": "vitest",
29+
"test:lib:dev": "pnpm run test:lib --watch",
30+
"test:build": "publint --strict && attw --pack",
31+
"build": "tsup"
32+
},
1733
"type": "module",
1834
"types": "build/legacy/index.d.ts",
1935
"main": "build/legacy/index.cjs",
@@ -35,21 +51,5 @@
3551
"files": [
3652
"build",
3753
"src"
38-
],
39-
"scripts": {
40-
"clean": "rimraf ./build && rimraf ./coverage",
41-
"test:eslint": "eslint ./src",
42-
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
43-
"test:types:ts47": "node ../../node_modules/typescript47/lib/tsc.js -p tsconfig.legacy.json",
44-
"test:types:ts48": "node ../../node_modules/typescript48/lib/tsc.js -p tsconfig.legacy.json",
45-
"test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json",
46-
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json",
47-
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js -p tsconfig.legacy.json",
48-
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js -p tsconfig.legacy.json",
49-
"test:types:ts53": "tsc",
50-
"test:lib": "vitest",
51-
"test:lib:dev": "pnpm run test:lib --watch",
52-
"test:build": "publint --strict && attw --pack",
53-
"build": "tsup"
54-
}
54+
]
5555
}

0 commit comments

Comments
 (0)
Please sign in to comment.