Skip to content

Commit

Permalink
Minor bug solved with ts loader build for guix.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Apr 14, 2021
1 parent 9957043 commit a09b533
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/loaders/ts_loader/bootstrap/lib/compile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
const path = require('path');
const fs = require('fs');
const ts = require('typescript');

const buildPath = path.join(__dirname, 'build');
if (!fs.existsSync(buildPath)) {
fs.mkdirSync(buildPath);
}

const { config, error } = ts.readConfigFile(path.join(path.resolve(__dirname), 'tsconfig.json'), ts.sys.readFile);
if (error) {
console.error(error);
process.exit(1);
}

const { options, fileNames, errors } = ts.parseJsonConfigFileContent(
config,
ts.sys,
Expand Down

0 comments on commit a09b533

Please sign in to comment.