Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use ESM over CommonJS #97

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
760 changes: 231 additions & 529 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/sourcemap-register.cjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "sloth",
"version": "0.2.0",
"private": true,
"type": "module",
"exports": {
".": "./dist/index.js"
},
Expand Down
4 changes: 2 additions & 2 deletions src/display.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as core from "@actions/core";
import { RelevantCheckRuns } from "./relevant-check-runs";
import { CheckRun } from "./fetch-check-runs";
import { RelevantCheckRuns } from "./relevant-check-runs.js";

Check failure on line 2 in src/display.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module './relevant-check-runs.js'
import { CheckRun } from "./fetch-check-runs.js";

Check failure on line 3 in src/display.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module './fetch-check-runs.js'

const colors = {
reset: "\x1b[0m",
Expand Down
4 changes: 2 additions & 2 deletions src/fetch-check-runs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as github from "@actions/github";
import type { components } from "@octokit/openapi-types";
import { inputs } from "./inputs";
import { RelevantCheckRuns } from "./relevant-check-runs";
import { inputs } from "./inputs.js";

Check failure on line 3 in src/fetch-check-runs.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module './inputs.js'
import { RelevantCheckRuns } from "./relevant-check-runs.js";

Check failure on line 4 in src/fetch-check-runs.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module './relevant-check-runs.js'

export type CheckRun = components["schemas"]["check-run"];

Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as core from "@actions/core";
import { delay } from "./delay";
import { fetchCheckRuns } from "./fetch-check-runs";
import { inputs } from "./inputs";
import { Display } from "./display";
import { delay } from "./delay.js";

Check failure on line 2 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module './delay.js'
import { fetchCheckRuns } from "./fetch-check-runs.js";

Check failure on line 3 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module './fetch-check-runs.js'
import { inputs } from "./inputs.js";

Check failure on line 4 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module './inputs.js'
import { Display } from "./display.js";

Check failure on line 5 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module './display.js'

const startTime = new Date();

Expand Down
2 changes: 1 addition & 1 deletion src/relevant-check-runs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CheckRun } from "./fetch-check-runs";
import { CheckRun } from "./fetch-check-runs.js";

Check failure on line 1 in src/relevant-check-runs.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module './fetch-check-runs.js'

const failureConclusions = ["failure", "cancelled", "timed_out"];

Expand Down
Loading