{"name":"jest-changed-files","version":"26.0.0-alpha.0","license":"MIT","_id":"jest-changed-files@26.0.0-alpha.0","maintainers":[{"name":"aaronabramov","email":"aaron@abramov.io"},{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"davidzilburg","email":"davidzilburg@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"rubennorte","email":"rubennorte@gmail.com"},{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"}],"homepage":"https://github.com/facebook/jest#readme","bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"2bbe5ce3396486c61235d16b003752770cb6b5e7","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-26.0.0-alpha.0.tgz","fileCount":11,"integrity":"sha512-qRMR0awxfE+NJFSV45sEAwc+3c21xmLPF0cNq4E0MjTt0SnOMPqxFcm3PVimIogptfM3PXd4jlFhmNYnMAdjig==","signatures":[{"sig":"MEYCIQCkETEyLDEYH4Fs7/QfBOd1eJAP/LzJLW2hiwNQPWB/nQIhAIR+VIb1zGA3ShjgSVB2NJc1webC4YNm/a+Ymy5j5Gj3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerWPMCRA9TVsSAnZWagAAJ+8QAJKT+2m5w8bBEpCOxQzP\nNaMYBFyK/ESlQudCrD8qE3I3PQU+jNW2Qwi9maKOYA6a9IAk63Z0u9ZhrzKR\nVzY1w5EmQdMHgSwTKvPmJKYLaUwQv19IRFPixnyKcrx2CyuVMS0cS0kbIong\nmbbfiNjccZiCPUm7EGjE1TeTmwfrIv/xVl742UhYi54XJFQgs8xhTZMhtfDi\nzcXzxv99N8vkzLoM+KOXNWq++5B1Up96PlaXXO0er65IXBX9vGQHrKSvRb87\nYw1qwiCWSMwbYtBcyLV7Qw29Lzmre8QMhk5fQ4/+Axz0BVTQVuSY5V/327hi\njjcQk8JauZS7wxL/o7QpUggKERqNDJ1BH5rSae832suhZW5DLhRJUr++9WDR\nyCXEsaOpBy7CQsFa5J9ajfvgF9OBVPra1JHq0U+OBrUL9pvhlDa/6HnIKo8H\n9zhjLoKSeb0QjJquAmG1RaRNRp66IPZtTRFtf84tEuDOzB5Kwtjlhi/JYzbJ\ntQuCIMfqikdPvXifOhuIsLIl3a9gs8mrUPIjMUMu8d7Jl5qMxaD4gLiSqpUq\nvCI6m42xuEE0rvG5148Jxsgnu6LSI8PrA47pPXp6QweRc6kUnU7ywwPbGiiq\nTk0qIqBPACIxydpn8NKnXuqoRX60CXdi/gvDv1rQHLWbVQt+cTckjvv5vlyw\nF2Ew\r\n=rLS8\r\n-----END PGP SIGNATURE-----\r\n","size":4145,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-26.0.0-alpha.0.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 10.14.2"},"gitHead":"ba962e7e9669a4a2f723c2536c97462c8ddfff2d","_npmUser":{"name":"simenb","email":"sbekkhus91@gmail.com"},"repository":{"url":"git+https://github.com/facebook/jest.git","type":"git","directory":"packages/jest-changed-files"},"_npmVersion":"lerna/3.20.2/node@v12.16.3+x64 (darwin)","description":"A module used internally by Jest to check which files have changed since you last committed in git or hg.","directories":{},"_nodeVersion":"12.16.3","dependencies":{"execa":"^3.2.0","throat":"^5.0.0","@jest/types":"^26.0.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_26.0.0-alpha.0_1588421579956_0.5229878570018467","host":"s3://npm-registry-packages"},"readme":"# jest-changed-files\n\nA module used internally by Jest to check which files have changed since you last committed in git or hg.\n\n## Install\n\n```sh\n$ npm install --save jest-changed-files\n```\n\n## API\n\n### `getChangedFilesForRoots(roots: Array<string>, options: Options): Promise<ChangedFiles>`\n\nGet the list of files and repos that have changed since the last commit.\n\n#### Parameters\n\nroots: Array of string paths gathered from [jest roots](https://jestjs.io/docs/configuration#roots-arraystring).\n\noptions: Object literal with keys\n\n- lastCommit: boolean\n- withAncestor: boolean\n- changedSince: string\n\n### Returns\n\nA Promise of Object literal with keys\n\n- changedFiles: Set\\<string>\n- repos:\n  - git: Set\\<string>\n  - hg: Set\\<string>\n\n### findRepos(roots: Array<string>): Promise<Repos>\n\nGet a set of git and hg repositories.\n\n#### Parameters\n\nroots: Array of string paths gathered from [jest roots](https://jestjs.io/docs/configuration#roots-arraystring).\n\n### Returns\n\nA Promise of Object literal with keys\n\n- git: Set\\<string>\n- hg: Set\\<string>\n\n## Usage\n\n```javascript\nimport {getChangedFilesForRoots} from 'jest-changed-files';\n\ngetChangedFilesForRoots(['/path/to/test'], {\n  lastCommit: true,\n  withAncestor: true,\n}).then(files => {\n  /*\n  {\n    repos: [],\n    changedFiles: []\n  }\n  */\n});\n```\n\n```javascript\nimport {getChangedFilesForRoots} from 'jest-changed-files';\n\ngetChangedFilesForRoots(['/path/to/test'], {\n  changedSince: 'main',\n}).then(files => {\n  /*\n  {\n    repos: [],\n    changedFiles: []\n  }\n  */\n});\n```\n\n```javascript\nimport {findRepos} from 'jest-changed-files';\n\nfindRepos(['/path/to/test']).then(repos => {\n  /*\n  {\n    git: Set<Path>,\n    hg: Set<Path>\n  }\n  */\n});\n```\n","publish_time":1588421580085,"_cnpm_publish_time":1588421580085,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}