Skip to content

Commit 82ae06a

Browse files
authored
fix(cli): codegen jsSrcsDir subpath (#14530)
* fix(cli): codegenWindows file glob for subpaths closes #14387 * Change files
1 parent dda13b3 commit 82ae06a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "fix(cli): codegenWindows file glob for subpaths",
4+
"packageName": "@react-native-windows/cli",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/@react-native-windows/cli/src/commands/codegenWindows/codegenWindows.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ export class CodeGenWindows {
143143
'modulesWindows',
144144
];
145145

146-
const jsRootPathRelative = path.relative(process.cwd(), jsRootDir);
146+
const jsRootPathRelative = path
147+
.relative(process.cwd(), jsRootDir)
148+
.split(path.sep)
149+
.join('/');
147150
const options: RnwCodeGenOptions = {
148151
files: [
149152
`${jsRootPathRelative}${

0 commit comments

Comments
 (0)