fix build cli

This commit is contained in:
Eugenio Romano
2019-06-07 10:46:27 +01:00
parent 7a3e2932bb
commit 8a2a71d60b
4 changed files with 37 additions and 14 deletions

View File

@@ -11,32 +11,32 @@ var program = require('commander');
var templatePath = path.resolve(__dirname, 'templates', 'licensePage.ejs');
const nonStandardLicenses = {
"public domain": "PDDL-1.0",
"apache": "Apache-2.0",
"bsd": "BSD-2-Clause"
'public domain': 'PDDL-1.0',
'apache': 'Apache-2.0',
'bsd': 'BSD-2-Clause'
};
const missingRepos = {
"@alfresco/adf-testing": "https://github.com/Alfresco/alfresco-ng2-components",
"@webassemblyjs/helper-api-error": "https://github.com/xtuc/webassemblyjs",
"@webassemblyjs/helper-fsm": "https://github.com/xtuc/webassemblyjs",
"@webassemblyjs/ieee754": "https://github.com/xtuc/webassemblyjs",
"@webassemblyjs/leb128": "https://github.com/xtuc/webassemblyjs",
"adf-tslint-rules": "https://github.com/Alfresco/alfresco-ng2-components",
"adf-monaco-extension": "https://github.com/eromano/aca-monaco-extension",
"indexof": "https://github.com/component/indexof",
"rxjs-compat": "https://github.com/ReactiveX/rxjs/tree/master/compat",
'@alfresco/adf-testing': 'https://github.com/Alfresco/alfresco-ng2-components',
'@webassemblyjs/helper-api-error': 'https://github.com/xtuc/webassemblyjs',
'@webassemblyjs/helper-fsm': 'https://github.com/xtuc/webassemblyjs',
'@webassemblyjs/ieee754': 'https://github.com/xtuc/webassemblyjs',
'@webassemblyjs/leb128': 'https://github.com/xtuc/webassemblyjs',
'adf-tslint-rules': 'https://github.com/Alfresco/alfresco-ng2-components',
'adf-monaco-extension': 'https://github.com/eromano/aca-monaco-extension',
'indexof': 'https://github.com/component/indexof',
'rxjs-compat': 'https://github.com/ReactiveX/rxjs/tree/master/compat',
};
program
.usage('<versionNumber>')
.parse(process.argv);
var packageJson = JSON.parse(fs.readFileSync(path.resolve('./','package.json')), 'utf8');
var packageJson = JSON.parse(fs.readFileSync(path.resolve('./','package.json')));
if (!packageJson) {
console.error('Move in the path where you have the package.json');
return;
throw '';
}
console.log(path.resolve('./','package.json'));