Skip to content

Commit

Permalink
fix: use the same ts build method for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianOsipiuk committed Jul 27, 2022
1 parent 891080c commit cce0188
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 19 deletions.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"name": "query",
"repository": "https://github.com/tanstack/query.git",
"scripts": {
"clean": "npm exec --workspaces -c \"rm -rf build || true\"",
"clean": "lerna run clean --stream --no-bail",
"install:csb": "npm install --frozen-lockfile && node ./scripts/fix-package-json.js",
"test": "(is-ci && npm run test:ci) || npm run test:dev",
"test:ci": "npm run compile && npm run test:format && npm run test:eslint && npm run test:jest",
"test:dev": "npm run compile && npm run test:format && npm run test:eslint && npm run test:jest:dev",
"test:ci": "npm run typecheck && npm run test:format && npm run test:eslint && npm run test:jest",
"test:dev": "npm run typecheck && npm run test:format && npm run test:eslint && npm run test:jest:dev",
"test:dev:17": "REACTJS_VERSION=17 jest --watch",
"test:eslint": "lerna run test:eslint --stream --no-bail",
"test:format": "npm run prettier -- --check",
Expand All @@ -23,8 +23,7 @@
"prettier": "prettier \"packages/*/{src/**,examples/**/src/**}.{md,js,jsx,ts,tsx,json}\"",
"prettier:write": "npm run prettier -- --write",
"visualize": "lerna exec 'open build/stats-html.html'",
"cipublish": "ts-node scripts/publish.ts",
"compile": "lerna run compile --stream --no-bail"
"cipublish": "ts-node scripts/publish.ts"
},
"namespace": "@tanstack",
"workspaces": [
Expand Down
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 @@ -28,7 +28,7 @@
"src"
],
"scripts": {
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
"clean": "rm -rf ./build",
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
}
}
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 @@ -28,8 +28,8 @@
"src"
],
"scripts": {
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
"clean": "rm -rf ./build",
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
},
"dependencies": {
"broadcast-channel": "^3.4.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/query-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"src"
],
"scripts": {
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
"clean": "rm -rf ./build",
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
}
}
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 @@ -28,7 +28,7 @@
"src"
],
"scripts": {
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
"clean": "rm -rf ./build",
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
}
}
4 changes: 2 additions & 2 deletions packages/react-query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"./package.json": "./package.json"
},
"scripts": {
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
"clean": "rm -rf ./build",
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
},
"dependencies": {
"@tanstack/match-sorter-utils": "^8.0.0-alpha.82",
Expand Down
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 @@ -28,7 +28,7 @@
"src"
],
"scripts": {
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
"clean": "rm -rf ./build",
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
}
}
4 changes: 2 additions & 2 deletions packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
"./src/setBatchUpdatesFn.ts"
],
"scripts": {
"clean": "rm -rf ./build",
"test:codemods": "../../node_modules/.bin/jest --config codemods/jest.config.js",
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
"test:jest": "yarn test:codemods && ../../node_modules/.bin/jest --config jest.config.js",
"test:jest:dev": "yarn test:jest --watch",
"compile": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
"test:jest:dev": "yarn test:jest --watch"
},
"files": [
"build/lib/*",
Expand Down

0 comments on commit cce0188

Please sign in to comment.