Skip to content

Commit a6dbb07

Browse files
committed
fix(cli): replace fs-jetpack type import with local definition
1 parent a722655 commit a6dbb07

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/weak-rules-arrive.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'create-expo-stack': patch
3+
'rn-new': patch
4+
---
5+
6+
fix(cli): replace fs-jetpack type import with local definition

cli/src/utilities/validateProjectName.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { cancel, confirm, isCancel, spinner } from '@clack/prompts';
2-
import { ExistsResult } from 'fs-jetpack/types';
32
import { GluegunPrompt } from 'gluegun';
43

4+
// Type from fs-jetpack (transitive dependency via gluegun)
5+
type ExistsResult = false | 'dir' | 'file' | 'other';
6+
57
export async function validateProjectName(
68
exists: (path: string) => ExistsResult,
79
removeAsync: (path?: string) => Promise<void>,

0 commit comments

Comments
 (0)