PATH:
usr
/
lib
/
node_modules
/
pm2
const fs = require('fs'); const path = require('path'); // Determine platform const isWindows = process.platform === 'win32'; if (!isWindows) process.exit(0) const sourceFile = 'bin/pm2-windows'; const destinationFile = 'bin/pm2'; // Resolve file paths const sourcePath = path.resolve(__dirname, sourceFile); const destinationPath = path.resolve(__dirname, destinationFile); // Copy the appropriate file based on the platform fs.copyFile(sourcePath, destinationPath, (err) => { if (err) { console.error(`Error copying file from ${sourcePath} to ${destinationPath}:`, err); process.exit(1); } console.log(`Successfully copied ${sourceFile} to ${destinationFile}`); });
[+]
node_modules
[-] GNU-AGPL-3.0.txt
[edit]
[-] npm-shrinkwrap.json
[edit]
[-] constants.js
[edit]
[-] bun.lock
[edit]
[-] README.md
[edit]
[-] .gitattributes
[edit]
[-] pm2
[edit]
[+]
lib
[-] package.json
[edit]
[-] run.sh
[edit]
[+]
bin
[-] CONTRIBUTING.md
[edit]
[-] preinstall.js
[edit]
[+]
..
[+]
.claude
[-] LICENSE
[edit]
[-] .mocharc.js
[edit]
[-] unit_time
[edit]
[+]
types
[-] paths.js
[edit]
[-] index.js
[edit]
[-] CHANGELOG.md
[edit]