We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75267de commit 988434eCopy full SHA for 988434e
src/main.ts
@@ -48,6 +48,11 @@ export async function createProject(options: Options) {
48
{
49
title: "🪄 Formatting files with prettier",
50
task: () => prettierFormat(targetDirectory),
51
+ skip: () => {
52
+ if (!options.install) {
53
+ return "Skipping because prettier install was skipped";
54
+ }
55
+ },
56
},
57
58
title: `📡 Initializing Git repository ${
src/tasks/prettier-format.ts
@@ -1,5 +1,6 @@
1
import { execa } from "execa";
2
3
+// TODO: Instead of using execa, use prettier package from cli to format targetDir
4
export async function prettierFormat(targetDir: string) {
5
try {
6
const result = await execa("yarn", ["format"], { cwd: targetDir });
0 commit comments