mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-19 23:17:16 +03:00
run transpilePackagesWithCustomTranspilerPaths on a thread
This commit is contained in:
parent
846b58336f
commit
94897624f2
@ -11,7 +11,7 @@ const runApmInstall = require('./run-apm-install');
|
||||
|
||||
require('colors');
|
||||
|
||||
module.exports = function() {
|
||||
function transpilePackagesWithCustomTranspilerPaths() {
|
||||
console.log(
|
||||
`Transpiling packages with custom transpiler configurations in ${
|
||||
CONFIG.intermediateAppPath
|
||||
@ -78,7 +78,7 @@ module.exports = function() {
|
||||
intermediatePackageBackup.restore();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function transpilePath(path) {
|
||||
fs.writeFileSync(
|
||||
@ -86,3 +86,7 @@ function transpilePath(path) {
|
||||
CompileCache.addPathToCache(path, CONFIG.atomHomeDirPath)
|
||||
);
|
||||
}
|
||||
|
||||
const { expose } = require(`${CONFIG.scriptRunnerModulesPath}/threads/worker`);
|
||||
expose(transpilePackagesWithCustomTranspilerPaths);
|
||||
module.exports = transpilePackagesWithCustomTranspilerPaths;
|
||||
|
Loading…
Reference in New Issue
Block a user