|
25 | 25 | "email": "hello@doczilla.app", |
26 | 26 | "url": "https://doczilla.app" |
27 | 27 | }, |
| 28 | + "sideEffects": false, |
| 29 | + "exports": { |
| 30 | + ".": { |
| 31 | + "require": "./dist/index.js", |
| 32 | + "import": "./dist/index.mjs", |
| 33 | + "types": "./dist/types/index.d.ts" |
| 34 | + }, |
| 35 | + "./package.json": "./package.json" |
| 36 | + }, |
28 | 37 | "main": "./dist/index.js", |
29 | 38 | "module": "./dist/esm/index.js", |
| 39 | + "types": "./dist/types/index.d.ts", |
30 | 40 | "scripts": { |
31 | | - "build": "tsc && tsc -p tsconfig.esm.json", |
| 41 | + "build": "yarn clean && yarn build:ts && yarn build:types", |
| 42 | + "build:ts": "tsup src/index.ts --format cjs,esm --clean", |
| 43 | + "build:types": "tsc --emitDeclarationOnly --outDir dist/types", |
| 44 | + "clean": "rm -rf dist", |
32 | 45 | "generate:sdk": "node ./generate-models.js && yarn build", |
33 | 46 | "lint": "eslint --ext .ts .", |
34 | 47 | "test": "jest" |
|
38 | 51 | }, |
39 | 52 | "devDependencies": { |
40 | 53 | "@jest/globals": "^29.7.0", |
| 54 | + "@swc/core": "^1.6.13", |
41 | 55 | "@types/jest": "^29.5.12", |
42 | 56 | "@types/node": "^20.14.10", |
43 | 57 | "@typescript-eslint/eslint-plugin": "^7.16.1", |
|
49 | 63 | "jest": "^29.7.0", |
50 | 64 | "openapi-typescript-codegen": "^0.29.0", |
51 | 65 | "ts-jest": "^29.2.2", |
| 66 | + "tsup": "^8.1.1", |
52 | 67 | "typescript": "^5.5" |
53 | 68 | }, |
54 | 69 | "packageManager": "yarn@4.2.2", |
|
0 commit comments