refactor: Migrate nodes build system to tsup (no-changelog) (#14192)

This commit is contained in:
Alex Grozav
2025-03-27 17:22:04 +02:00
committed by GitHub
parent f427202cd0
commit 2da0c86e4d
15 changed files with 117 additions and 23 deletions

View File

@@ -0,0 +1,12 @@
const glob = require('fast-glob');
const fs = require('fs');
const path = require('path');
function copyJsonFiles(baseDir) {
const files = glob.sync('nodes/**/*.node.json', { cwd: baseDir });
for (const file of files) {
fs.copyFileSync(path.resolve(baseDir, file), path.resolve(baseDir, 'dist', file));
}
}
copyJsonFiles(process.argv[2]);