Skip to content

Commit 0559287

Browse files
committed
fix: avoid running prettier in source maps wizard if not main wizard
1 parent 6618604 commit 0559287

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sourcemaps/sourcemaps-wizard.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ You can turn this off by running the wizard with the '--disable-telemetry' flag.
131131
setupCI(selectedTool, authToken, options.comingFrom),
132132
);
133133

134-
await runPrettierIfInstalled({ cwd: process.cwd() });
134+
if (!preSelectedTool) {
135+
// running prettier is only necessary if the source maps wizard is the main flow
136+
// skip it, if it's called from another wizard (e.g. angular)
137+
await runPrettierIfInstalled({ cwd: process.cwd() });
138+
}
135139

136140
if (!preSelectedTool) {
137141
await traceStep('outro', () =>

0 commit comments

Comments
 (0)