Skip to content

Commit 541e7f0

Browse files
committed
Emit type definitions with cjs format
- Currently there is no difference between emitting type definitions with `cjs` or `esm` format, the only difference is the file extension. So we emit the type definitions with a `cjs` format to preserve the previous `.d.ts` extension as opposed to the new `.d.mts` extension.
1 parent 9abd7b2 commit 541e7f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-and-test-types.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111

112112
# Note: We currently expect "FalseCJS" failures for Node16 + `moduleResolution: "node16",
113113
- name: Run are-the-types-wrong
114-
run: npx @arethetypeswrong/cli@latest ./package.tgz --format table --ignore-rules false-esm
114+
run: npx @arethetypeswrong/cli@latest ./package.tgz --format table --ignore-rules false-cjs
115115

116116
test-published-artifact:
117117
name: Test Published Artifact ${{ matrix.example }}

0 commit comments

Comments
 (0)