fix(packages): reorder exports conditions to prevent Node.js .ts resolution

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: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Groom Book CTO
2026-03-18 19:44:24 +00:00
parent 21c0a7b59c
commit eb4ae11ce4
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -7,8 +7,8 @@
"types": "./src/index.ts",
"exports": {
".": {
"types": "./src/index.ts",
"default": "./dist/index.js"
"default": "./dist/index.js",
"types": "./src/index.ts"
}
},
"scripts": {
+2 -2
View File
@@ -7,8 +7,8 @@
"types": "./src/index.ts",
"exports": {
".": {
"types": "./src/index.ts",
"default": "./dist/index.js"
"default": "./dist/index.js",
"types": "./src/index.ts"
}
},
"scripts": {