{"name":"jest-changed-files","version":"24.0.0-alpha.2","license":"MIT","_id":"jest-changed-files@24.0.0-alpha.2","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":"64aaa9a493f98919824c5fa05696f318ca0abeb6","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-24.0.0-alpha.2.tgz","fileCount":6,"integrity":"sha512-QyV/Fa9wxBALp99pojvAu3jNpCyWkoNciatc5U/5wGLbyFbSYruGs6LG8uVtSJNdDKRh2PssAnzTBWTmVBXajg==","signatures":[{"sig":"MEUCIDN8bK4QTIdkvcaXExgNBOYeo39AA+oxna4qcAysb5EzAiEAjBk+tID9KJ9zyEBVkTZN5u8EtO5DRIzY3DjuSCRd7Kk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13679,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0ZuMCRA9TVsSAnZWagAAircP/31Ab7yE1gupgq4KdIzZ\nFIgux3s2BGkhdhFuMmDrjTCd7mT0OMMnbPHbDgG7WtkiAUow1vo6afTo3+PC\nn0qZUup/x4Vd6EuSLcdsQttK9ORHGw/nrbfozolLG/dL1dIje8bU9u/U1hJw\nsvLUcOayt05hqKL7lb/5vRA31qZpy9ifI8g94GrGREPcV2Nzf1gEjtCgmJIp\nI+8B8y40+2rud088i3LGF8vyQt2eB5nAU6LlLSzueAqj+EtkB9UM6z5nmveJ\nilJC8w7wRvBfZl2tlwwXYrBfYgA/ZSVeUPxcOOhuanUzXlX2nc62lFOR+W/6\nHlA4LHAzPLq87HWroDicRjLkpJm2O4l8siyYLqS6cnWqOPLNBh07cuehNL3d\nVG27IyZDUjnSQZVDldvkvNduiEZiGA2AYjPuM79mjWoMh2JFdiBxkNmEB/op\ntrXQ8rcFkG5Bv6HeFh45xSIBB5br7/9QP6EZOpulnmF0iOTFbSsRzhiknGmR\nDEJZU172HmcMN5HFemiPvrEuTLzUV2XcJuBSm1lAWm/FzgXfT4oZJbZZPXjt\nVCXKh9nak6SvCAkAi+BOGn0G+yjyGcKK++z2rBr27UgOdcvE6CGnNnUYH0d1\n4zVfZvoQl4yANL7hkOlhilOxgNt46vNnzo0IfwOgZz21YWbh/WV08VmL+oc2\nzIXF\r\n=bfA4\r\n-----END PGP SIGNATURE-----\r\n","size":3872,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-24.0.0-alpha.2.tgz"},"main":"build/index.js","engines":{"node":">= 6"},"gitHead":"c5e36835cff4b241327db9cf58c8f6f7227ed1f7","_npmUser":{"name":"rubennorte","email":"rubennorte@gmail.com"},"repository":{"url":"git+https://github.com/facebook/jest.git","type":"git"},"_npmVersion":"5.6.0","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-alpha.2_1540463499904_0.5201523021272683","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":1540463500073,"_cnpm_publish_time":1540463500073,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}