Skip to content

Releases: loathers/create-kolmafia-script

v0.4.0

Choose a tag to compare

@gausie gausie released this 24 Aug 05:57

Breaking

  • Node ^22.20 || ^24.10 || >= 25 is now required, up from 20.11. Node 20 and 23 are both past end of life.
  • Turn switches off with --no-libram. --libram=false is now rejected rather than quietly ignored, which is what it did before — you would ask for no libram and get libram.
  • A project is named after the last segment of its path, so create-kolmafia-script nest/inner produces a package called inner.

Added

  • --node-pm to choose the package manager, optionally with an exact version, as in --node-pm pnpm@11.22.0. npm and pnpm work; yarn remains the best tested. (#15)
  • Generated projects come with a GitHub workflow that builds, lints and deploys to a release branch. Opt out with --no-setup-github. (#13)
  • --version.

Fixed

  • Package manager commands run inside the new project. They were passing --cwd while running from wherever you invoked them, and corepack resolves packageManager from the process directory, so every install silently used Yarn Classic 1.22 instead of the project's Yarn 4. (#8, #10)
  • Your global ~/.yarnrc is no longer written to. Configuring the new project used Yarn Classic's config set, which only ever writes to your home directory, so the setting landed on your account and never on the project.
  • Git user is read from included config files. Looking only at the global file skips include directives, so anyone keeping their name and email in an included file got placeholders. (#11)
  • The generated script compiles to something KoLmafia can run. The template called console.log, which does not exist there. It now uses print from kolmafia. (#12)
  • Piping into the CLI no longer crashes. With no terminal to prompt in it used to die inside readline; it now takes the defaults.
  • --install works on Windows. It asked for a path and then read a different variable, so it rejected every answer.
  • .gitignore reaches new projects. npm strips the file from published tarballs. (#14)
  • Boolean flags work at all. yargs-interactive passed its own option types through to yargs, which has never heard of confirm, so nothing was ever coerced and --libram=false arrived as a truthy string.

Internal

yargs-interactive, last published in 2022 and pinning inquirer 7 and yargs 14, is replaced by @clack/prompts and pargs. The project also picked up vitest, eslint, typechecking and CI along the way.

v0.3.0

Choose a tag to compare

@gausie gausie released this 19 Feb 12:46

Full Changelog: v0.2.2...v0.3.0

v0.2.2

Choose a tag to compare

@gausie gausie released this 20 Jan 20:32

Full Changelog: v0.2.1...v0.2.2

v0.2.1

Choose a tag to compare

@gausie gausie released this 20 Jan 11:03

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@gausie gausie released this 20 Jan 10:34

Full Changelog: v0.1.0...v0.2.0

v0.1.0

Choose a tag to compare

@gausie gausie released this 10 Jan 15:13
6b07d2f

Full Changelog: v0.0.20...v0.1.0

v0.1.0-beta.1

v0.1.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@gausie gausie released this 09 Jan 17:36
2cc5748

v0.1.0-beta

v0.1.0-beta Pre-release
Pre-release

Choose a tag to compare

@gausie gausie released this 09 Jan 17:22
71585fe

Full Changelog: v0.0.20...v0.1.0-beta

v0.0.20

Choose a tag to compare

@gausie gausie released this 08 Jan 19:38
f9be302

Full Changelog: v0.0.19...v0.0.20

v0.0.19

Choose a tag to compare

@gausie gausie released this 27 Sep 15:14
56d912b

Full Changelog: v0.0.18...v0.0.19