create symlink for node_modules in generateJson and buildRadar scripts

This commit is contained in:
dennis.ludwig
2021-06-17 12:02:39 +02:00
parent 9f55196bd5
commit f5d4b3021c
8 changed files with 58 additions and 39 deletions

View File

@@ -32,6 +32,8 @@ process.env.NODE_ENV = "production";
process.on("unhandledRejection", function (err) {
throw err;
});
fs.removeSync(paths.templateNodeModules);
fs.ensureSymlinkSync(paths.appNodeModules, paths.templateNodeModules);
var runCommand = function (command) {
return new Promise(function (resolve, reject) {
var executedCommand = child_process_1.spawn(command, {