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

fix uglify script and remove pxtblocks reference #9874

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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