Skip to content

Commit 24f9b03

Browse files
committed
fix: fix ci-info not running in an ESM context
1 parent d485b24 commit 24f9b03

File tree

28 files changed

+56
-30
lines changed

28 files changed

+56
-30
lines changed

dist/legacy/assets/actions_python-B7InDb2U.js renamed to dist/legacy/assets/actions_python-juFJ8Ha1.js

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

dist/legacy/assets/actions_python-B7InDb2U.js.map renamed to dist/legacy/assets/actions_python-juFJ8Ha1.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/assets/actions_python-Dr1ce8ZD.mjs renamed to dist/modern/assets/actions_python-DZNSVoc3.mjs

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

dist/modern/assets/actions_python-Dr1ce8ZD.mjs.map renamed to dist/modern/assets/actions_python-DZNSVoc3.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/modern/setup-cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ci-log/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ci-log",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Colorful logging and print for any environment including GitHub Actions",
55
"repository": "https://github.com/aminya/setup-cpp",
66
"homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/ci-log",

packages/ci-log/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as core from "@actions/core"
2-
import { GITHUB_ACTIONS } from "ci-info"
2+
import ciInfo from "ci-info"
3+
const { GITHUB_ACTIONS } = ciInfo
34

45
export function error(err: string | Error) {
56
return GITHUB_ACTIONS ? core.error(err) : console.log(`\x1b[31m${err}\x1b[0m`)

0 commit comments

Comments
 (0)