Convert simple-icons manual backup from submodule to tracked files

This commit is contained in:
MayaChat
2025-11-24 14:51:23 -05:00
parent 30bbe7a0a4
commit f363db5e47
3467 changed files with 42987 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
#!/usr/bin/env node
// @ts-check
/**
* @file
* Clean files built by the build process.
*/
import fs from 'node:fs/promises';
import path from 'node:path';
import process from 'node:process';
import {fileExists} from '../utils.js';
const files = [
'index.js',
'index-icons.js',
'index.mjs',
'index-icons.mjs',
'index.d.ts',
'sdk.js',
];
try {
Promise.all(
files.map(async (file) => {
const filepath = path.resolve(import.meta.dirname, '..', '..', file);
if (!(await fileExists(filepath))) {
console.error(`File ${file} does not exist, skipping...`);
return;
}
return fs.unlink(filepath);
}),
);
} catch (error) {
console.error('Error cleaning files:', error);
process.exit(1);
}