Skip to content

Commit

Permalink
Added ESM compatibility bridge for imported package read-file-string
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaid committed May 27, 2022
1 parent c6dd207 commit cbec801
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {debug, endGroup, getInput, info, setFailed, startGroup} from "@actions/c
import {context, getOctokit} from "@actions/github"
import detectIndent from "detect-indent"
import purdy from "purdy"
import readFileString from "read-file-string"
import readFileString from "./lib/esm/read-file-string.js"

import chalk from "./lib/chalk.js"
import DescriptionProperty from "./lib/DescriptionProperty.js"
Expand Down
3 changes: 3 additions & 0 deletions src/lib/esm/read-file-string.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import commonJsModule from "read-file-string"

export default commonJsModule.default

0 comments on commit cbec801

Please sign in to comment.