{"name":"jest-changed-files","version":"24.5.0","license":"MIT","_id":"jest-changed-files@24.5.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"},{"name":"rubennorte","email":"rubennorte@gmail.com"}],"homepage":"https://github.com/facebook/jest#readme","bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"4075269ee115d87194fd5822e642af22133cf705","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-24.5.0.tgz","fileCount":16,"integrity":"sha512-Ikl29dosYnTsH9pYa1Tv9POkILBhN/TLZ37xbzgNsZ1D2+2n+8oEZS2yP1BrHn/T4Rs4Ggwwbp/x8CKOS5YJOg==","signatures":[{"sig":"MEYCIQC9NgNLPZX39sWZ0RlAXoTK8/XRD+2fNtxR0zFC0nbKXAIhAO2+CmflVPOO3SOEqWq76E5cSEqeea7RpDUoMsJdnvbt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch+ALCRA9TVsSAnZWagAAWAIP/iyCudVWTs0kNJ6cU5E+\nRIYfPgz/gDrJP10GOMrrfxM/Ej+tsCqMQbcuj6ouYbfQzwyVnx7OfXN0Q+2F\nv6/BRAzItfxjUNuJKj++cA6IwKLkXMSGCj7D0b7/yn/XyXT9CbfrUu3egZJ/\nU79wIxCd7TlD8ddp7D6GsJWNfYVVo30AWWJULuCIj437ouBBtCmdKSdiLfen\nAdYIn3huFH13RjRk7w/f8mCwuiV88GnrSWo1vW6LZRCW9qg35E70K8DhMWzB\nCaDmj/zdnDDpCsPfFojGTd7SOP7fkvDPKxbmLiELkraoQtrl1irZzaZgyZhy\n2Q/WM7jWNpqvItT3VU4ez6+p7oexbVJK96GnjlYc3/+12aYSbsRA7cHQS3dm\nUVjjS6c3kO/imBEOhoup1v7CLMDH2rFAXDNglObEfKWkP6CauiRBNeO0V1Zl\niy4gik5TGu/lzl8q7vmreXKiiQd9h26e8QflM3r7KgeWcZnvxbh1hXQiRKv8\naDdDHtTCG5q7r8ATBsMfv9g0PKtR/daiFZavm472CgTEEA1i9yoiU0JlIh2P\n7PLir6Im1WXLGY91rfnLCgikqvA+h3mgIDVHfDWIQCBwXXhMIZm3braA+Zsl\nLubi4m9qvVJSX8/Y43ciGg1qZ0O2bkaGgM+qnGa1qP+vwIJMbwzV4KXpVUsa\ndRE5\r\n=Q8vY\r\n-----END PGP SIGNATURE-----\r\n","size":5308,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-24.5.0.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 6"},"gitHead":"800533020f5b2f153615c821ed7cb12fd868fa6f","_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.13.1/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","@jest/types":"^24.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/execa":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_24.5.0_1552408586847_0.032976419822178915","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":1552408586988,"_cnpm_publish_time":1552408586988,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}