@codesys/mcp-toolkit 1.1.4 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,25 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ // Create the dist/scripts directory if it doesn't exist
5
+ const scriptsDir = path.join(__dirname, '../src/scripts');
6
+ const distScriptsDir = path.join(__dirname, '../dist/scripts');
7
+
8
+ if (!fs.existsSync(distScriptsDir)) {
9
+ fs.mkdirSync(distScriptsDir, { recursive: true });
10
+ }
11
+
12
+ // Copy all Python scripts from src/scripts to dist/scripts
13
+ const scriptFiles = fs.readdirSync(scriptsDir);
14
+ console.log(`Copying ${scriptFiles.length} Python scripts to dist/scripts...`);
15
+
16
+ for (const file of scriptFiles) {
17
+ if (file.endsWith('.py')) {
18
+ const srcPath = path.join(scriptsDir, file);
19
+ const destPath = path.join(distScriptsDir, file);
20
+ fs.copyFileSync(srcPath, destPath);
21
+ console.log(`Copied ${file}`);
22
+ }
23
+ }
24
+
25
+ console.log('All Python scripts copied successfully!');