This repository was archived by the owner on May 9, 2026. It is now read-only.
@clearcms/create@0.4.0
Minor Changes
-
505a71aThanks @slavasolutions! - Fix scaffolded projects so a freshnpx @clearcms/createactually works.Bundles four bugs surfaced by adopter testers on v0.4.0:
- #86 — admin pin out-of-range.
@clearcms/create@0.3.0substituted
__CLEAR_VERSION__to^0.3.0, but no@clearcms/admin@0.3.xwas
ever published to npm (v0.3 was skipped via the v0.4 fat train). Stock
pnpm installfailed withERR_PNPM_NO_MATCHING_VERSION. This minor
bump lifts@clearcms/createto the 0.4.x line, so the
__CLEAR_VERSION__substitution emits^0.4.0— which resolves to
@clearcms/admin@0.4.1and onward. - #90 — pnpm 10 silent build-script skip. Added
pnpm.onlyBuiltDependencies: ["esbuild", "sharp"]to the scaffold's
package.json. Without this, pnpm 10 prints
Run "pnpm approve-builds"and skips sharp's native binding —
silently degrading admin's image-transform path to JS. Pre-approving
these two specifically keeps the scaffold strict (no arbitrary
postinstall scripts) but unblocks the two builds we need. - #92 —
pnpm typecheckfailed against REST backend.
pnpm typecheckranastro checkwithoutCLEAR_BACKEND=fs, so the
loaders defaulted to REST and tried to fetch/api/v1/pageswhile
the admin wasn't running. Mirroredpnpm build'scross-envprefix. - #93 — scaffold templates failed their own typecheck. Two distinct
TS errors:src/layouts/Base.astroaccesseditem.kindanditem.hrefon a
NavNodediscriminated union without proper narrowing. Switched
to'kind' in itemfor narrowing + defensive'href' in child
for nested children.src/pages/preview.astropasseddescription={description}where
descriptioncould beundefined. Astro 6's
exactOptionalPropertyTypes: truerejects explicit-undefined for
optional props. Switched to a conditional spread:
{...(description !== undefined ? { description } : {})}.
After this lands, a stock
npx @clearcms/create my-site && cd my-site && pnpm install && pnpm dev
boots admin + site cleanly on a fresh machine, andpnpm typecheckreturns 0 errors. - #86 — admin pin out-of-range.