{"name":"jest-changed-files","version":"24.0.0","license":"MIT","_id":"jest-changed-files@24.0.0","maintainers":[{"name":"aaronabramov","email":"aaron@abramov.io"},{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"jeanlauliac","email":"jean@lauliac.com"},{"name":"mjesun","email":"mjesun@hotmail.com"}],"homepage":"https://github.com/facebook/jest#readme","bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"c02c09a8cc9ca93f513166bc773741bd39898ff7","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-24.0.0.tgz","fileCount":6,"integrity":"sha512-nnuU510R9U+UX0WNb5XFEcsrMqriSiRLeO9KWDFgPrpToaQm60prfQYpxsXigdClpvNot5bekDY440x9dNGnsQ==","signatures":[{"sig":"MEUCIAY++ju4qr1/FFJiW6w/awSYVLE9GsysIlYBVMVUxhyCAiEAwpB6/0iYsoBvKhFBO39nXVIfL75dBJDHQqv6R/L1NsM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15201,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSyWKCRA9TVsSAnZWagAA5N0P/jr8ulfDnX0AETiK3QOj\nG6sNX1ueSDImw8dg+vUobnDbkYDzVFLDCMKjMSAqNbKaTQttDRAcqMYl2+gW\n+zB1rRvkFDRdFkSWi5k2u62RSfXkHdtUHSa766/hH0BfIOJ/cENEGIJPd/Q9\nH/UsSGkfW8JjZCjZhZpNd9ITKojYNwbeH7Kjj4vTKqCl1qCf/61JBz9fS+da\n+v8IxDqu7lu2mML6LA8IQIxBnfsduRZUjWireOKHkuSPS0OHAVLrdDhv7eE8\n3cb/ZsGMiThHrBMma/U9gvxFkx3atLcGxAjcWGEErDRU+1cAnJkiCnFnS2n7\nuX0AeC9XdcKYxGvG936lQG1ocxU0+DswJWtPAv4a30/v+uIWJ6yLWMq3nbOd\nr/YDOp3CbIPvFqWTp1SqaP+GVU2yUWi4C7JRUTwSwEGyBLKUbnnJ1CEZc9jt\n/zz05vmskByLbMGmUl1JxrJCUE0Zm3ZBOK+uKci3jfRv4nZNUkC1z9clz6Xl\n4OI6K++PhPurGt/PpvWclu32bHnB3mzDQZjm7c/Nhp3DM4bgr/Dnj0Iw/3RB\n1oMYzZEOdn0EJhZK5UxLceArzl2eUjIwmcSgbhCbIoD9JyogwJqBZaZ2AAeJ\naQ3ydbJq1LzlFGrluiE63hbVp/bHEMgDs4x4xQcGfUaj14FZ4lcZW5pT/kJ6\nH4SF\r\n=xx9L\r\n-----END PGP SIGNATURE-----\r\n","size":4053,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-24.0.0.tgz"},"main":"build/index.js","engines":{"node":">= 6"},"gitHead":"634e5a54f46b2a62d1dc81a170562e6f4e55ad60","_npmUser":{"name":"rubennorte","email":"rubennorte@gmail.com"},"repository":{"url":"git+https://github.com/facebook/jest.git","type":"git","directory":"packages/jest-changed-files"},"_npmVersion":"lerna/3.10.5/node@v8.11.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":"8.11.3","dependencies":{"execa":"^1.0.0","throat":"^4.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_24.0.0_1548428681926_0.8532084853188966","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":1548428682040,"_cnpm_publish_time":1548428682040,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}