|
54 | 54 | "ts:check": "tsc --noEmit", |
55 | 55 | "ts:changes": "tsc --noEmit --incremental", |
56 | 56 | "lint": "eslint --cache .", |
57 | | - "lint:changes": "sh -c eslint --cache $(yarn git:changes)", |
| 57 | + "lint:changes": "sh -c 'eslint --cache $(pnpm run --silent git:changes)'", |
58 | 58 | "pretty": "prettier --write .", |
59 | 59 | "pretty:check": "prettier --check .", |
60 | | - "fix": "yarn pretty && eslint --fix .", |
61 | | - "test": "yarn grammar && jest", |
62 | | - "test:watch": "yarn test -- --watch", |
63 | | - "test:perf": "yarn grammar && jest --testMatch '<rootDir>/test/perftest.ts' --coverage=false", |
64 | | - "check": "yarn ts:check && yarn pretty:check && yarn lint && yarn test", |
65 | | - "prepare": "yarn clean && yarn grammar && yarn fix && yarn check && yarn build", |
| 60 | + "fix": "pnpm run pretty && eslint --fix .", |
| 61 | + "test": "pnpm run grammar && jest", |
| 62 | + "test:watch": "pnpm run test -- --watch", |
| 63 | + "test:perf": "pnpm run grammar && jest --testMatch '<rootDir>/test/perftest.ts' --coverage=false", |
| 64 | + "check": "pnpm run ts:check && pnpm run pretty:check && pnpm run lint && pnpm run test", |
| 65 | + "prepare": "pnpm run clean && pnpm run grammar && pnpm run fix && pnpm run check && pnpm run build", |
66 | 66 | "pre-commit": "npm-run-all --parallel ts:changes lint:changes", |
67 | 67 | "grammar": "nearleyc src/parser/grammar.ne -o src/parser/grammar.ts", |
68 | 68 | "build:cjs": "tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json", |
69 | 69 | "build:esm": "tsc -p tsconfig.esm.json", |
70 | 70 | "build:webpack": "webpack --config webpack.prod.js && cp dist/sql-formatter.min.cjs dist/sql-formatter.min.js", |
71 | | - "build": "yarn grammar && npm-run-all --parallel build:cjs build:esm build:webpack", |
| 71 | + "build": "pnpm run grammar && npm-run-all --parallel build:cjs build:esm build:webpack", |
72 | 72 | "release": "release-it" |
73 | 73 | }, |
74 | 74 | "repository": { |
|
92 | 92 | "@types/babel__core": "^7.1.15", |
93 | 93 | "@types/jest": "^29.5.14", |
94 | 94 | "@types/nearley": "^2.11.2", |
| 95 | + "@types/node": "22.9.0", |
95 | 96 | "@typescript-eslint/eslint-plugin": "^5.21.0", |
96 | 97 | "@typescript-eslint/parser": "^5.21.0", |
97 | 98 | "babel-eslint": "^10.1.0", |
|
133 | 134 | }, |
134 | 135 | "devEngines": { |
135 | 136 | "packageManager": { |
136 | | - "name": "yarn", |
137 | | - "version": "1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" |
| 137 | + "name": "pnpm", |
| 138 | + "version": "11.0.8+sha512.4c4097e1dd2d42372c4e7fa5a791ff28fc75a484c7ac192e64b1df0fdef17594ba982f9b4fed9adfb3c757846f565b799b2763fb3733d1de1bcb82cf46684912" |
138 | 139 | } |
139 | 140 | } |
140 | 141 | } |
0 commit comments