{"name":"jest-changed-files","version":"24.9.0","license":"MIT","_id":"jest-changed-files@24.9.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":"rubennorte","email":"rubennorte@gmail.com"},{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"}],"homepage":"https://github.com/facebook/jest#readme","bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"08d8c15eb79a7fa3fc98269bc14b451ee82f8039","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-24.9.0.tgz","fileCount":15,"integrity":"sha512-6aTWpe2mHF0DhL28WjdkO8LyGjs3zItPET4bMSeXU6T3ub4FPMw+mcOcbdGXQOAfmLcxofD23/5Bl9Z4AkFwqg==","signatures":[{"sig":"MEQCIH9W546+RSMgrBWnYrI/C57Q70hEry1tc8VeOWNNWUeCAiAmIYpIpmGnh5ZfV3LeEeGqkNSaVJy01UG7ily1MIr1WA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19378,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVkVrCRA9TVsSAnZWagAAEWAP/1bjrowsz+tP0uXiktbu\nsTNBCi9Rau8FGyqAHR6KVcqykSQk9Ro2adnYb73lN+fGSI3ci3O3FKxgEN/H\n7D1RTfMkqm6XxEiL3CYoS/KWCWR/d0uWnmj2bO/YAnH66dl46U6ov1lVl3i+\n19DtUmwalwUt4FC/l6LenRHqo7ALKT6VtCCmGoz+hSPb9L+cJlz211zKPOdS\nE8r/A5Yp0JkcVevb309F2E/1IuchgyB0UOgzWfxfToKrMY75mdCc0G1zpuY6\nQcuiMdHVwTCxGc+IoBDcx1iUDZrvUsYZvg72EuWJpDgbsgmGbbCbVzp4vVUZ\nOQKXTuCrtU4L4ltyD0mxqsZ6xQpVukDllI+F9C2VD2KgdcLgIOFc/yJZVgEu\nm25LhZ0TXsy3lWjJDogoQLo12fpbRl9BeVhXX/bJgZX5wg4pwUbogtucG7Bt\nXp8Oc8tVe0eVSysDtZDurvIylE9BFxKwHWGAXgHWaFS/w+z4D0xbO8Bx225W\nXi368jzYw6jNerFWUTOPgjrlI8XGb+xaThrF364j3FA9Vkdc+pg8ee1gzgks\n7Mpv8f+upFGo7+zqoJM72keVtmRzhN3mkUQN/eMxdVUDH3TljoPEAhQC0yfd\nkVeEbAsfzHPlpnlFVB64rIhpUIE7JFq0eszdapfnaEYXtqBrsYJhAFvoN/Mu\negls\r\n=+GFQ\r\n-----END PGP SIGNATURE-----\r\n","size":5201,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-24.9.0.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 6"},"gitHead":"9ad0f4bc6b8bdd94989804226c28c9960d9da7d1","_npmUser":{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"},"repository":{"url":"git+https://github.com/facebook/jest.git","type":"git","directory":"packages/jest-changed-files"},"_npmVersion":"lerna/3.15.0/node@v11.12.0+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":"11.12.0","dependencies":{"execa":"^1.0.0","throat":"^4.0.0","@jest/types":"^24.9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/execa":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_24.9.0_1565934954424_0.1383112765667336","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":1565934954585,"_cnpm_publish_time":1565934954585,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}