Problem
@fireproof/core-cli@0.24.16 has "type": "module" but no "main" or "exports" field in its package.json. Node.js falls back to resolving index.js by default, which triggers DEP0151 warnings on every import:
(node:92449) [DEP0151] DeprecationWarning: No "main" or "exports" field defined in
the package.json for /path/to/node_modules/@fireproof/core-cli/ resolving the main
entry point "index.js", imported from /path/to/vibes-diy/cli/main.js.
Default "index" lookups for the main are deprecated for ES modules.
This fires twice per CLI invocation (from main.js and cmd-evento.js), showing up in user-facing output for npx vibes-diy commands.
Current package.json (relevant fields)
{
"name": "@fireproof/core-cli",
"version": "0.24.16",
"type": "module"
}
No "main", "exports", or "module" field.
Fix
Add an exports field (preferred) or at minimum a main field:
{
"exports": {
".": "./index.js",
"./*": "./*.js"
}
}
Or minimally:
The index.js file exists at the package root, so the resolution is correct — it just needs to be declared explicitly.
Impact
- Every
npx vibes-diy command shows these warnings to end users
- DEP0151 will become an error in a future Node.js version
- Affects vibes-diy CLI (v2.0.0-dev-cli-t and later)
Reproduction
npx vibes-diy@dev system
# Two DEP0151 warnings appear before output
Problem
@fireproof/core-cli@0.24.16has"type": "module"but no"main"or"exports"field in itspackage.json. Node.js falls back to resolvingindex.jsby default, which triggersDEP0151warnings on every import:This fires twice per CLI invocation (from
main.jsandcmd-evento.js), showing up in user-facing output fornpx vibes-diycommands.Current package.json (relevant fields)
{ "name": "@fireproof/core-cli", "version": "0.24.16", "type": "module" }No
"main","exports", or"module"field.Fix
Add an
exportsfield (preferred) or at minimum amainfield:{ "exports": { ".": "./index.js", "./*": "./*.js" } }Or minimally:
{ "main": "./index.js" }The
index.jsfile exists at the package root, so the resolution is correct — it just needs to be declared explicitly.Impact
npx vibes-diycommand shows these warnings to end usersReproduction
npx vibes-diy@dev system # Two DEP0151 warnings appear before output