Skip to content

Commit cce0188

Browse files
committed
fix: use the same ts build method for tests
1 parent 891080c commit cce0188

File tree

8 files changed

+18
-19
lines changed

8 files changed

+18
-19
lines changed

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"name": "query",
44
"repository": "https://github.com/tanstack/query.git",
55
"scripts": {
6-
"clean": "npm exec --workspaces -c \"rm -rf build || true\"",
6+
"clean": "lerna run clean --stream --no-bail",
77
"install:csb": "npm install --frozen-lockfile && node ./scripts/fix-package-json.js",
88
"test": "(is-ci && npm run test:ci) || npm run test:dev",
9-
"test:ci": "npm run compile && npm run test:format && npm run test:eslint && npm run test:jest",
10-
"test:dev": "npm run compile && npm run test:format && npm run test:eslint && npm run test:jest:dev",
9+
"test:ci": "npm run typecheck && npm run test:format && npm run test:eslint && npm run test:jest",
10+
"test:dev": "npm run typecheck && npm run test:format && npm run test:eslint && npm run test:jest:dev",
1111
"test:dev:17": "REACTJS_VERSION=17 jest --watch",
1212
"test:eslint": "lerna run test:eslint --stream --no-bail",
1313
"test:format": "npm run prettier -- --check",
@@ -23,8 +23,7 @@
2323
"prettier": "prettier \"packages/*/{src/**,examples/**/src/**}.{md,js,jsx,ts,tsx,json}\"",
2424
"prettier:write": "npm run prettier -- --write",
2525
"visualize": "lerna exec 'open build/stats-html.html'",
26-
"cipublish": "ts-node scripts/publish.ts",
27-
"compile": "lerna run compile --stream --no-bail"
26+
"cipublish": "ts-node scripts/publish.ts"
2827
},
2928
"namespace": "@tanstack",
3029
"workspaces": [

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"src"
2929
],
3030
"scripts": {
31-
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
32-
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
31+
"clean": "rm -rf ./build",
32+
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
3333
}
3434
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"src"
2929
],
3030
"scripts": {
31-
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
32-
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
31+
"clean": "rm -rf ./build",
32+
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
3333
},
3434
"dependencies": {
3535
"broadcast-channel": "^3.4.1"

packages/query-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"src"
2929
],
3030
"scripts": {
31-
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
32-
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
31+
"clean": "rm -rf ./build",
32+
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
3333
}
3434
}

packages/query-sync-storage-persister/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"src"
2929
],
3030
"scripts": {
31-
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
32-
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
31+
"clean": "rm -rf ./build",
32+
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
3333
}
3434
}

packages/react-query-devtools/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"./package.json": "./package.json"
4141
},
4242
"scripts": {
43-
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
44-
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
43+
"clean": "rm -rf ./build",
44+
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
4545
},
4646
"dependencies": {
4747
"@tanstack/match-sorter-utils": "^8.0.0-alpha.82",

packages/react-query-persist-client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"src"
2929
],
3030
"scripts": {
31-
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
32-
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
31+
"clean": "rm -rf ./build",
32+
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
3333
}
3434
}

packages/react-query/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
"./src/setBatchUpdatesFn.ts"
2727
],
2828
"scripts": {
29+
"clean": "rm -rf ./build",
2930
"test:codemods": "../../node_modules/.bin/jest --config codemods/jest.config.js",
3031
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
3132
"test:jest": "yarn test:codemods && ../../node_modules/.bin/jest --config jest.config.js",
32-
"test:jest:dev": "yarn test:jest --watch",
33-
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
33+
"test:jest:dev": "yarn test:jest --watch"
3434
},
3535
"files": [
3636
"build/lib/*",

0 commit comments

Comments
 (0)