Skip to content

Commit a09b533

Browse files
committed
Minor bug solved with ts loader build for guix.
1 parent 9957043 commit a09b533

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/loaders/ts_loader/bootstrap/lib/compile.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
const path = require('path');
22
const fs = require('fs');
33
const ts = require('typescript');
4+
5+
const buildPath = path.join(__dirname, 'build');
6+
if (!fs.existsSync(buildPath)) {
7+
fs.mkdirSync(buildPath);
8+
}
9+
410
const { config, error } = ts.readConfigFile(path.join(path.resolve(__dirname), 'tsconfig.json'), ts.sys.readFile);
511
if (error) {
612
console.error(error);
713
process.exit(1);
814
}
15+
916
const { options, fileNames, errors } = ts.parseJsonConfigFileContent(
1017
config,
1118
ts.sys,

0 commit comments

Comments
 (0)