1b929dd892
Node.js was loading src/index.ts at runtime (raw TypeScript) because main pointed to the source. At runtime it tried to resolve './damage' without an extension which fails in Node's ESM resolver. Pointing main to dist/index.js makes Node load the compiled CommonJS output produced by `tsc` during the build step. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
15 lines
267 B
JSON
15 lines
267 B
JSON
{
|
|
"name": "@rentaldrivego/types",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"type-check": "tsc --noEmit"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.4.0"
|
|
}
|
|
}
|