fix(refactor): use named imports (#879)

Allows better tree shaking while bundling.
This commit is contained in:
Michael Kriese 2024-11-08 13:41:42 +01:00 committed by GitHub
parent 5343762d53
commit 4d91b7f286
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 77 additions and 36 deletions

View file

@ -1,6 +1,6 @@
import * as core from '@actions/core';
import Input from './input';
import Renovate from './renovate';
import { Input } from './input';
import { Renovate } from './renovate';
import { setFailed } from '@actions/core';
async function run(): Promise<void> {
try {
@ -10,7 +10,7 @@ async function run(): Promise<void> {
await renovate.runDockerContainer();
} catch (error) {
console.error(error);
core.setFailed(error as Error);
setFailed(error as Error);
}
}