|
1 | 1 | { |
2 | 2 | "name": "@opengovsg/refx-ts-sdk", |
3 | | - "version": "0.0.0-develop-1763450031", |
| 3 | + "version": "0.0.0-develop-alpha-1763450943", |
4 | 4 | "private": false, |
5 | | - "repository": "github:opengovsg/refer-ts-sdk", |
6 | | - "type": "commonjs", |
7 | | - "main": "./dist/cjs/index.js", |
8 | | - "module": "./dist/esm/index.mjs", |
9 | | - "types": "./dist/cjs/index.d.ts", |
10 | | - "exports": { |
11 | | - ".": { |
12 | | - "types": "./dist/cjs/index.d.ts", |
13 | | - "import": { |
14 | | - "types": "./dist/esm/index.d.mts", |
15 | | - "default": "./dist/esm/index.mjs" |
16 | | - }, |
17 | | - "require": { |
18 | | - "types": "./dist/cjs/index.d.ts", |
19 | | - "default": "./dist/cjs/index.js" |
20 | | - }, |
21 | | - "default": "./dist/cjs/index.js" |
22 | | - }, |
23 | | - "./package.json": "./package.json" |
24 | | - }, |
25 | | - "files": [ |
26 | | - "dist", |
27 | | - "reference.md", |
28 | | - "README.md", |
29 | | - "LICENSE" |
30 | | - ], |
| 5 | + "repository": "https://github.com/opengovsg/refer-ts-sdk", |
| 6 | + "main": "./index.js", |
| 7 | + "types": "./index.d.ts", |
31 | 8 | "scripts": { |
32 | | - "format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none", |
33 | | - "format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none", |
34 | | - "lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none", |
35 | | - "lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none", |
36 | | - "check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none", |
37 | | - "check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none", |
38 | | - "build": "pnpm build:cjs && pnpm build:esm", |
39 | | - "build:cjs": "tsc --project ./tsconfig.cjs.json", |
40 | | - "build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm", |
41 | | - "test": "vitest", |
42 | | - "test:unit": "vitest --project unit", |
43 | | - "test:wire": "vitest --project wire", |
| 9 | + "format": "prettier . --write --ignore-unknown", |
| 10 | + "build": "tsc", |
| 11 | + "prepack": "cp -rv dist/. .", |
| 12 | + "test": "jest", |
44 | 13 | "pretest": "yarn build" |
45 | 14 | }, |
| 15 | + "dependencies": { |
| 16 | + "url-join": "4.0.1", |
| 17 | + "form-data": "^4.0.0", |
| 18 | + "formdata-node": "^6.0.3", |
| 19 | + "node-fetch": "^2.7.0", |
| 20 | + "qs": "^6.13.1", |
| 21 | + "readable-stream": "^4.5.2", |
| 22 | + "jsonwebtoken": "^9.0.2" |
| 23 | + }, |
46 | 24 | "devDependencies": { |
| 25 | + "@types/url-join": "4.0.1", |
| 26 | + "@types/qs": "^6.9.17", |
| 27 | + "@types/node-fetch": "^2.6.12", |
| 28 | + "@types/readable-stream": "^4.0.18", |
47 | 29 | "webpack": "^5.97.1", |
48 | 30 | "ts-loader": "^9.5.1", |
49 | | - "vitest": "^3.2.4", |
50 | | - "msw": "2.11.2", |
| 31 | + "jest": "^29.7.0", |
| 32 | + "@types/jest": "^29.5.14", |
| 33 | + "ts-jest": "^29.1.1", |
| 34 | + "jest-environment-jsdom": "^29.7.0", |
51 | 35 | "@types/node": "^18.19.70", |
| 36 | + "prettier": "^3.4.2", |
52 | 37 | "typescript": "~5.7.2", |
53 | | - "@biomejs/biome": "2.3.1", |
54 | 38 | "@types/jsonwebtoken": "^9.0.7" |
55 | 39 | }, |
56 | 40 | "browser": { |
57 | 41 | "fs": false, |
58 | 42 | "os": false, |
59 | 43 | "path": false, |
60 | | - "stream": false, |
61 | 44 | "jsonwebtoken": "./dist/browser/jsonwebtoken-stub.js" |
62 | | - }, |
63 | | - "packageManager": "[email protected]", |
64 | | - "engines": { |
65 | | - "node": ">=18.0.0" |
66 | | - }, |
67 | | - "sideEffects": false, |
68 | | - "dependencies": { |
69 | | - "jsonwebtoken": "^9.0.2" |
70 | 45 | } |
71 | 46 | } |
0 commit comments