mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
fixed test files + added clean for environment.ts + fixed set-env script bug
This commit is contained in:
@@ -45,8 +45,11 @@ const processEnv = {
|
||||
} as GlobalConfig;
|
||||
|
||||
import(environmentFilePath)
|
||||
.then((file) => generateEnvironmentFile(merge.all(commonEnv, file.environment, processEnv)))
|
||||
.catch(() => generateEnvironmentFile(merge(commonEnv, processEnv)));
|
||||
.then((file) => generateEnvironmentFile(merge.all([commonEnv, file.environment, processEnv])))
|
||||
.catch(() => {
|
||||
console.log(colors.orange.bold(`No specific environment file found for ` + environment));
|
||||
generateEnvironmentFile(merge(commonEnv, processEnv))
|
||||
});
|
||||
|
||||
function generateEnvironmentFile(file: GlobalConfig): void {
|
||||
file.production = production;
|
||||
|
Reference in New Issue
Block a user