|
3 | 3 | "version": "1.2.0", |
4 | 4 | "main": "lib/index.js", |
5 | 5 | "types": "lib/index.d.ts", |
| 6 | + "module": "lib/index.mjs", |
6 | 7 | "author": "Lenz Weber", |
7 | 8 | "license": "MIT", |
| 9 | + "sideEffects": false, |
| 10 | + "exports": { |
| 11 | + "./package.json": "./package.json", |
| 12 | + ".": { |
| 13 | + "import": { |
| 14 | + "types": "./lib/index.d.mts", |
| 15 | + "default": "./lib/index.mjs" |
| 16 | + }, |
| 17 | + "default": { |
| 18 | + "types": "./lib/index.d.ts", |
| 19 | + "default": "./lib/index.js" |
| 20 | + } |
| 21 | + } |
| 22 | + }, |
8 | 23 | "repository": { |
9 | 24 | "type": "git", |
10 | 25 | "url": "git+https://github.com/reduxjs/redux-toolkit.git" |
|
14 | 29 | }, |
15 | 30 | "homepage": "https://redux-toolkit.js.org", |
16 | 31 | "bin": { |
17 | | - "rtk-query-codegen-openapi": "lib/bin/cli.js" |
| 32 | + "rtk-query-codegen-openapi": "lib/bin/cli.mjs" |
18 | 33 | }, |
19 | 34 | "scripts": { |
20 | | - "build": "yarn clean && tsc -p tsconfig.build.json && chmod +x lib/bin/cli.js", |
| 35 | + "build": "yarn clean && tsup && chmod +x lib/bin/cli.mjs", |
21 | 36 | "clean": "rimraf lib", |
22 | | - "prepack": "yarn build", |
| 37 | + "prepack": "yarn build && chmod +x lib/bin/cli.mjs", |
23 | 38 | "format": "prettier --write \"src/**/*.ts\"", |
24 | 39 | "test:update": "vitest --run --update", |
25 | | - "test:update:enum": "lib/bin/cli.js test/config.example.enum.ts", |
| 40 | + "test:update:enum": "lib/bin/cli.mjs test/config.example.enum.ts", |
26 | 41 | "test": "vitest --run --typecheck", |
27 | 42 | "test:watch": "vitest --watch", |
28 | 43 | "cli": "esr src/bin/cli.ts" |
|
39 | 54 | "@reduxjs/toolkit": "^1.6.0", |
40 | 55 | "@types/commander": "^2.12.2", |
41 | 56 | "@types/glob-to-regexp": "^0.4.0", |
42 | | - "@types/lodash": "^4.14.165", |
| 57 | + "@types/lodash.camelcase": "^4.3.9", |
43 | 58 | "@types/node": "^20.11.10", |
44 | 59 | "@types/semver": "^7.3.9", |
45 | 60 | "chalk": "^4.1.0", |
|
53 | 68 | "pretty-quick": "^4.0.0", |
54 | 69 | "rimraf": "^5.0.5", |
55 | 70 | "ts-node": "^10.9.2", |
| 71 | + "tsup": "^8.2.4", |
56 | 72 | "vite-tsconfig-paths": "^5.0.1", |
57 | 73 | "vitest": "^2.0.5", |
58 | 74 | "yalc": "^1.0.0-pre.47" |
59 | 75 | }, |
60 | 76 | "dependencies": { |
61 | 77 | "@apidevtools/swagger-parser": "^10.0.2", |
62 | 78 | "commander": "^6.2.0", |
63 | | - "lodash": "^4.17.21", |
| 79 | + "lodash.camelcase": "^4.3.0", |
64 | 80 | "oazapfts": "^6.1.0", |
65 | 81 | "prettier": "^3.2.5", |
66 | 82 | "semver": "^7.3.5", |
67 | 83 | "swagger2openapi": "^7.0.4", |
68 | | - "typescript": "^5.3.3" |
| 84 | + "typescript": "^5.5.4" |
69 | 85 | }, |
70 | 86 | "husky": { |
71 | 87 | "hooks": { |
|
0 commit comments