Skip to content

Commit 9950399

Browse files
committed
really working
1 parent 77bc544 commit 9950399

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

src/cta/lib/engine-handling/add-to-app-wrapper.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import {
55
createSerializedOptionsFromPersisted,
66
readConfigFile,
77
writeConfigFileToEnvironment,
8+
createAppOptionsFromPersisted,
9+
recursivelyGatherFiles,
810
} from '@tanstack/cta-engine'
911

1012
import { TMP_TARGET_DIR } from '../constants'
@@ -26,8 +28,7 @@ export async function addToAppWrapper(
2628
}
2729
) {
2830
// Dynamically import only the heavy file operation stuff
29-
const { addToApp, createAppOptionsFromPersisted, recursivelyGatherFiles } =
30-
await import('@tanstack/cta-engine')
31+
const { addToApp } = await import('@tanstack/cta-engine')
3132

3233
const projectPath = getProjectPath()
3334

src/cta/lib/engine-handling/generate-initial-payload.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
getRawRegistry,
77
getRegistryAddOns,
88
readConfigFile,
9+
recursivelyGatherFiles,
910
} from '@tanstack/cta-engine'
1011

1112
import { ensureFrameworkRegistered } from './framework-registry'
@@ -37,9 +38,6 @@ function convertAddOnToAddOnInfo(addOn: any): AddOnInfo {
3738
}
3839

3940
export async function generateInitialPayload() {
40-
// Dynamically import only the heavy file operation stuff
41-
const { recursivelyGatherFiles } = await import('@tanstack/cta-engine')
42-
4341
// Ensure framework is registered
4442
ensureFrameworkRegistered()
4543

src/forge/engine-handling/add-to-app-wrapper.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import {
55
createSerializedOptionsFromPersisted,
66
readConfigFile,
77
writeConfigFileToEnvironment,
8+
createAppOptionsFromPersisted,
9+
recursivelyGatherFiles,
810
} from '@tanstack/cta-engine'
911

1012
import { TMP_TARGET_DIR } from '~/forge/constants'
@@ -22,12 +24,9 @@ export async function addToAppWrapper(
2224
}
2325
) {
2426
// Dynamically import only the heavy file operation stuff
25-
const {
26-
addToApp,
27-
createAppOptionsFromPersisted,
28-
createMemoryEnvironment,
29-
recursivelyGatherFiles,
30-
} = await import('@tanstack/cta-engine')
27+
const { addToApp, createMemoryEnvironment } = await import(
28+
'@tanstack/cta-engine'
29+
)
3130

3231
const projectPath = getProjectPath()
3332

src/forge/engine-handling/generate-initial-payload.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
getRawRegistry,
77
getRegistryAddOns,
88
readConfigFile,
9+
recursivelyGatherFiles,
910
} from '@tanstack/cta-engine'
1011

1112
import type { AddOnInfo } from '~/forge/types'
@@ -36,9 +37,6 @@ function convertAddOnToAddOnInfo(addOn: any): AddOnInfo {
3637
}
3738

3839
export async function generateInitialPayload() {
39-
// Dynamically import only the heavy file operation stuff
40-
const { recursivelyGatherFiles } = await import('@tanstack/cta-engine')
41-
4240
// Ensure framework is registered
4341
ensureFrameworkRegistered()
4442

0 commit comments

Comments
 (0)