Skip to content

Commit 3725dc6

Browse files
taeyzzzThanetpon Kultontikorn
andauthored
fix window path for namespace (#12)
Co-authored-by: Thanetpon Kultontikorn <[email protected]>
1 parent e93f568 commit 3725dc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "agoda-graphql-csharp-generator",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"main": "index.js",
55
"files": [
66
"dist"

src/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const deleteFiles = async (listFiles: string[]): Promise<void> => {
4848
// Remove input types region and update namespace/usings
4949
async function removeInputTypesRegion(filePath: string): Promise<void> {
5050
const fileName = path.parse(filePath).name.replace('.generated', '')
51-
const folder = path.dirname(filePath).replace(/\//g, '.')
51+
const folder = path.dirname(filePath).replace(/[/\\]/g, '.')
5252
const namespace = `${folder}.${fileName}`
5353

5454
let content = await fs.readFile(filePath, 'utf8')

0 commit comments

Comments
 (0)