Skip to content

Commit bfcb5e8

Browse files
committed
another path translation bug
1 parent d966cb8 commit bfcb5e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native-node-api-modules/src/node/path-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function normalizeModulePath(modulePath: string) {
135135
const dirname = path.normalize(path.dirname(modulePath));
136136
const basename = path.basename(modulePath);
137137
const strippedBasename = stripExtension(basename).replace(/^lib/, "");
138-
return path.join(dirname, strippedBasename);
138+
return path.join(dirname, strippedBasename).replace(/\\/g, "/");
139139
}
140140

141141
export function escapePath(modulePath: string) {

0 commit comments

Comments
 (0)