Skip to content

Commit 5d54988

Browse files
CopilotEndBug
andauthored
fix: convert require() to ES import for pretty-error (#310)
* Initial plan * fix: convert require() import to ES import for pretty-error Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com>
1 parent 745172c commit 5d54988

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)