{"name":"jest-changed-files","version":"25.2.1","license":"MIT","_id":"jest-changed-files@25.2.1","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":"2dca2c81980479c940addee863d8e73cc3a6b322","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-25.2.1.tgz","fileCount":19,"integrity":"sha512-BB4XjM/dJNUAUtchZ2yJq50VK8XXbmgvt1MUD6kzgzoyz9F0+1ZDQ1yNvLl6pfDwKrMBG9GBY1lzaIBO3JByMg==","signatures":[{"sig":"MEUCIQD+jNNf/FfCZUBQb7M8mW9DPj0w5jjxVktkX9FreWb3lwIgG0p95R5d0VjxcNFmeizfjc+s57JoNKkhDJYF2WTyICU=","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\nwsFcBAEBCAAQBQJefG9XCRA9TVsSAnZWagAAs08P/139vpcaqElk6/yAwbG0\nsAoBYuvdiQJS92ibF2fujPn2IcqzY51FKdboFONaqBM3VWV8poy+hUMSg2o3\nDqnsA94Cko8CCmvxl35+O/lsbkZXXC2Kvo9x5Ow2mKhuKArZ4aTgEC/Em5/k\n3dbh0UL+pRINeM+C36FRvWgh3xfgHoRUY4Z/epc+LdNwCz6MMTYyfNbp15Ap\ndgGBSeC0xw680pLTDHvlQbK2l2Lg+wBNUPYoCp7lLBx2Ew2fxlCG5LnWgPUi\n27ev40y6WR3W/eGi9lL4u04FG9mADrnZsNmSYcL8OBqtn/xrYlUwZ6uW/Qzi\nZpj56LQZIKDaODtNymv0OtPd4hapVOczVH+RBJ2uAfmDuVHm+4wNn0sie+F2\n5FsDCaI/dR4ezzyMA6Z0wnl85Z1zXayaf7q2xsJ7htFPcicEvghCW5wmyMao\nh15BVvwmrqFEr9ZEJNsfgWRa7JeaenA9lCMFkSv42VyOV5H2go6AXK6p4eGt\niPeSmdP27Keb8Qq/18ePUujL8qleEGuuaMGBOdKBWR3C2vHGGSowIZHP8Ppn\nsftf0LXzoMoyv1j+O6mZsBcGYbNVe+PmFCMPlXB+AHFfphGexIlcCfLZfUIh\npfTjd22ArCFA8IqBFulwXKks3Mbuet0Qxi25RoLfsJrWbOHFbLfj3ewMcqO7\nsa8g\r\n=A6Eb\r\n-----END PGP SIGNATURE-----\r\n","size":5324,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-25.2.1.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 8.3"},"gitHead":"a679390828b6c30aeaa547d8c4dc9aed6531e357","_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.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.1"},"publishConfig":{"access":"public"},"typesVersions":{"<3.8":{"build/*":["build/ts3.4/*"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_25.2.1_1585213271245_0.524777918712882","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":1585213271418,"_cnpm_publish_time":1585213271418,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}