Skip to content

Commit

Permalink
Fixed Postinstall script when no typescript package is present (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
CEbbinghaus authored Jan 15, 2023
1 parent 025897f commit ba2a821
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lipe",
"version": "0.3.2",
"version": "0.3.3",
"description": "A Logging library utilizing pipes",
"typings": "lib/Types",
"packageManager": "[email protected]",
Expand Down
14 changes: 7 additions & 7 deletions util/PostInstall.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ if(!shouldCompile) {
process.exit(0);
}

import { Compile } from "./CompileProject.mjs";

// Runs initial Build script if the lib folder doesn't exist (in case it was included as a git repository)
console.log(
"Library directory is missing. Must be installing from Git. Building project from source"
);

await VerifyDependencies().catch((error) => {
throw error;
});

);

await VerifyDependencies().catch((error) => {
throw error;
});

const { Compile } = await import("./CompileProject.mjs");
const Success = await Compile();

if (!Success) console.error("Failed to Build Source");
Expand Down

0 comments on commit ba2a821

Please sign in to comment.