Skip to content

Commit 9a18574

Browse files
Rename pathUtils for consistency
1 parent 8978eb4 commit 9a18574

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

env-model-generator/src/env-model-generator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import * as program from "commander";
66
import * as fs from "fs-extra";
77
import * as _ from "lodash";
8-
import * as path from "path";
8+
import * as pathUtils from "path";
99
import { BlankLine, Braces, Class, FnCall, Null, Return } from "./JavaCode";
1010
import * as model from "./model";
1111
import parseSpringXmlConfigFile from "./parse-spring-xml";
@@ -89,7 +89,7 @@ async function transformConfigFile(fileName: string, options: any) {
8989
return;
9090
}
9191
// Create folder to store it in based on the package name
92-
const appContextFolder = path.join(...packageName.split("."));
92+
const appContextFolder = pathUtils.join(...packageName.split("."));
9393
try {
9494
outputPath = createPath(appContextFolder, outputPath);
9595
} catch (err) {
@@ -98,7 +98,7 @@ async function transformConfigFile(fileName: string, options: any) {
9898
return;
9999
}
100100
// Write file
101-
const outputFileName = path.resolve(outputPath, "ClassPathXmlApplicationContext.java");
101+
const outputFileName = pathUtils.resolve(outputPath, "ClassPathXmlApplicationContext.java");
102102
try {
103103
await fs.writeFile(outputFileName, output, "utf8");
104104
console.log("Output written to %s", outputFileName);

0 commit comments

Comments
 (0)