From 2feac6323a816fed3b2f816aafdc10c85d37c425 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 29 Aug 2024 07:55:50 +0100 Subject: [PATCH 1/3] feat: are the types wrong workflow --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ded183f66..1f599d321 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,6 +67,14 @@ jobs: - uses: actions/checkout@v4 - uses: ./.github/actions/prepare - run: pnpm tsc + are_the_types_wrong: + name: Are the types wrong? + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/prepare + - run: pnpm build + - run: npx --yes @arethetypeswrong/cli --pack . --ignore-rules cjs-resolves-to-esm name: CI From 572637100e93524fa4deae1f90cd9550a521b160 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 29 Aug 2024 08:05:54 +0100 Subject: [PATCH 2/3] fix: lint --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f599d321..dc1a7b433 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,12 @@ jobs: + are_the_types_wrong: + name: Are the types wrong? + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/prepare + - run: pnpm build + - run: npx --yes @arethetypeswrong/cli --pack . --ignore-rules cjs-resolves-to-esm build: name: Build runs-on: ubuntu-latest @@ -67,14 +75,6 @@ jobs: - uses: actions/checkout@v4 - uses: ./.github/actions/prepare - run: pnpm tsc - are_the_types_wrong: - name: Are the types wrong? - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: ./.github/actions/prepare - - run: pnpm build - - run: npx --yes @arethetypeswrong/cli --pack . --ignore-rules cjs-resolves-to-esm name: CI From 9d0ddeea54d62c60bdb5a90b6af9c25166ff5f4e Mon Sep 17 00:00:00 2001 From: John Date: Thu, 29 Aug 2024 08:09:56 +0100 Subject: [PATCH 3/3] fix: snapshot --- script/__snapshots__/migrate-test-e2e.ts.snap | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/script/__snapshots__/migrate-test-e2e.ts.snap b/script/__snapshots__/migrate-test-e2e.ts.snap index 0d3be3139..c633fd135 100644 --- a/script/__snapshots__/migrate-test-e2e.ts.snap +++ b/script/__snapshots__/migrate-test-e2e.ts.snap @@ -3,6 +3,19 @@ exports[`expected file changes > .github/workflows/ci.yml 1`] = ` "--- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml +@@ ... @@ + jobs: +- are_the_types_wrong: +- name: Are the types wrong? +- runs-on: ubuntu-latest +- steps: +- - uses: actions/checkout@v4 +- - uses: ./.github/actions/prepare +- - run: pnpm build +- - run: npx --yes @arethetypeswrong/cli --pack . --ignore-rules cjs-resolves-to-esm + build: + name: Build + runs-on: ubuntu-latest @@ ... @@ jobs: - uses: ./.github/actions/prepare - run: pnpm run test --coverage