Skip to content

Devmoji Config

@theholocron/devmoji-config provides shared devmoji configuration for theholocron repos — custom emoji mappings and accepted commit types with a defineConfig factory for repo-level overrides.

Terminal window
pnpm add -D @theholocron/devmoji-config

Create devmoji.config.cjs at the repo root (.cjs required — devmoji uses require() and theholocron repos set "type": "module"):

/* eslint-disable */
// devmoji.config.cjs — generated by holocron setup, do not edit
const { defineConfig } = require("@theholocron/devmoji-config");
module.exports = defineConfig();

With repo-specific overrides:

/* eslint-disable */
const { defineConfig } = require("@theholocron/devmoji-config");
module.exports = defineConfig({
types: ["wip"],
devmoji: [{ code: "feat", emoji: "sparkles" }],
});

Overrides are appended to the defaults — they do not replace them.

Type Emoji Notes
feat 💥 New feature
fix 🐛 Bug fix
fail 💩 Catastrophic failure or emergency hot fix
docs 📚 Documentation
chore 🔧 Maintenance
chore(release) 🚀 Release
chore(deps) 🔗 Dependencies
ci 👷 CI changes
refactor ♻️ Refactor
test 🚨 Tests
perf ⚡ Performance
build 📦 Build changes
config ⚙️ Config file changes
lint (none) Extra accepted type; no emoji mapped

feat through build use devmoji’s built-in defaults except where noted. fail, config, and lint are theholocron additions.

holocron setup writes .husky/prepare-commit-msg automatically. Manual setup:

Terminal window
npx husky add .husky/prepare-commit-msg "npx devmoji -e --lint"