Commit aa1c079e authored by rockyl's avatar rockyl

init

parent 7b25ecd9
......@@ -18,6 +18,10 @@ program
.option('-v, --verbose [boolean]', 'verbose mode', false)
.parse(process.argv);
if(!program.input || program.output){
process.exit(1);
}
const systemComponentsPath = path.join(os.homedir(), '.scilla', 'components');
const systemComponentsSrcPath = path.join(systemComponentsPath, 'src');
const tsconfig = fs.readJsonSync(path.join(systemComponentsPath, 'tsconfig.json'));
......@@ -46,7 +50,7 @@ if(program.verbose){
if(Object.keys(result.missingDependencies).length > 0){
console.warn(JSON.stringify(result.missingDependencies, null, '\t'));
process.exit(1);
process.exit(2);
}
fs.ensureDirSync(path.dirname(program.output));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment