chore(prettier): full repo linting and code reformatting once and for all (#3627)
This commit is contained in:
1 parent
01500a2d4c
commit
9045ddaedc
656 files changed
+21737
-20628
No files matched your search
@@ -32,15 +32,11 @@ try {
|
||||
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
|
||||
if (packageJson.name !== 'ohif-monorepo-root') {
|
||||
console.log(packageJson);
|
||||
console.log(
|
||||
chalk.red('ohif-cli must run from the root of the OHIF platform')
|
||||
);
|
||||
console.log(chalk.red('ohif-cli must run from the root of the OHIF platform'));
|
||||
process.exit(1);
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(
|
||||
chalk.red('ohif-cli must run from the root of the OHIF platform')
|
||||
);
|
||||
console.log(chalk.red('ohif-cli must run from the root of the OHIF platform'));
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
@@ -142,15 +138,11 @@ program
|
||||
|
||||
program
|
||||
.command('link-extension <packageDir>')
|
||||
.description(
|
||||
'Links a local OHIF Extension to the Viewer to be used for development'
|
||||
)
|
||||
.description('Links a local OHIF Extension to the Viewer to be used for development')
|
||||
.action(packageDir => {
|
||||
if (!fs.existsSync(packageDir)) {
|
||||
console.log(
|
||||
chalk.red(
|
||||
'The Extension directory does not exist, please provide a valid directory'
|
||||
)
|
||||
chalk.red('The Extension directory does not exist, please provide a valid directory')
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
@@ -171,16 +163,10 @@ program
|
||||
|
||||
program
|
||||
.command('link-mode <packageDir>')
|
||||
.description(
|
||||
'Links a local OHIF Mode to the Viewer to be used for development'
|
||||
)
|
||||
.description('Links a local OHIF Mode to the Viewer to be used for development')
|
||||
.action(packageDir => {
|
||||
if (!fs.existsSync(packageDir)) {
|
||||
console.log(
|
||||
chalk.red(
|
||||
'The Mode directory does not exist, please provide a valid directory'
|
||||
)
|
||||
);
|
||||
console.log(chalk.red('The Mode directory does not exist, please provide a valid directory'));
|
||||
process.exit(1);
|
||||
}
|
||||
linkMode(packageDir, { viewerDirectory });
|
||||
|
||||
Reference in new issue
Block a user