Repository navigation
build: behold takes chant 0.124.100, which ships dist only; tsx and esbuild become dependencies - #1102
Merged
Conversation
…sbuild become dependencies chant no longer publishes src/ and makes esbuild and tsx optional peers. tsx and esbuild are now dependencies of behold, and behold appends its own node_modules to NODE_PATH for the chant it spawns so a project that installed chant alone still loads TypeScript. The e2e probes and the decision-points fixtures read dist paths.
…ad needs no tsx chant `0.124.99` made tsx an optional peer dependency, and a `chant.config.ts` needs it to be evaluated. The extension stages no TypeScript loader (tsx needs esbuild, a native binary, and the vsix is one file for every platform), so `chant lint` reported "chant needs tsx to run TypeScript" for every behold-tf scratch project and `chant graph` refused to emit. The scratch project now holds a `chant.config.json`, which chant reads as data. The `lexicons` key loads the Terraform lexicon the config used to import. The scratch directory name is salted so an older `chant.config.ts` does not shadow the new file.
This was referenced Nov 16, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
behold now follows
0.124.100. Since0.124.99the package publishesdist/only, andesbuildandtsxare optional peers that npm does not install.What changed:
CHANT_RELEASEis{ version: "0.124.100", released: true }.scripts/chant-release.tsrewrote the example workspaces, fixtures andpackage.json. By hand I moved the sql and pulumi lexicon ranges and the k8s-client ranges. The example-terraform-estate README and the pinned version insrc/example-workspaces.test.tsalso needed a hand edit. Both lockfiles follow.tsxandesbuildaredependenciesof@intentius/behold, because behold runs chant on TypeScript projects.tsxfrom beside the copy it runs, so a project that installed it alone still stopped with "chant needs tsx to run TypeScript".withLoaderPathinsrc/chant.tsappends behold's ownnode_modulestoNODE_PATHfor the process behold spawns. The project's own copies still win. Tests are insrc/chant.test.ts.chant/src/...tsandchant-lexicon-terraform/src/op/...ts. They probe thedist/...jsfiles now. The decision-points test and fixture read chant's schema JSON fromdist/workspace/instead ofsrc/workspace/.I checked with a packed tarball installed plainly into an empty directory, running
behold graphon a copy of example-three-cloud whose own install has notsx. Without theNODE_PATHchange thednsandgcpmembers came back unreadable. With it all four members are read.Plain install of the tarball in an empty directory is 114 MB, against 164 MB on chant
0.124.98. The tarball was packed with the examplenode_modulesdirectories left out.just checkfinished clean, with 373 test files and 5331 tests passed, 35 skipped. No snapshot goldens changed.src/mcp-graph.test.tspasses in 8 s, andbehold graphon example-terraform-estate takes about 8 s, the same as on main with chant0.124.98.