init
monoswan init [path]path defaults to the current directory.
The command creates monoswan.config.ts with an empty lib variant and the default enforceVariants() and sortPackageJson() rules. It creates the target directory when needed and does not overwrite an existing configuration.
import { defineConfig, enforceVariants, sortPackageJson } from "monoswan";
export default defineConfig({ variants: { lib: {}, }, rules: [enforceVariants(), sortPackageJson()],});