diff --git a/.changeset/blue-crabs-tie.md b/.changeset/blue-crabs-tie.md new file mode 100644 index 000000000..3089b87eb --- /dev/null +++ b/.changeset/blue-crabs-tie.md @@ -0,0 +1,5 @@ +--- +'@primer/octicons': patch +--- + +Update types for @primer/octicons-react to explicitly include extensions for different moduleResolution settings diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 200b2f2a4..eb904b2c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,6 +88,13 @@ jobs: run: yarn lint - name: Test run: yarn test + - name: Types + run: | + # Run @arethetypeswrong/cli + npx @arethetypeswrong/cli --pack . + + # Run publint + npx publint . --strict octicons_gem: name: 'gem:octicons' diff --git a/lib/octicons_react/src/index.d.ts b/lib/octicons_react/src/index.d.ts index ed922ea5b..3b7302c5b 100644 --- a/lib/octicons_react/src/index.d.ts +++ b/lib/octicons_react/src/index.d.ts @@ -2,7 +2,7 @@ import * as React from 'react' // eslint-disable-next-line prettier/prettier -import { Icon } from './__generated__/icons' +import {Icon} from './__generated__/icons.js' type Size = 'small' | 'medium' | 'large' @@ -20,4 +20,4 @@ export interface OcticonProps { verticalAlign?: 'middle' | 'text-bottom' | 'text-top' | 'top' | 'unset' } -export * from './__generated__/icons' +export * from './__generated__/icons.js'