|
11 | 11 | "openapi-typescript": "bin/cli.js" |
12 | 12 | }, |
13 | 13 | "type": "module", |
14 | | - "main": "./dist/index.js", |
| 14 | + "main": "./dist/index.mjs", |
15 | 15 | "exports": { |
16 | 16 | ".": { |
17 | | - "import": "./dist/index.js", |
18 | | - "require": "./dist/index.cjs" |
| 17 | + "import": "./dist/index.mjs", |
| 18 | + "require": "./dist/index.cjs", |
| 19 | + "default": "./dist/index.mjs" |
19 | 20 | }, |
| 21 | + "./*.js": "./*.mjs", |
20 | 22 | "./*": "./*" |
21 | 23 | }, |
22 | 24 | "homepage": "https://openapi-ts.dev", |
|
40 | 42 | "url": "https://github.com/openapi-ts/openapi-typescript/issues" |
41 | 43 | }, |
42 | 44 | "scripts": { |
43 | | - "build": "pnpm run build:clean && pnpm run build:esm && pnpm run build:cjs", |
44 | | - "build:clean": "del-cli dist", |
45 | | - "build:esm": "tsc -p tsconfig.build.json", |
46 | | - "build:cjs": "esbuild --bundle --platform=node --target=es2019 --outfile=dist/index.cjs --external:@redocly/ajv --external:@redocly/openapi-core --external:typescript src/index.ts", |
| 45 | + "build": "unbuild", |
47 | 46 | "dev": "tsc -p tsconfig.build.json --watch", |
48 | 47 | "download:schemas": "vite-node ./scripts/download-schemas.ts", |
49 | 48 | "format": "biome format . --write", |
50 | | - "lint": "biome check .", |
51 | | - "test": "pnpm run \"/^test:/\"", |
52 | | - "test:examples": "tsc -p tsconfig.examples.json --noEmit", |
| 49 | + "lint": "pnpm run lint:js && pnpm run lint:ts", |
| 50 | + "lint:js": "biome check .", |
| 51 | + "lint:ts": "tsc --noEmit", |
| 52 | + "prepack": "pnpm run build", |
| 53 | + "test": "pnpm run test:js && pnpm run test:examples && pnpm run test:exports", |
53 | 54 | "test:js": "vitest run", |
54 | | - "test:ts": "tsc --noEmit", |
| 55 | + "test:exports": "pnpm run build && attw --pack .", |
| 56 | + "test:examples": "tsc -p tsconfig.examples.json --noEmit", |
55 | 57 | "update:examples": "pnpm run build && pnpm run download:schemas && vite-node ./scripts/update-examples.ts", |
56 | 58 | "prepublish": "pnpm run build", |
57 | 59 | "version": "pnpm run build" |
|
60 | 62 | "typescript": "^5.x" |
61 | 63 | }, |
62 | 64 | "dependencies": { |
63 | | - "@redocly/openapi-core": "^1.34.2", |
| 65 | + "@redocly/openapi-core": "^1.34.3", |
64 | 66 | "ansi-colors": "^4.1.3", |
65 | 67 | "change-case": "^5.4.4", |
66 | 68 | "parse-json": "^8.3.0", |
|
71 | 73 | "@types/degit": "^2.8.6", |
72 | 74 | "@types/js-yaml": "^4.0.9", |
73 | 75 | "degit": "^2.8.4", |
74 | | - "del-cli": "^6.0.0", |
75 | | - "esbuild": "^0.25.0", |
76 | | - "execa": "^9.0.0", |
| 76 | + "execa": "^9.5.3", |
77 | 77 | "strip-ansi": "^7.1.0", |
78 | 78 | "typescript": "^5.8.3", |
79 | | - "vite-node": "^3.0.0" |
| 79 | + "vite-node": "^3.1.3" |
80 | 80 | } |
81 | 81 | } |
0 commit comments