Skip to content

Commit

Permalink
fix: Update package.json fields (#7674)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Jul 5, 2024
1 parent 70c40e7 commit f2741d1
Show file tree
Hide file tree
Showing 24 changed files with 552 additions and 395 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "query",
"name": "root",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/TanStack/query.git"
},
"packageManager": "pnpm@9.3.0",
"packageManager": "pnpm@9.4.0",
"type": "module",
"scripts": {
"clean": "pnpm --filter \"./packages/**\" run clean",
Expand Down Expand Up @@ -38,9 +38,8 @@
"test:knip"
]
},
"namespace": "@tanstack",
"devDependencies": {
"@arethetypeswrong/cli": "^0.16.0",
"@arethetypeswrong/cli": "^0.15.3",
"@cspell/eslint-plugin": "^8.9.1",
"@eslint-react/eslint-plugin": "^1.5.16",
"@solidjs/testing-library": "^0.8.8",
Expand Down
36 changes: 18 additions & 18 deletions packages/angular-query-devtools-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
"type": "github",
"url": "https://github.com/sponsors/tannerlinsley"
},
"type": "module",
"sideEffects": false,
"files": [
"build"
],
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint ./src",
Expand All @@ -29,6 +24,24 @@
"test:build": "publint --strict && attw --pack",
"build": "ng-packagr -p ng-package.json -c tsconfig.build.json && rimraf ./build/package.json"
},
"type": "module",
"types": "build/index.d.ts",
"module": "build/fesm2022/tanstack-angular-query-devtools-experimental.mjs",
"exports": {
".": {
"types": "./build/index.d.ts",
"esm2022": "./build/esm2022/tanstack-angular-query-devtools-experimental.mjs",
"esm": "./build/esm2022/tanstack-angular-query-devtools-experimental.mjs",
"default": "./build/fesm2022/tanstack-angular-query-devtools-experimental.mjs"
},
"./package.json": {
"default": "./package.json"
}
},
"sideEffects": false,
"files": [
"build"
],
"dependencies": {
"@tanstack/query-devtools": "workspace:*",
"tslib": "^2.6.2"
Expand All @@ -47,18 +60,5 @@
"@angular/common": ">=16.0.0",
"@angular/core": ">=16.0.0",
"@tanstack/angular-query-experimental": "workspace:^"
},
"module": "build/fesm2022/tanstack-angular-query-devtools-experimental.mjs",
"types": "build/index.d.ts",
"exports": {
"./package.json": {
"default": "./package.json"
},
".": {
"types": "./build/index.d.ts",
"esm2022": "./build/esm2022/tanstack-angular-query-devtools-experimental.mjs",
"esm": "./build/esm2022/tanstack-angular-query-devtools-experimental.mjs",
"default": "./build/fesm2022/tanstack-angular-query-devtools-experimental.mjs"
}
}
}
50 changes: 25 additions & 25 deletions packages/angular-query-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"directory": "packages/angular-query-experimental"
},
"homepage": "https://tanstack.com/query",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/tannerlinsley"
},
"keywords": [
"angular query",
"angular",
Expand All @@ -22,18 +26,6 @@
"state",
"tanstack"
],
"funding": {
"type": "github",
"url": "https://github.com/sponsors/tannerlinsley"
},
"type": "module",
"sideEffects": false,
"files": [
"build",
"!**/*.d.ts",
"!**/*.d.ts.map",
"build/rollup.d.ts"
],
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint ./src",
Expand All @@ -47,6 +39,27 @@
"test:build": "publint --strict && attw --pack",
"build": "ng-packagr -p ng-package.json -c tsconfig.build.json && rimraf ./build/package.json && api-extractor run --local"
},
"type": "module",
"types": "build/rollup.d.ts",
"module": "build/fesm2022/tanstack-angular-query-experimental.mjs",
"exports": {
".": {
"types": "./build/rollup.d.ts",
"esm2022": "./build/esm2022/tanstack-angular-query-experimental.mjs",
"esm": "./build/esm2022/tanstack-angular-query-experimental.mjs",
"default": "./build/fesm2022/tanstack-angular-query-experimental.mjs"
},
"./package.json": {
"default": "./package.json"
}
},
"sideEffects": false,
"files": [
"build",
"!**/*.d.ts",
"!**/*.d.ts.map",
"build/rollup.d.ts"
],
"dependencies": {
"@tanstack/query-core": "workspace:*",
"tslib": "^2.6.2"
Expand All @@ -68,18 +81,5 @@
"peerDependencies": {
"@angular/core": ">=16.0.0",
"@angular/common": ">=16.0.0"
},
"module": "build/fesm2022/tanstack-angular-query-experimental.mjs",
"types": "build/rollup.d.ts",
"exports": {
"./package.json": {
"default": "./package.json"
},
".": {
"types": "./build/rollup.d.ts",
"esm2022": "./build/esm2022/tanstack-angular-query-experimental.mjs",
"esm": "./build/esm2022/tanstack-angular-query-experimental.mjs",
"default": "./build/fesm2022/tanstack-angular-query-experimental.mjs"
}
}
}
27 changes: 14 additions & 13 deletions packages/eslint-plugin-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@
"type": "github",
"url": "https://github.com/sponsors/tannerlinsley"
},
"scripts": {
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint ./src",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict && attw --pack",
"build": "vite build"
},
"type": "module",
"types": "dist/esm/index.d.ts",
"main": "dist/cjs/index.cjs",
Expand All @@ -31,19 +44,7 @@
},
"./package.json": "./package.json"
},
"scripts": {
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint ./src",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict && attw --pack",
"build": "vite build"
},
"sideEffects": false,
"files": [
"dist",
"src"
Expand Down
26 changes: 13 additions & 13 deletions packages/query-async-storage-persister/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@
"type": "github",
"url": "https://github.com/sponsors/tannerlinsley"
},
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint ./src",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict && attw --pack",
"build": "tsup"
},
"type": "module",
"types": "build/legacy/index.d.ts",
"main": "build/legacy/index.cjs",
Expand All @@ -36,19 +49,6 @@
"build",
"src"
],
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint ./src",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict && attw --pack",
"build": "tsup"
},
"dependencies": {
"@tanstack/query-persist-client-core": "workspace:*"
}
Expand Down
22 changes: 11 additions & 11 deletions packages/query-broadcast-client-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
"type": "github",
"url": "https://github.com/sponsors/tannerlinsley"
},
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint ./src",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:build": "publint --strict && attw --pack",
"build": "tsup"
},
"type": "module",
"types": "build/legacy/index.d.ts",
"main": "build/legacy/index.cjs",
Expand All @@ -36,17 +47,6 @@
"build",
"src"
],
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint ./src",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:build": "publint --strict && attw --pack",
"build": "tsup"
},
"dependencies": {
"@tanstack/query-core": "workspace:*",
"broadcast-channel": "^7.0.0"
Expand Down
16 changes: 10 additions & 6 deletions packages/query-codemods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,26 @@
"description": "Collection of codemods to make the migration easier.",
"author": "Balázs Máté Petró",
"license": "MIT",
"repository": "tanstack/query",
"repository": {
"type": "git",
"url": "https://github.com/TanStack/query.git",
"directory": "packages/query-codemods"
},
"homepage": "https://tanstack.com/query",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/tannerlinsley"
},
"type": "module",
"exports": {
"./package.json": "./package.json"
},
"sideEffects": false,
"scripts": {
"test:eslint": "eslint ./src",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch"
},
"type": "module",
"exports": {
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"src",
"!src/jest.config.js",
Expand Down
34 changes: 17 additions & 17 deletions packages/query-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@
"type": "github",
"url": "https://github.com/sponsors/tannerlinsley"
},
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint ./src",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts47": "node ../../node_modules/typescript47/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts48": "node ../../node_modules/typescript48/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts53": "tsc",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict && attw --pack",
"build": "tsup"
},
"type": "module",
"types": "build/legacy/index.d.ts",
"main": "build/legacy/index.cjs",
Expand All @@ -35,21 +51,5 @@
"files": [
"build",
"src"
],
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint ./src",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts47": "node ../../node_modules/typescript47/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts48": "node ../../node_modules/typescript48/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts53": "tsc",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict && attw --pack",
"build": "tsup"
}
]
}
Loading

0 comments on commit f2741d1

Please sign in to comment.