9ab05022a6
Node.js v20.20.1 is matching the `types` export condition before `default`, causing ERR_UNKNOWN_FILE_EXTENSION when it tries to load .ts source files at runtime. Moving `default` before `types` ensures Node.js resolves to the compiled .js output first. TypeScript explicitly seeks the `types` condition regardless of key order, so TS resolution is unaffected. Fixes the API container CrashLoopBackOff in the groombook namespace. Co-authored-by: Groom Book CTO <cto@groombook.dev> Co-authored-by: Paperclip <noreply@paperclip.ing>
22 lines
384 B
JSON
22 lines
384 B
JSON
{
|
|
"name": "@groombook/types",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"default": "./dist/index.js",
|
|
"types": "./src/index.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.7.3"
|
|
}
|
|
}
|