Skip to content

Commit

Permalink
using "as" doesn't verify as much as you'd want
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Mar 13, 2021
1 parent c36b974 commit 47ea37f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 46 deletions.
56 changes: 26 additions & 30 deletions auto.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ import { IBrewPluginOptions } from "./plugins/brew";
import { IGhPagesPluginOptions } from "./plugins/gh-pages";
import { IAllContributorsPluginOptions } from "./plugins/all-contributors";

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

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

const brewOptions: IBrewPluginOptions = {
executable: "./packages/cli/binary/auto-macos.gz",
name: "auto",
};

const ghPagesOptions: IGhPagesPluginOptions = {
buildCommand: "yarn docs:build",
dir: "docs/out",
};

/** Auto configuration */
export default function rc(): AutoRc {
return {
Expand All @@ -17,40 +39,14 @@ export default function rc(): AutoRc {
"./packages/cli/binary/auto-win.exe.gz",
],
],
[
"npm",
{
exact: true,
canaryScope: "@auto-canary",
} as INpmConfig,
],
["npm", npmOptions],
"released",
"first-time-contributor",
"pr-body-labels",
"./scripts/auto-update-curl-version.js",
[
"all-contributors",
{
types: {
plugin: "**/plugin/**/*",
code: ["**/src/**/*", "**/package.json", "**/tsconfig.json"],
},
} as IAllContributorsPluginOptions,
],
[
"brew",
{
executable: "./packages/cli/binary/auto-macos.gz",
name: "auto",
} as IBrewPluginOptions,
],
[
"gh-pages",
{
buildCommand: "yarn docs:build",
dir: "docs/out",
} as IGhPagesPluginOptions,
],
["all-contributors", allContributorsOptions],
["brew", brewOptions],
["gh-pages", ghPagesOptions],
],
labels: [
{
Expand Down
30 changes: 14 additions & 16 deletions docs/pages/docs/configuration/autorc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,25 @@ 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",
{
exact: true,
canaryScope: "@auto-canary",
} as INpmConfig,
],
[
"all-contributors",
{
types: {
plugin: "**/plugin/**/*",
code: ["**/src/**/*", "**/package.json", "**/tsconfig.json"],
},
} as IAllContributorsPluginOptions,
],
["npm", npmOptions],
["all-contributors", allContributorsOptions],
],
labels: [
{
Expand Down

0 comments on commit 47ea37f

Please sign in to comment.