Skip to content

Commit 4422e61

Browse files
authored
fix: Fix path usage for node 14 (#34)
1 parent fad67de commit 4422e61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/src/commands/GenerateCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Command, Option, UsageError } from "clipanion";
22
import * as t from "typanion";
33
import fsExtra from "fs-extra";
4-
import path from "path/posix";
4+
import _path from "path";
55
import * as swc from "@swc/core";
66
import prettier from "prettier";
77
import { fileURLToPath } from "url";
@@ -11,6 +11,7 @@ import { Config, FromOptions, Namespace } from "../types";
1111
import { getOpenAPISourceFile } from "../core/getOpenAPISourceFile.js";
1212
import { parseOpenAPISourceFile } from "../core/parseOpenAPISourceFile.js";
1313

14+
const path = _path.posix;
1415
const __filename = fileURLToPath(import.meta.url);
1516

1617
// if no config -> tell the user to do `openapi-codegen init`

0 commit comments

Comments
 (0)