reprod
Quickly create reproduction examples of third party code
Usage
$ npm i -g reprod$ reprod -n zeit/swr@0.1.16 ✔ Preparing Dependencies ✔ Creating Files Finished creating reproduction! $ cd swr-repro-<tab>...
Library Owner Usage
Create a .reprod.js
file in the root directory of the project.
Build it to match the code below:
;
const pkg = ;module { return package: // This whole object gets thrown into a `package.json` file dependencies: pkgname: version // Any other dependencies here files: path: 'index.ts' content: `import Library from ''; Library.doSomethingAwesomeThatBreaks();` }
You can test this by running reprod
in the library directory.
Check out this library's .reprod.js
for an example.