Skip to content

Commit 356cc99

Browse files
CopilotEndBug
andcommitted
fix: convert require() import to ES import for pretty-error
Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com>
1 parent fa1b6e7 commit 356cc99

2 files changed

Lines changed: 20 additions & 19 deletions

File tree

lib/index.js

Lines changed: 18 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// eslint-disable-next-line @typescript-eslint/no-var-requires
2-
require('pretty-error').start();
1+
import * as PrettyError from 'pretty-error';
2+
PrettyError.start();
33

44
import * as core from '@actions/core';
55
import githubLabelSync, {LabelInfo, Options} from 'github-label-sync';

0 commit comments

Comments
 (0)