{"name":"jest-changed-files","version":"25.2.5","license":"MIT","_id":"jest-changed-files@25.2.5","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":"680dbd4749dd26d93bbeef98df1ac8186d36961f","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-25.2.5.tgz","fileCount":19,"integrity":"sha512-GbNNMMLB8HAGmhxotQgrR7CnFTovnuGtkkvIXO/sMajYkSkXUxsQqFplzP5p6v7HDI7q8d3yLi+LFE/6gsixmw==","signatures":[{"sig":"MEQCICrtBgt5t6pJp2RiMY2YvF2ghxZWiGfPfZ1FdWKbyWlHAiAC/inAQUBog1qZFUJjzFALhgQbezYVoDPnJhHsHxGwrg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehb0ICRA9TVsSAnZWagAAESYP/3BXojeWRg0DBovsnLz6\npLcdqBdfpFy2rIhdVm+g0TMtzZ1ncvspsnZ6EU6ZDWt7Qiyo7yIuEK7Dq6lp\nSe6scJhtc8iFIb+I19C19cv2rOfypXWLx2pMcHOR9OviuB7JfmPww9wNK3/s\n2jpNAz6knUxFt3fTXMiQF/8Q2lJ2afwvlxA7izr0Z4zhYtGiQ0HpGloZzU6U\nAeA+i5xRtTJ3Pn16lxmqw+80LbJuZQC3s+i0KEYikA5ztGu8UCKSpL2sAAic\ncjYvOf9KAwwBR5e0IUOx2HlzIR2HEyLXxR3oOx8yD0OiigVbNempxGh+5jIp\na4mjD9AwbZrWP+ym+I6DbC8QOookE050ti4bqCYlsXdAG5YjaHEfzoSoFtkN\nYGmbGvbbJ8R3Q+bhVK7IzSnOggpUjIA9W40p9x6ePfgU+o8qe2fYoxgTmqbL\nFuvcAhuwhKdOB7KZWk7O+5rLGvEru+PQp+3dxcnjyNqAXwFjSgqyaVrnUXRo\nX3Why7nWZsBld8Q76iIebZWv834E1zcZwjtDl1juaQDPEYQ9msMM49gZLLEi\nJSP5fgR3vVvaDXreu4cS8LGd0roX80xc7Cw9LM2UBZvmLveuP49HdmHny45c\nxGK7SZf0dUpdbIuThEiMns4Fs0P5UbJ9jwHYaq9QSbcRJCEzt3ljhMaFiPMK\nS4dn\r\n=edZ+\r\n-----END PGP SIGNATURE-----\r\n","size":5324,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-25.2.5.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 8.3"},"gitHead":"964ec0ea0754caa2d8bef16dc89c1f926971f5eb","_npmUser":{"name":"simenb","email":"sbekkhus91@gmail.com"},"deprecated":"Faulty publish, please use 25.2.6 or newer","repository":{"url":"git+https://github.com/facebook/jest.git","type":"git","directory":"packages/jest-changed-files"},"_npmVersion":"lerna/3.20.2/node@v12.14.1+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.14.1","dependencies":{"execa":"^3.2.0","throat":"^5.0.0","@jest/types":"^25.2.5"},"publishConfig":{"access":"public"},"typesVersions":{"<3.8":{"build/*":["build/ts3.4/*"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_25.2.5_1585822984324_0.3156377821942531","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":1585822984452,"_cnpm_publish_time":1585822984452,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}