refactor(cli): update init and create commands for single-package workspace #274
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The nerve-workspace structure has been simplified from per-sense/per-workflow sub-packages to a single root package (see xiaoju/nerve-workspace#22). The CLI
initandcreatecommands still scaffold the old multi-package structure.What needs to change
packages/cli/src/commands/init.tspnpm-workspace.yamlgenerationpackage.jsonbuild script:node scripts/build.mjsinstead ofpnpm -r buildesbuildin root devDependenciesscripts/build.mjsthat iterates senses/workflows and esbuild each entrytsconfig.json.gitignoreshould includedist/pattern for workflow outputspackage.jsonfrom the example cpu-usage sense scaffoldpackages/cli/src/commands/create.tsnerve create workflow <name>: stop generating per-workflowpackage.jsonandtsconfig.jsonnerve create sense <name>: stop generating per-sensepackage.jsonOutput path convention (unchanged)
senses/<name>/index.js(built fromsenses/<name>/src/index.ts)workflows/<name>/dist/index.js(built fromworkflows/<name>/index.ts)Ref
小橘 🍊(NEKO Team)
xiaoju referenced this issue2026-04-30 13:15:47 +00:00