|
2 | 2 | "name": "snapshot-sequencer", |
3 | 3 | "version": "0.1.3", |
4 | 4 | "license": "MIT", |
| 5 | + "//ajv": "ajv 8.11.0 is a transitive dep of @snapshot-labs/snapshot.js (also used by ajv-formats and ajv-errors). Pinned at this level to force a single hoisted copy at node_modules/ajv. Without it, bun puts eslint's ajv@^6.x in the root slot and gives snapshot.js / ajv-formats / ajv-errors each their own nested 8.x copy — same version, different module identities, which breaks ajv-errors's vocabulary registration ('SyntaxError: Unexpected token :'). Drop this dep when bun supports nested overrides (oven-sh/bun#6608) or ajv-errors is replaced upstream.", |
5 | 6 | "scripts": { |
6 | 7 | "lint": "eslint src/ test/ --ext .ts", |
7 | | - "lint:fix": "yarn lint --fix", |
| 8 | + "lint:fix": "bun run lint --fix", |
8 | 9 | "typecheck": "tsc --noEmit", |
9 | 10 | "build": "tsc", |
10 | 11 | "dev": "nodemon src/index.ts", |
11 | 12 | "start": "node build/src/index.js", |
12 | | - "start:test": "dotenv -e test/.env.test yarn dev", |
13 | | - "test:setup": "dotenv -e test/.env.test yarn ts-node ./test/setupDb.ts", |
14 | | - "test": "yarn test:setup; PORT=3003 start-server-and-test 'yarn start:test' http://localhost:3003 'dotenv -e test/.env.test jest --runInBand'", |
| 13 | + "start:test": "dotenv -e test/.env.test bun run dev", |
| 14 | + "test:setup": "dotenv -e test/.env.test bunx ts-node ./test/setupDb.ts", |
| 15 | + "test": "bun run test:setup; PORT=3003 start-server-and-test 'bun run start:test' http://localhost:3003 'dotenv -e test/.env.test jest --runInBand'", |
15 | 16 | "test:unit": "dotenv -e test/.env.test jest --runInBand --collectCoverage=false test/unit", |
16 | 17 | "test:integration": "dotenv -e test/.env.test jest --runInBand --collectCoverage=false test/integration", |
17 | | - "test:e2e": "PORT=3003 start-server-and-test 'yarn start:test' http://localhost:3003 'dotenv -e test/.env.test jest --runInBand --collectCoverage=false test/e2e/'" |
| 18 | + "test:e2e": "PORT=3003 start-server-and-test 'bun run start:test' http://localhost:3003 'dotenv -e test/.env.test jest --runInBand --collectCoverage=false test/e2e/'" |
18 | 19 | }, |
19 | 20 | "eslintConfig": { |
20 | 21 | "extends": "@snapshot-labs" |
|
32 | 33 | "@snapshot-labs/pineapple": "^1.2.1", |
33 | 34 | "@snapshot-labs/snapshot-metrics": "^1.4.1", |
34 | 35 | "@snapshot-labs/snapshot-sentry": "^1.5.5", |
35 | | - "@snapshot-labs/snapshot.js": "^0.14.20", |
| 36 | + "@snapshot-labs/snapshot.js": "^0.14.21", |
| 37 | + "ajv": "8.11.0", |
36 | 38 | "bluebird": "^3.7.2", |
37 | 39 | "connection-string": "^1.0.1", |
38 | 40 | "cors": "^2.8.5", |
39 | 41 | "dotenv": "^16.0.2", |
40 | 42 | "express": "^4.18.1", |
41 | 43 | "express-rate-limit": "^6.9.0", |
42 | | - "lodash": "^4.17.21", |
| 44 | + "lodash": "4.17.21", |
43 | 45 | "mysql": "^2.18.1", |
44 | 46 | "node-fetch": "^2.7.0", |
45 | 47 | "rate-limit-redis": "^3.1.0", |
|
50 | 52 | "winston": "^3.8.2", |
51 | 53 | "zod": "3.23.8" |
52 | 54 | }, |
| 55 | + "overrides": { |
| 56 | + "@snapshot-labs/eslint-config-base": "0.1.0-beta.18", |
| 57 | + "ofetch": "1.3.3" |
| 58 | + }, |
53 | 59 | "devDependencies": { |
54 | | - "@snapshot-labs/eslint-config": "^0.1.0-beta.18", |
55 | | - "@snapshot-labs/prettier-config": "^0.1.0-beta.7", |
56 | | - "@types/jest": "^29.5.2", |
| 60 | + "@snapshot-labs/eslint-config": "0.1.0-beta.18", |
| 61 | + "@snapshot-labs/prettier-config": "0.1.0-beta.7", |
| 62 | + "@types/jest": "29.5.2", |
57 | 63 | "@types/node": "^16.0.0", |
58 | 64 | "dotenv-cli": "^7.2.1", |
59 | 65 | "eslint": "^8.28.0", |
60 | | - "jest": "^29.6.1", |
61 | | - "jest-environment-node-single-context": "^29.1.0", |
| 66 | + "jest": "29.6.1", |
| 67 | + "jest-environment-node-single-context": "29.1.0", |
62 | 68 | "nodemon": "^2.0.19", |
63 | | - "prettier": "^3.0.3", |
| 69 | + "prettier": "3.0.3", |
64 | 70 | "start-server-and-test": "^2.0.0", |
65 | 71 | "supertest": "^6.3.4", |
66 | | - "ts-jest": "^29.1.1" |
| 72 | + "ts-jest": "29.1.1" |
67 | 73 | } |
68 | 74 | } |
0 commit comments