-
Notifications
You must be signed in to change notification settings - Fork 116
/
dangerfile.ts
31 lines (24 loc) · 1.16 KB
/
dangerfile.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import changesetsThatNeedCoreCheck from "./.danger/changesets-that-need-core-check";
import missingChangesetsCheck from "./.danger/missing-changesets-check";
import missingUpgradeGuide from "./.danger/missing-upgrade-guide-check";
// https://danger.systems/js/reference.html
import packageJsonCheck from "./.danger/package-json-check";
import pinExternalDeps from "./.danger/pin-external-deps";
import websitePageVrtCheck from "./.danger/website-page-vrt-check";
import { getRepoPackages } from "./tools/utils/getRepoPackages";
import type { PackageShape } from "./tools/utils/getRepoPackages";
// eslint-disable-next-line import/no-default-export
export default async (): Promise<void> => {
// Get all the repo packages here and share it all around as it's async
const packageList: PackageShape[] | null = await getRepoPackages();
// Check package json file
packageJsonCheck();
// Check for packages that have missing changeset
if (packageList) missingChangesetsCheck(packageList);
// Check changesets that need core
changesetsThatNeedCoreCheck();
// Check that new external deps are pinned
pinExternalDeps();
missingUpgradeGuide();
websitePageVrtCheck();
};