Following CONTRIBUTING.md's instructions to run the NestJS example:
cd examples/nestjs-example
bun run start:devfails immediately with:
error: Script not found "start:dev"Issue 1: missing start:dev script
examples/nestjs-example/package.json only defines build and start — there's no start:dev, even though CONTRIBUTING.md tells contributors to run it.
Issue 2: example depends on the broken published packages
Working around issue 1 by running bun run build && bun run start instead surfaces the real underlying problem (see #3 (comment) / the fix in that PR): examples/nestjs-example is not part of the root workspaces glob ("workspaces": ["packages/*"]), so bun install there pulls reqlog-core/reqlog-nestjs from the npm registry, not the local workspace build.
The currently published reqlog-core@0.2.0 on npm has an incomplete CJS build (missing dist/index.js and others — root-caused and fixed in #3), so:
cd examples/nestjs-example
bun run build # fails: TS7016 "Could not find a declaration file for module 'reqlog-nestjs'"
bun run start # fails: Error: Cannot find module '.../node_modules/reqlog-core/dist/index.js'node_modules/reqlog-core/dist/ only contains esm/, dashboard/, and a stray tsconfig.esm.tsbuildinfo — no CJS output at all.
Suggested fix
- Add the missing
start:devscript (e.g."start:dev": "tsc -p tsconfig.json --watch & node --watch dist/main.js"or similar, matching whatever dev-loop was intended). - Once #3 is merged and a new version of
reqlog-core/reqlog-nestjsis published to npm, re-test the example against the published packages — or point the example at the local workspace build (e.g. viabun link/ workspace glob) so it exercises the fix directly instead of the registry version.
Happy to send a follow-up PR for the start:dev script if useful — flagging both issues here first since they're separate from the packaging fix in #3.
Activity
0No activity yet.