Skip to content

Commit 446dcae

Browse files
Use path.resolve instead of require.resolve
1 parent b418e5e commit 446dcae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

automation/generate-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function main () {
2424
skipLibCheck: true
2525
};
2626

27-
const definitionFilePath = require.resolve(parsedArguments.interfaceFilePath);
27+
const definitionFilePath = path.resolve(parsedArguments.interfaceFilePath);
2828

2929
const program = TJS.getProgramFromFiles([definitionFilePath], compilerOptions);
3030

0 commit comments

Comments
 (0)