Skip to content

v10.20.0

Compare
Choose a tag to compare
@adierkens adierkens released this 13 Mar 21:21
· 831 commits to main since this release

Release Notes

Write auto configuration in TypeScript (#1875)

You can now author your auto configuration in TypeScript 🎉

This makes it a bit easier to validate your configuration as you write it. All of the options come with jsDoc so you can get documentation super easy.

You can even pull in the options types for plugins!

import { AutoRc } from "auto";

import { INpmConfig } from "@auto-it/core";
import { IAllContributorsPluginOptions } from "@auto-it/all-contributors";

const npmOptions: INpmConfig = {
  exact: true,
  canaryScope: "@auto-canary",
};

const allContributorsOptions: IAllContributorsPluginOptions = {
  types: {
    plugin: "**/plugin/**/*",
    code: ["**/src/**/*", "**/package.json", "**/tsconfig.json"],
  },
};

/** Auto configuration */
export default function rc(): AutoRc {
  return {
    plugins: [
      "released",
      ["npm", npmOptions],
      ["all-contributors", allContributorsOptions],
    ],
    labels: [
      {
        name: "blog-post",
        changelogTitle: "📚 Blog Post",
        releaseType: "none",
      },
    ],
  };
}

🚀 Enhancement

Authors: 1