{"name":"jest-changed-files","version":"25.3.0","license":"MIT","_id":"jest-changed-files@25.3.0","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":"85d8de6f4bd13dafda9d7f1e3f2565fc0e183c78","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-25.3.0.tgz","fileCount":19,"integrity":"sha512-eqd5hyLbUjIVvLlJ3vQ/MoPxsxfESVXG9gvU19XXjKzxr+dXmZIqCXiY0OiYaibwlHZBJl2Vebkc0ADEMzCXew==","signatures":[{"sig":"MEUCIQDmFb9BBXg9citB9NKrEGSGt7SfMhdqAPcY/TGGfHPe3wIgDCFBckDlxfxadr7n6t8e5qJBVF5xOQb7qZEPyLG13jU=","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\nwsFcBAEBCAAQBQJejc/HCRA9TVsSAnZWagAAO3IP/jratcSWroTJKJNMCfts\nSewqnxEiZAqGLauF2rJ3XpdNi5y8p6JafZHJKW095aP2eTPGR2ms/+2yo7q1\ni4Tgx0ft45RguIGqMBk8JO+GzuWVfhzg+vqInvmWTE+Mq5dzCzJ7tZcVVkkH\nYenRtfFngmGGmUXWztKnbxdcp1VHDhBA8rSx1lEKS6utdobOJRt638r8B1OA\nYSWY0Ke9aKe6Bd9bnvgmXLTPHSiApeEOd5njGkbGMhLD1JIo5+lwvyIzHf7v\nKgbF1lcP0v0JIPYTHkwiaFj/z9fEtPp7KwmqO6B4M/SYf1zvoZ07AAoFdWcf\nYx4waRSndJnjaC36eg7MOF08BTioEypSpXtbd+NE/mLSDzi2eCRb8BmvJU6T\nYuicCg3staL3duQLFHS6oNTMfoH/Ht5AnWCmzDJ5Wmsh0Y4nWKnmgSkiXfSA\n7IVmBMZ8OF0b4RYaKQFU57H9ZG1y2SfQ9BOhoQnhLHXevzFAJ4zh39eqhaDn\n45bY02NDBqhYNAaSOmNaw0p7JQPbWugyqeuMf/jQGSVzXMgB7jlBCP7vjhvl\nLmZgdhsHC2stv+DfEm+rLT+Te6HZ+cwSjr/LFuDlr2niruZr9BMhJ5HvTAVQ\nkPOVfFexHe++hkzjUuc0Rb2LrPFrdRtkmNv0PB5laN8gK+ed3F+nNkn8Spfq\n6WFw\r\n=lCTp\r\n-----END PGP SIGNATURE-----\r\n","size":5322,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-25.3.0.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 8.3"},"gitHead":"45a4936d96d74cdee6b91122a51a556e3ebe6dc8","_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.16.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.16.1","dependencies":{"execa":"^3.2.0","throat":"^5.0.0","@jest/types":"^25.3.0"},"publishConfig":{"access":"public"},"typesVersions":{"<3.8":{"build/*":["build/ts3.4/*"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_25.3.0_1586352071020_0.4112968605386562","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":1586352071170,"_cnpm_publish_time":1586352071170,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}