Skip to content

Commit

Permalink
chore: use imports instead of ESM requires
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdevpereira committed Sep 26, 2022
1 parent 08a01fa commit f48abd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const core = require("@actions/core");
const github = require("@actions/github");
const { exec } = require("@actions/exec");
const fs = require("fs");
const shellac = require("shellac");
import fs from "fs";
import core from "@actions/core";
import github from "@actions/github";
import { exec } from "@actions/exec";
import shellac from "shellac";

const SUPPORTED_TEST_FRAMEWORKS = ["jest"];
const COVERAGE_OUTPUT_FOLDER = "./coverage";
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "test-publish-to-cloudflare",
"version": "1.0.0",
"type": "module",
"packageManager": "pnpm@7.11.0",
"description": "Github action that runs the test command of a repository, generates the test coverage report, uploads the report to cloudflare pages and comments the results on available pull requests.",
"main": "index.js",
Expand Down Expand Up @@ -31,4 +32,4 @@
"@actions/github": "^5.1.0",
"shellac": "^0.7.2"
}
}
}

0 comments on commit f48abd3

Please sign in to comment.