Skip to content

Commit

Permalink
fix uglify script and remove pxtblocks reference
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll committed Feb 22, 2024
1 parent f4f80d5 commit f14e5b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripts/patchUglifyify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
2 changes: 0 additions & 2 deletions teachertool/src/components/CriteriaTable.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../../built/pxtblocks.d.ts"/>

import { useContext } from "react";
import { Strings } from "../constants";
import { AppStateContext } from "../state/appStateContext";
Expand Down

0 comments on commit f14e5b6

Please sign in to comment.