Skip to content

Commit f4dc290

Browse files
chore: remove debug code
1 parent 52f557c commit f4dc290

1 file changed

Lines changed: 6 additions & 16 deletions

File tree

source/import/components/steps/Install/CustomInstallation.tsx

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,8 @@ const CustomInstallation: FC<Props> = ({ projectName, onCompletion, customOption
4242
return featureSelected(feature, customOptions) ? [] : packages?.length ? packages : []
4343
}
4444

45-
const demoSupport = featureSelected('demo', customOptions)
46-
const subgraphSupport = featureSelected('subgraph', customOptions)
47-
const typedocSupport = featureSelected('typedoc', customOptions)
48-
const vocsSupport = featureSelected('vocs', customOptions)
49-
const huskySupport = featureSelected('husky', customOptions)
50-
45+
// Collects the packages to remove based on the selected features and makes
46+
// a string out of them so that we can pass it to `pnpm remove` command.
5147
const packagesToRemove = [
5248
...getPackages('subgraph'),
5349
...getPackages('typedoc'),
@@ -62,11 +58,6 @@ const CustomInstallation: FC<Props> = ({ projectName, onCompletion, customOption
6258
flexDirection={'column'}
6359
gap={0}
6460
>
65-
<Text color={'whiteBright'}>demo selected: {demoSupport ? 'true' : 'false'}</Text>
66-
<Text color={'whiteBright'}>subgraph selected: {subgraphSupport ? 'true' : 'false'}</Text>
67-
<Text color={'whiteBright'}>typedoc selected: {typedocSupport ? 'true' : 'false'}</Text>
68-
<Text color={'whiteBright'}>vocs selected: {vocsSupport ? 'true' : 'false'}</Text>
69-
<Text color={'whiteBright'}>husky selected: {huskySupport ? 'true' : 'false'}</Text>
7061
{!packagesToRemove ? (
7162
<Script>
7263
{/* If there are no packages to remove simply install everything... */}
@@ -90,13 +81,12 @@ const CustomInstallation: FC<Props> = ({ projectName, onCompletion, customOption
9081
<Spawn
9182
shell
9283
cwd={projectDir}
93-
// silent
84+
silent
9485
command={'pnpm'}
9586
args={['remove', packagesToRemove]}
96-
// runningText={'Working...'}
97-
// successText={'Done!'}
98-
// failureText={'Error...'}
99-
// onCompletion={onCompletion}
87+
runningText={'Working...'}
88+
successText={'Done!'}
89+
failureText={'Error...'}
10090
/>
10191
{/* ... but it won't run the post-install script, so we run the post-install scripts manually */}
10292
<Text color={'whiteBright'}>Executing post-install scripts</Text>

0 commit comments

Comments
 (0)