Skip to content

Commit 02060bf

Browse files
author
Kyle Smith
committed
Remove path.format since it's not available in all node versions
1 parent 272c37b commit 02060bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generate/scripts/generateNativeCode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ module.exports = function generateNativeCode() {
120120
enabled.forEach(function(idef) {
121121
if (idef.type && idef.type != "enum") {
122122
utils.writeFile(
123-
path.format({dir: tempSrcDirPath, name: idef.filename, ext: ".cc"}),
123+
path.join(tempSrcDirPath, idef.filename + ".cc"),
124124
templates[idef.type + "_content"].render(idef),
125125
idef.type + "_content.cc"
126126
);
127127

128128
utils.writeFile(
129-
path.format({dir: tempIncludeDirPath, name: idef.filename, ext: ".h"}),
129+
path.join(tempIncludeDirPath, idef.filename + ".h"),
130130
templates[idef.type + "_header"].render(idef),
131131
idef.type + "_header.h"
132132
);

0 commit comments

Comments
 (0)