Skip to content

fix: Fix type imports in actions using github-script#13

Merged
fnesveda merged 1 commit into
mainfrom
fix/fix-type-imports
May 18, 2026
Merged

fix: Fix type imports in actions using github-script#13
fnesveda merged 1 commit into
mainfrom
fix/fix-type-imports

Conversation

@fnesveda
Copy link
Copy Markdown
Member

Apparently github-script can execute TypeScript files directly through Node.js, but it can't correctly remove type-only imports, even if all imports from a specific package are type-only. This causes the scripts to try to import from a package which might be only present as a dev-dependency, and that breaks the action.

I'm fixing it here by switching from import { type ... } to import type { ... }, which is removed correctly.

@fnesveda fnesveda self-assigned this May 18, 2026
@fnesveda fnesveda merged commit 7000329 into main May 18, 2026
3 checks passed
@fnesveda fnesveda deleted the fix/fix-type-imports branch May 18, 2026 10:20
fnesveda pushed a commit that referenced this pull request May 18, 2026
🤖 I have created a release *beep* *boop*
---


## [1.1.1](v1.1.0...v1.1.1)
(2026-05-18)


### Bug Fixes

* Fix type imports in actions using `github-script`
([#13](#13))
([7000329](7000329))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants