fix: make build work with npm
This commit is contained in:
committed by
Bastian
parent
fcdbb403e6
commit
39618b7e9e
@@ -57,10 +57,10 @@ var runCommand = function (command) {
|
||||
});
|
||||
};
|
||||
var buildTemplate = function () {
|
||||
var packageManager = fs.existsSync(paths.appYarnLock) ? "yarn" : "npx";
|
||||
var packageManager = fs.existsSync(paths.appYarnLock) ? "yarn" : "npm";
|
||||
fs.emptyDirSync(paths.templateBuild);
|
||||
process.chdir(paths.template);
|
||||
return runCommand(packageManager + " build");
|
||||
return runCommand(packageManager + " run build");
|
||||
};
|
||||
buildTemplate().then(function () {
|
||||
fs.copySync(paths.templateBuild, paths.appBuild);
|
||||
|
||||
Reference in New Issue
Block a user