Skip to content

fix(schematics): resolve and quote paths correctly on Windows - #240

Merged
MartinFillon merged 1 commit into
NanoForge-dev:mainfrom
Raphael-Mabille:main
Sep 26, 2026
Merged

MartinFillon merged 1 commit into
NanoForge-dev:mainfrom
Raphael-Mabille:main

Conversation

@Raphael-Mabille

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR fixes schematic execution on Windows by correcting module-path conversion and command-line quoting.

problem :
import.meta.resolve -> generates files:/// on windows vs files:// on linux that skewed the following parsing causing an error.
fix :
use fileURLToPath to let node handle the path

problem :
this '${getModulePath(this.collection + "/collection.json")}:${name}'
cmd breaks with single quotes somehow
fix :
use double quotes

How do you test this PR?

use pnpm run new on windows

@MartinFillon
MartinFillon merged commit 6928a8c into NanoForge-dev:main Sep 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants