mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 11:17:43 +01:00
* Adjust typescript types * adjust types * fix types in all helper files * Fix types * Migrate js files to ts files * Refactor to TS files * Rename extentions * Adjust imports * Fix builds * Update lockfile * Fix last typescript migration * Fix entry path @lucide/outline-svg * Fix types * add checkout step * format files * Format files
13 lines
363 B
TypeScript
13 lines
363 B
TypeScript
/* eslint-disable import/prefer-default-export */
|
|
import fs from 'fs/promises';
|
|
import path from 'path';
|
|
|
|
/**
|
|
* Resets the file contents.
|
|
*
|
|
* @param {string} fileName
|
|
* @param {string} outputDirectory
|
|
*/
|
|
export const resetFile = (fileName: string, outputDirectory: string): Promise<void> =>
|
|
fs.writeFile(path.join(outputDirectory, fileName), '', 'utf-8');
|