Removes excessive logging statements
Cleans up the codebase by removing unnecessary console log statements. These logs were primarily used for debugging and are no longer needed in the production code. This reduces noise in the console and improves overall performance.
This commit is contained in:
parent
383eab7524
commit
fafad16926
24 changed files with 4 additions and 275 deletions
4
build.js
4
build.js
|
|
@ -23,7 +23,6 @@ async function renameFiles(dir) {
|
|||
if (baseName !== kebabName) {
|
||||
const newPath = join(dirname(fullPath), kebabName + '.js');
|
||||
await rename(fullPath, newPath);
|
||||
console.log(`Renamed: ${entry.name} -> ${kebabName}.js`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -32,7 +31,6 @@ async function renameFiles(dir) {
|
|||
// Build with esbuild
|
||||
async function build() {
|
||||
try {
|
||||
console.log('Building TypeScript files...');
|
||||
|
||||
await esbuild.build({
|
||||
entryPoints: ['src/index.ts'],
|
||||
|
|
@ -46,9 +44,7 @@ async function build() {
|
|||
platform: 'browser'
|
||||
});
|
||||
|
||||
console.log('Bundle created: js/calendar.js');
|
||||
|
||||
console.log('Build completed successfully!');
|
||||
} catch (error) {
|
||||
console.error('Build failed:', error);
|
||||
process.exit(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue