diff --git a/.eslintrc.json b/.eslintrc.json index 3e73697..0989143 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,6 +15,11 @@ "rules": { "i18n-text/no-en": "off", "eslint-comments/no-use": "off", + "import/extensions": [ + "error", + "ignorePackages", + { "json": "always", "ts": "never" } + ], "import/no-namespace": "off", "no-unused-vars": "off", "@typescript-eslint/no-unused-vars": [ diff --git a/src/index.ts b/src/index.ts index b795e0f..16d407a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,7 @@ * @packageDocumentation * Determinate Systems' TypeScript library for creating GitHub Actions logic. */ -import { version } from "../package.json"; +import { version as pkgVersion } from "../package.json"; import * as ghActionsCorePlatform from "./actions-core-platform.js"; import * as correlation from "./correlation.js"; import * as platform from "./platform.js"; @@ -121,7 +121,7 @@ export class IdsToolbox { this.facts = { $lib: "idslib", - $lib_version: version, + $lib_version: pkgVersion, project: this.actionOptions.name, ids_project: this.actionOptions.idsProjectName, };