{"name":"jest-changed-files","version":"24.3.0","license":"MIT","_id":"jest-changed-files@24.3.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":"7050ae29aaf1d59437c80f21d5b3cd354e88a499","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-24.3.0.tgz","fileCount":16,"integrity":"sha512-fTq0YAUR6644fgsqLC7Zi2gXA/bAplMRvfXQdutmkwgrCKK6upkj+sgXqsUfUZRm15CVr3YSojr/GRNn71IMvg==","signatures":[{"sig":"MEUCIDTRCUMl5EQW5P41Rwk7w41/jq/dfSg84iSWair+GgHEAiEA9wU6ac98dZ6S5Y4ZlR5Pi+G+0kJiVp0LEVw14ldI1ZY=","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\nwsFcBAEBCAAQBQJcgRW8CRA9TVsSAnZWagAAOogP/iWe5GlkqUF0e+qmt4j1\nr8m/WAy8Nwx5j8SfREAcgVAUIjuC7uGzBL401f8aYn9/hdVp3g6sfjHqOdkY\nvJAa748I7izfhiKdihOdgO1DKE2iQvFMyG1zgYABvvTvRmN9gMVgMiQet+KV\n8Q59EZzLycLes8olvk1RjSfTmyqFk6JAT77+BdSQq/hwppANTGOWf3ez+q+H\nIPBTEFUKPjNxM+M4LpUiFAZhzbPU9C3TxZqzexbps7aEG41bN9lgrBZwiR8g\nOg0gDw3qqym6Uf+iX3+iU7RjWhY6IHJITzZS+/hcOOQyocSuPwhB4IOxHXD5\nbrknerLy2JYSWbxjtCcinA575cVh93vgmpYNJiS+s0rrN8nzIzSfsh+nuTi8\nmpVXHLJyMhmVLEDhTUnIOApOHYCECoI1Dr7gwL3SfgMaHEl0CAtteQoGGnoH\nr9FkF8DHBbHbtJIFDVBL+rGc+zsmipaeSld8tOyuxQXK+lrfANy77J9CdP2D\n6NZhXwNEyAR8BqFdfSEAwTFB9bWfebUQdNT2n4zQcB4lIl1RgWODRsn+MBqJ\ngpgcKS3jlBQji2mO7vJwZ90h/UxJ7b51Zdr2DQZw5rSOzVQwRWhKE/nSdpC9\nuXw/KHhBkajK2/rkcZhLwCOraOZz+wNxfI4UXMmcmECWLcOXDzQSswk5uxQv\njEvW\r\n=bmSe\r\n-----END PGP SIGNATURE-----\r\n","size":5309,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-24.3.0.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 6"},"gitHead":"3a7a4f3a3f5489ac8e07dcddf76bb949c482ec87","_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.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/execa":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_24.3.0_1551963579574_0.02322001425022835","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":1551963579704,"_cnpm_publish_time":1551963579704,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}