@bigbinary/neeto-audit-frontend 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-audit-frontend",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Audits neeto frontend codebase for issues and suggests a fix.",
5
5
  "type": "module",
6
6
  "bin": "./dist/index.js",
package/src/cli.js CHANGED
@@ -1,3 +1,5 @@
1
+ import chalk from "chalk";
2
+
1
3
  import { getCliOptions, runVerifiers } from "./utils";
2
4
  import verifiers from "./verifiers";
3
5
 
@@ -7,4 +9,6 @@ const run = async () => {
7
9
  runVerifiers({ verifiers, autoFix, debug });
8
10
  };
9
11
 
10
- run();
12
+ process.env.SKIP_AUDIT === "true"
13
+ ? console.log(chalk.green("Skipped frontend audit"))
14
+ : run();
@@ -252,7 +252,7 @@ export const getNanoType = async () => {
252
252
 
253
253
  const projectGitName =
254
254
  remoteOriginUrl.split("git@github.com:bigbinary/").at(1) ||
255
- remoteOriginUrl.split("https://github.com/bigbinary/").at(1);
255
+ remoteOriginUrl.split("github.com/bigbinary/").at(1);
256
256
 
257
257
  const projectName = projectGitName.split(".git").at(0);
258
258