Use esbuild also for AMD variant

This commit is contained in:
Alex Dima 2021-11-12 01:02:23 +01:00
parent 63e425ffe2
commit 829ee45850
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
5 changed files with 85 additions and 100 deletions

View file

@ -81,8 +81,8 @@ exports.removeDir = removeDir;
*/
function tsc(_projectPath) {
const projectPath = path.join(REPO_ROOT, _projectPath);
console.log(`Launching compiler at ${_projectPath}...`);
cp.spawnSync(process.execPath, [path.join(__dirname, '../node_modules/typescript/lib/tsc.js'), '-p', projectPath], { stdio: 'inherit', stderr: 'inherit' });
console.log(`Compiled ${_projectPath}`);
}
exports.tsc = tsc;