Skip to content

Commit

Permalink
Fix tsc path
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Jan 28, 2024
1 parent fff987b commit 8d713aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make.js
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ function writeTSProject(projectdir, projectFiles, options) {

// Hermes compiler
if (globalThis.flags.with_hermes) {
let shermes = projectdir + '/../armorcore/hermes/linux/shermes';
let shermes = __dirname + '/hermes/linux/shermes';
let include = __dirname + '/hermes/include';

// '-parse-ts' '-emit-c'
Expand All @@ -853,7 +853,7 @@ function writeTSProject(projectdir, projectFiles, options) {
}
// TS compiler
else {
let tsc = path.resolve(projectdir + '/../../armorcore/Tools/tsc/tsc.js');
let tsc = path.resolve(__dirname + '/Tools/tsc/tsc.js');
globalThis.require = require;
globalThis.module = {};
globalThis.__filename = tsc;
Expand Down

0 comments on commit 8d713aa

Please sign in to comment.