Migrating from v2¶
v2 of the library shipped one task file per repo type (.mise/tasks/<archetype>.toml) and a single make shim
(.mise/mise.mk). v3 splits that into common/ plus one language archetype, and moves language runtimes out of the
shared pins.
Steps¶
-
Move the runtime pins into the root
mise.toml [tools]. A Go repo addsgoand"go:golang.org/x/vuln/cmd/govulncheck", and an npm or pnpm Node repo addsnode. A bun Node repo and Python repos pin nothing. -
Replace the include. Swap
includes = [".mise/tasks/<archetype>.toml"]forincludes = [".mise/common/tasks.toml", ".mise/archetypes/<lang>/tasks.toml"], using the mapping below. -
Replace the make include. Swap
include .mise/mise.mkforinclude .mise/archetypes/<lang>/include.mk, orinclude .mise/common/include.mkfor a common-only repo. -
Node repos: prepare for the license tasks. They now run in the node archetype. Add
dist/**, and anything else generated, to.licenseignore, and make sure atypecheckscript exists inpackage.json. -
Run
make lintonce and address zizmor. Workflow lint now includes zizmor. Fix its findings, or accept them inline (# zizmor: ignore[audit-name]) or in azizmor.yml.
Moving a Node repo to bun¶
The node archetype is bun-first: a bun repo pins no runtime, because the library's own bun pin is its runtime, package manager, formatter, type checker, bundler and test runner. npm and pnpm repos keep working unchanged. To move one over:
- Drop the
nodepin from the root[tools](and any.node-version). - Switch the package manager. Delete
package-lock.json(orpnpm-lock.yaml), set"packageManager": "bun@<version>"inpackage.json, and runbun installto writebun.lock. - Point the scripts at bun's built-ins:
typecheck→bun check --no-script,format→bun fmt --no-script,build→bun build …,test:coverage→bun test --coverage. Always keep--no-script, orbun checkruns the repo'scheckscript (see node). - Drop the tools bun replaces from
devDependencies(typescript, the bundler, vitest, prettier) and add@types/bun. - Have
bun testwrite LCOV. SetcoverageReporter = ["text", "lcov"]andcoverageDir = "coverage"under[test]inbunfig.toml. The reusable CI uploadscoverage/lcov.info.
Prettier is now bun fmt¶
The prose gate formats Markdown with bun fmt, bun's built-in, Prettier-compatible formatter, instead of the pinned
prettier. It reads the same .prettierrc.yaml and .prettierignore, so a repo needs no change.
Archetype mapping¶
| v2 task file | v3 archetype |
|---|---|
go-cli |
go |
node-lib |
node |
node-action |
node, plus node_install_flags = "" in [vars] |
docs-site |
python |
markdown-lib |
common only (no second include) |
Before and after¶
Coming from the Makefile-fragment era¶
v1 repos mounted the library at make/ and included make/<archetype>.mk fragments, when the repo was still called
make. Remount the submodule at .mise/ (git mv make .mise, then update .gitmodules), make sure mise is on PATH,
and follow the steps above using the v3 includes directly. Two habits from that era behave differently now:
- Structural knobs live in
[vars]. The make variables once set before the include (APP := …) are now[vars]entries in the rootmise.toml. The go scripts still accept the old spellings (APP,APP_PKG, …) from the environment, somake build APP=xkeeps working. - Make prerequisites run before the forwarded task. The old fragments ran appended targets after
commit. Use a mise-side redefinition if you need different ordering (see Extending & overriding).