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

chore: Remove can't find package.json warning. #269

Merged
merged 1 commit into from May 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 1 addition & 9 deletions lib/audit-ci-version.ts
@@ -1,18 +1,10 @@
import type { AuditCiConfig } from "./config";
// Ignoring importing package.json because that changes the package's build
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { bugs, version } = require("../package.json");
import { yellow } from "./colors";
const { version } = require("../package.json");

export const auditCiVersion = version as string;

if (!auditCiVersion) {
console.log(
yellow,
`Could not identify audit-ci version. Please report this issue to ${bugs}.`
);
}

export function printAuditCiVersion(
outputFormat?: AuditCiConfig["output-format"]
) {
Expand Down