Skip to content

@notils/cli v0.6.1 — monorepo add fixes

Choose a tag to compare

@sanjaysah101 sanjaysah101 released this 18 Aug 12:03
· 7 commits to main since this release
6a5f1df

@notils/cli v0.6.1

Fixes for notils add in a monorepo, all reported from a real project running
0.6.0. Standalone targets were unaffected.

If you added a package with 0.6.0, re-run notils add <name> after upgrading —
your source files are kept, and the manifest and tsconfig are regenerated correctly.

Fixed

  • A package added to a monorepo now has a working tsconfig.json. It extended
    a hardcoded "../../tsconfig.json", which a create-notils monorepo does not have
    — its packages extend @<scope>/config/* presets. That produced TS5083: Cannot read file '<root>/tsconfig.json', and because a broken extends inherits no
    compiler options, the package then also failed on strict, JSX, and module
    resolution.

  • The generated manifest was missing scripts and devDependencies. Without
    @<scope>/config the extends had no reason to resolve; and a package with no
    typecheck script is silently skipped by Turborepo
    , which is why a genuinely
    broken package still reported a passing turbo run typecheck.

  • External dependencies are declared on the package that imports them. They
    were installed at the workspace root instead, so zod ended up in the root
    dependencies while packages/auth-custom declared nothing. The offered install
    now runs in each package's own directory.

  • add app asks whether you want a fresh or demo app, instead of silently
    defaulting to fresh. --no-demo is now accepted rather than rejected as unknown.

Not changed

The template ref stays v0.6.0 — this release is CLI code only, so there is no new
template content to fetch.