mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-07-10 01:19:16 +02:00
* setup icon popularity call * Adjust sort button * Adjust sorting * Adds aliases * Format code * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Add check for env variable * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Improve styling on mobile * Remove hardcoded sort icon * Fix build * Format code --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
16 lines
564 B
TypeScript
16 lines
564 B
TypeScript
import fs from 'fs/promises';
|
|
import path from 'path';
|
|
|
|
const currentDir = process.cwd();
|
|
const dataDirectory = path.resolve(currentDir, '.vitepress/data');
|
|
const stopwordsSource = path.resolve(currentDir, `../brand-stopwords.json`);
|
|
const stopwordsFile = path.resolve(dataDirectory, `brandStopwords.json`);
|
|
|
|
fs.copyFile(stopwordsSource, stopwordsFile)
|
|
.then(() => {
|
|
console.log('Successfully copied brandStopwords.json file');
|
|
})
|
|
.catch((error) => {
|
|
throw new Error(`Something went wrong generating the brandStopwords.json file,\n ${error}`);
|
|
});
|