Skip to content

Commit

Permalink
chore: Remove can't find package.json warning. (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnturner committed May 20, 2022
1 parent 93215e1 commit 87fdd42
Showing 1 changed file with 1 addition and 9 deletions.
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

0 comments on commit 87fdd42

Please sign in to comment.