r2g
r2g copied to clipboard
▷ Test your package in the published format, without having to publish to NPM.
We should probably preserve file permissions when using ```bash $ rsync -r --perms ```
https://www.cyberciti.biz/faq/unix-linux-appleosx-bsd-tar-remove-directory/
https://unix.stackexchange.com/questions/105/chroot-jail-what-is-it-and-how-do-i-use-it Use chroot to prevent dropping below $HOME/.r2g/temp
```js 'use strict' const fs = require('fs'); const path = require('path'); let current = path.dirname(process.cwd()); const home = process.env.HOME; let renameThisDir = 'node_modules'; let renameTo = 'r2g_nodemodules'; if (process.argv[2] ===...
see: https://blog.greenkeeper.io/one-simple-trick-for-javascript-package-maintainers-to-avoid-breaking-their-user-s-software-and-to-6edf06dc5617
https://stackoverflow.com/questions/51352821/prevent-dev-branch-from-being-worked-on-locally
When users want to test their dependency X for another project Y, they may want to test X as a devDependency of Y. Right now r2g always installs it is...
right now in smoke-tester.ts we are using Promise.all, but this should really be in series, for simplicity, etc.
``` npm install --save-exact ``` should save the exact versions, better for libraries.
https://github.com/nodejs/node/issues/21789