diff options
| author | Shinigami <[email protected]> | 2024-09-14 21:44:33 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-09-14 21:44:33 +0200 |
| commit | 53ef42cc192996a0e09bba9d5f5f8a70a7932275 (patch) | |
| tree | 0f1e6f4bf5d9257ac0b7b09d2921b3a53b13d4cc /package.json | |
| parent | 18ab2c7b3c8fa78c46d4abafc07c3219f41caa46 (diff) | |
| download | faker-53ef42cc192996a0e09bba9d5f5f8a70a7932275.tar.xz faker-53ef42cc192996a0e09bba9d5f5f8a70a7932275.zip | |
fix: emit cts types (#3093)
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/package.json b/package.json index cc3011e6..41b1da55 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,7 @@ "clean": "rimraf coverage .eslintcache dist docs/.vitepress/cache docs/.vitepress/dist node_modules", "build:clean": "rimraf dist", "build:code": "tsup-node", - "build:types": "tsc --project tsconfig.build.json", - "build": "run-s build:clean build:code build:types", + "build": "run-s build:clean build:code", "generate": "run-s generate:locales generate:api-docs", "generate:api-docs": "tsx ./scripts/apidocs.ts", "generate:locales": "tsx ./scripts/generate-locales.ts", @@ -65,26 +64,37 @@ "type": "module", "exports": { ".": { - "types": "./dist/types/index.d.ts", - "import": "./dist/index.js", - "require": "./dist/index.cjs", - "default": "./dist/index.js" + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" + }, + "default": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } }, "./locale/*": { - "types": "./dist/types/locale/*.d.ts", - "import": "./dist/locale/*.js", - "require": "./dist/locale/*.cjs", - "default": "./dist/locale/*.js" + "require": { + "types": "./dist/locale/*.d.cts", + "default": "./dist/locale/*.cjs" + }, + "default": { + "types": "./dist/locale/*.d.ts", + "default": "./dist/locale/*.js" + } }, "./package.json": "./package.json" }, "main": "dist/index.cjs", "module": "dist/index.js", - "types": "index.d.ts", + "types": "dist/index.d.ts", "typesVersions": { ">=5.0": { - "*": [ - "dist/types/*" + ".": [ + "./dist/index.d.ts" + ], + "locale/*": [ + "./dist/locale/*.d.ts" ] } }, |
