{"name":"jest-changed-files","version":"26.1.0","license":"MIT","_id":"jest-changed-files@26.1.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":"de66b0f30453bca2aff98e9400f75905da495305","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-26.1.0.tgz","fileCount":11,"integrity":"sha512-HS5MIJp3B8t0NRKGMCZkcDUZo36mVRvrDETl81aqljT1S9tqiHRSpyoOvWg9ZilzZG9TDisDNaN1IXm54fLRZw==","signatures":[{"sig":"MEUCIQCfXM/aFOLBdfKRi5SFXRtCTIT2cGUbiT2/C5Aq0MaJDQIgPe6vHNJFYEOK4BKddKwGgDUgOQJhk4TG5H8Dk/Ieqfw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8hx+CRA9TVsSAnZWagAAOpMQAIrcEbyGC+KUVCIIS56e\noCtrpOMN3UC64ejtkeAuhhJT3i4JHS24P4Wg8YQIJyRlzpeTljqc7SKXhMjH\ny27nDZ3apR3SxE4BEUt6/yDNw68TKNbYg6bUOULE9JzfcWwo1m5BWHV3hOx/\nQKBcuGKHneggNMfVy90V6eYA3707fSGtHtpYmZGyHtCrV4aCva7ijgMe1vjW\npiTtVZuTZLpI0MTzBnilpVX4omjjMcE284Qrz49PggcpcXUJnSLO1OWVasFC\nIrEmGOJP1yRKh6UelGKsbiW5+F+B7w+N90oZkyHAv1aU/wm9wHzNy1vJ3oik\nUw1JX0FQYXK358QlTq3Q2XvTzbTX9k0sfQWjwhr3GCwY+RH87dSvaX596mJ6\nApMEWdt6r7TSMewaq3fuLUkXNgsqc/ZvFbVKgsRH3FoqCUIqYpLs6OFGj/dd\ngYmaHsHNR2F6q8QeoLB8sKOOBEvE2ZG1nC+BUGbdP5DzLx3/Uz6dBoODTwUr\nWQcuHEiBJOBI4fGNI6WiVY0JvLCaWsBtlHKXQ2GJjoYP8JbHMAqrxGuAC6sj\nRNqXxKjB1AHvmnvu0SdHjc4m+6zLUpjehSQIzQxTNfQh1WIfC/qTr/ZY3i6M\nJtu/VcoLOSBY7dpfnQqTLLPBDcKIgo/0KeSQHLw41uOzQgQ4qsU6zI7tRUw1\nsE8q\r\n=6OJN\r\n-----END PGP SIGNATURE-----\r\n","size":4135,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-26.1.0.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 10.14.2"},"gitHead":"817d8b6aca845dd4fcfd7f8316293e69f3a116c5","_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.18.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.18.1","dependencies":{"execa":"^4.0.0","throat":"^5.0.0","@jest/types":"^26.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_26.1.0_1592925310416_0.38804237104443917","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":1592925310539,"_cnpm_publish_time":1592925310539,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}