mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor: Migrate nodes build system to tsup (no-changelog) (#14192)
This commit is contained in:
12
packages/nodes-base/scripts/copy-nodes-json.js
Normal file
12
packages/nodes-base/scripts/copy-nodes-json.js
Normal 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]);
|
||||
Reference in New Issue
Block a user