Skip to content

Commit 225ff38

Browse files
committed
chore: fixing a unicorn issue
1 parent b89e6b1 commit 225ff38

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

packages/cta-engine/src/add-to-app.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ function isDirectory(path: string) {
2121
return statSync(path).isDirectory()
2222
}
2323

24-
// async function hasPendingGitChanges() {
25-
// const status = await execaSync('git', ['status', '--porcelain'])
26-
// return status.stdout.length > 0
27-
// }
24+
async function hasPendingGitChanges() {
25+
const status = await execaSync('git', ['status', '--porcelain'])
26+
return status.stdout.length > 0
27+
}
2828

2929
async function createOptions(
3030
json: PersistedOptions,
@@ -75,13 +75,13 @@ export async function addToApp(
7575
environment.intro(`Adding ${addOns.join(', ')} to the project...`)
7676
}
7777

78-
// if (await hasPendingGitChanges()) {
79-
// environment.error(
80-
// 'You have pending git changes.',
81-
// 'Please commit or stash them before adding add-ons.',
82-
// )
83-
// return
84-
// }
78+
if (await hasPendingGitChanges()) {
79+
environment.error(
80+
'You have pending git changes.',
81+
'Please commit or stash them before adding add-ons.',
82+
)
83+
return
84+
}
8585

8686
const newOptions = await createOptions(persistedOptions, addOns)
8787

packages/cta-ui/src/lib/server-fns.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { register as registerReactCra } from '@tanstack/cta-framework-react-cra'
66
import { register as registerSolid } from '@tanstack/cta-framework-solid'
77

88
import {
9-
addToApp,
9+
// addToApp,
1010
createApp,
1111
createAppOptionsFromPersisted,
1212
createDefaultEnvironment,

0 commit comments

Comments
 (0)