diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f9071e9..1980f03e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,3 +79,32 @@ jobs: - name: Run tests run: pnpm ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup working-directory: test-app + + typescript-compatibility: + name: Type checking - ${{ matrix.typescript-scenario }} + runs-on: ubuntu-latest + + needs: [test] + + strategy: + fail-fast: false + matrix: + typescript-scenario: + - typescript@5.0 + - typescript@5.1 + - typescript@next + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install pnpm + uses: wyvox/action-setup-pnpm@v3 + with: + node-version: 16.x + args: "--frozen-lockfile" + - name: Update TS version + run: pnpm add -D ${{ matrix.typescript-scenario }} + working-directory: ember-amount-input + - name: Type checking + run: pnpm lint:types + working-directory: ember-amount-input diff --git a/README.md b/README.md index c6425425..8a4c8b72 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Easily create a money input with the currency of your liking. ## Compatibility - Ember.js v3.28 or above +- TypeScript v5.0 or above - Embroider or ember-auto-import v2 ## Installation diff --git a/ember-amount-input/rollup.config.mjs b/ember-amount-input/rollup.config.mjs index aa685186..a70f717f 100644 --- a/ember-amount-input/rollup.config.mjs +++ b/ember-amount-input/rollup.config.mjs @@ -18,7 +18,7 @@ export default { plugins: [ // These are the modules that users should be able to import from your // addon. Anything not listed here may get optimized away. - addon.publicEntrypoints(['components/**/*.js']), + addon.publicEntrypoints(['components/**/*.js', 'template-registry.js']), // These are the modules that should get reexported into the traditional // "app" tree. Things in here should also be in publicEntrypoints above, but diff --git a/ember-amount-input/src/components/amount-input.hbs b/ember-amount-input/src/components/amount-input.hbs index ccbc91f5..a2c43572 100644 --- a/ember-amount-input/src/components/amount-input.hbs +++ b/ember-amount-input/src/components/amount-input.hbs @@ -1,4 +1,3 @@ -{{! @glint-nocheck: not typesafe yet }}