diff --git a/scripts/patchUglifyify.js b/scripts/patchUglifyify.js index 3583c35e491c..0cb80697b6b1 100644 --- a/scripts/patchUglifyify.js +++ b/scripts/patchUglifyify.js @@ -4,8 +4,9 @@ const fs = require("fs"); const path = require("path"); +// uglifyify is a dev dependency so it might not exist if (!fs.existsSync(path.resolve("./node_modules/uglifyify/package.json"))) { - throw new Error("Uglifyify not found! Run this script from the root of the repo and make sure you ran npm install"); + return; } const packageJson = JSON.parse(fs.readFileSync(path.resolve("./node_modules/uglifyify/package.json"), "utf8")); diff --git a/teachertool/src/components/CriteriaTable.tsx b/teachertool/src/components/CriteriaTable.tsx index 64431d2278de..1cfe7f6cb801 100644 --- a/teachertool/src/components/CriteriaTable.tsx +++ b/teachertool/src/components/CriteriaTable.tsx @@ -1,5 +1,3 @@ -/// - import { useContext } from "react"; import { Strings } from "../constants"; import { AppStateContext } from "../state/appStateContext";