Skip to content

Commit d545bf7

Browse files
author
gauravchugh
committed
align scripts with monorepo Nx targets and use workspace:* for query-core
1 parent a322b9c commit d545bf7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

packages/lit-query/package.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,25 @@
2929
"./package.json": "./package.json"
3030
},
3131
"scripts": {
32+
"compile": "tsc --build",
3233
"build": "npm run build:esm && npm run build:cjs",
3334
"build:esm": "tsc -p tsconfig.build.json",
3435
"build:cjs": "node -e \"require('node:fs').rmSync('dist-cjs', { recursive: true, force: true })\" && tsc -p tsconfig.build.cjs.json && node scripts/write-cjs-package.mjs",
35-
"typecheck": "tsc --noEmit",
36-
"lint": "eslint .",
36+
"test:types": "tsc --noEmit",
37+
"typecheck": "npm run test:types",
38+
"test:eslint": "eslint .",
39+
"lint": "npm run test:eslint",
3740
"lint:fix": "eslint . --fix",
3841
"format": "prettier --write .",
3942
"format:check": "prettier --check .",
40-
"test": "vitest run",
41-
"test:watch": "vitest",
43+
"test:lib": "vitest run",
44+
"test": "npm run test:lib",
45+
"test:lib:dev": "vitest",
46+
"test:watch": "npm run test:lib:dev",
4247
"package:check": "node scripts/check-package.mjs",
4348
"package:smoke:cjs-types": "node scripts/check-cjs-types-smoke.mjs",
44-
"package:build": "npm run build && publint --strict && attw --pack && npm run package:smoke:cjs-types",
49+
"test:build": "publint --strict && attw --pack && npm run package:smoke:cjs-types",
50+
"package:build": "npm run build && npm run test:build",
4551
"measure:bundle": "npm run build && node scripts/measure-bundle.mjs",
4652
"measure:bundle:raw": "node scripts/measure-bundle.mjs",
4753
"perf:l3": "npm run build && node scripts/l3-stress.mjs",
@@ -84,7 +90,7 @@
8490
},
8591
"dependencies": {
8692
"@lit/context": "^1.1.6",
87-
"@tanstack/query-core": "^5.90.0",
93+
"@tanstack/query-core": "workspace:*",
8894
"lit": "^3.3.1"
8995
},
9096
"peerDependencies": {

0 commit comments

Comments
 (0)