[BUG]: split('/') caused bug on windows (#6697)

* fix: trying to figure out this pathing issue

* fix: found the bug

* fix: adding linter rule

* fix: rule for join('/') as well

* fix: removing useless string template

* fix: removing useless string template

* fix: ???? What ????

* fix: remove unused import

* fix: circular dep was added when I cleaned up the path logic, fixed the circular dep by passing args from the parent function
This commit is contained in:
Kevin Nadro
2025-05-06 11:48:45 -05:00
committed by GitHub
parent e06a09ed42
commit 941eacd559
14 changed files with 100 additions and 29 deletions

View File

@ -155,14 +155,15 @@ export const systemIOMachineDesktop = systemIOMachine.provide({
input: {
context: SystemIOContext
requestedProjectName: string
requestedFileName: string
requestedFileNameWithExtension: string
requestedCode: string
rootContext: AppMachineContext
requestedSubRoute?: string
}
}) => {
const requestedProjectName = input.requestedProjectName
const requestedFileName = input.requestedFileName
const requestedFileNameWithExtension =
input.requestedFileNameWithExtension
const requestedCode = input.requestedCode
const folders = input.context.folders
@ -190,9 +191,10 @@ export const systemIOMachineDesktop = systemIOMachine.provide({
newProjectName
)
const { name: newFileName } = getNextFileName({
entryName: requestedFileName,
entryName: requestedFileNameWithExtension,
baseDir,
})
const configuration = await readAppSettingsFile()
// Create the project around the file if newProject