![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/local/n/versions/node/14.15.4/lib/node_modules/npm/scripts/ |
Upload File : |
#!/usr/bin/env bash # script for creating a zip and tarball for inclusion in node unset CDPATH set -e rm -rf release *.tgz || true rm node_modules/node-gyp/gyp/pylib/gyp/*.pyc || true rm node_modules/node-gyp/gyp/pylib/gyp/generator/*.pyc || true mkdir release node ./bin/npm-cli.js pack --loglevel error >/dev/null mv *.tgz release cd release tar xzf *.tgz cp ../.npmrc package/ cp -r ../tap-snapshots package/ cp -r ../test package/ mkdir node_modules mv package node_modules/npm # make the zip for windows users cp node_modules/npm/bin/*.cmd . zipname=npm-$(node ../bin/npm-cli.js -v).zip zip -q -9 -r -X "$zipname" *.cmd node_modules # make the tar for node's deps cd node_modules tarname=npm-$(node ../../bin/npm-cli.js -v).tgz tar czf "$tarname" npm cd .. mv "node_modules/$tarname" . rm -rf *.cmd rm -rf node_modules cd .. echo "release/$tarname" echo "release/$zipname"