Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5541b4

Browse files
committed
Fix script file path
1 parent d7c681d commit b5541b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/separate-snippets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ async function main() {
183183
}
184184

185185
for (const snippetName in config.map) {
186-
const filePath = path.join(snippetDir, `${snippetName}.js`);
186+
const newFilePath = path.join(snippetDir, `${snippetName}.js`);
187187
const content = processSnippet(
188188
config.map[snippetName],
189189
filePath,
190190
config.prefix
191191
);
192-
fs.writeFileSync(filePath, content);
192+
fs.writeFileSync(newFilePath, content);
193193
}
194194
}
195195
}

0 commit comments

Comments
 (0)