Skip to content

Commit

Permalink
v0.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Jan 21, 2024
1 parent 4f0ed1f commit 427d84d
Show file tree
Hide file tree
Showing 2,926 changed files with 16,920 additions and 3,580 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.12
0.0.13
22 changes: 22 additions & 0 deletions bin/js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/js/index.js.map

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions bin/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,33 @@ async function main() {
await versionWriter.writeVersionToFile('VERSION', packageConfig.version);



// TypeScript Icon Export File
// --------------------------------------------------------------------
async function generateExports() {
const iconsDir = CONFIG.path.ts_output_icons;
const exportFilePath = path.join(CONFIG.path.ts_input, 'icons.ts');
let exportStatements = '';

try {
const files = await fs.readdir(iconsDir);
files.forEach(file => {
if (file.endsWith('.ts') && file !== 'index.ts') {
const moduleName = path.basename(file, '.ts');
exportStatements += `export * from './icons/${moduleName}';\n`;
}
});

await fs.writeFile(exportFilePath, exportStatements);
console.log('Export file created successfully');
} catch (error) {
console.error('Error generating exports:', error);
}
}

generateExports();


// Compile TypeScript to JavaScript
// --------------------------------------------------------------------
const tsCompiler = new TypeScriptCompiler();
Expand Down
Loading

0 comments on commit 427d84d

Please sign in to comment.