{"name":"jest-changed-files","version":"29.4.0","license":"MIT","_id":"jest-changed-files@29.4.0","maintainers":[{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"},{"name":"rubennorte","email":"rubennorte@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"aaronabramov","email":"aaron@abramov.io"},{"name":"davidzilburg","email":"davidzilburg@gmail.com"}],"homepage":"https://github.com/facebook/jest#readme","bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"ac2498bcd394228f7eddcadcf928b3583bf2779d","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-29.4.0.tgz","fileCount":9,"integrity":"sha512-rnI1oPxgFghoz32Y8eZsGJMjW54UlqT17ycQeCEktcxxwqqKdlj9afl8LNeO0Pbu+h2JQHThQP0BzS67eTRx4w==","signatures":[{"sig":"MEUCIQDa3hTXGmnstGzDf94q0LCSCtrpi6+dsI76rvyMnwvlNwIgDfvcUttG3KspAUcTlQXWmPaL7AbrlNRGFCQY5z+K8p8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjz7kvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqggg//fvnuPNyXAsZxSPANGMrE8vXmEjNbVvE6cfQWd0v3eStXsve0\r\n310EdeKBHY9eCpKcDyoiQ3OjBD1K9F2wpnXBRmK149ibDjuQ3WNYWXolhwzH\r\nREXRBuFEpOdH24HGM+tNzu9czhGu9xnrqp3jU+1TpLeF6jqdecsewW4p3fjj\r\n9IX9wwiEo6fBARP7clkAfu7Cz33MokQZi5L5CfpBaGn8QEnnr68syXbglCFW\r\n/Bxi/JNQkhPWjQfoIBu7GSbaTcq/i8OjuJewX6f0t7egtVcSrb7yR/lab0uh\r\nm+cOVRFpoD3J3iLs/WHhFYDy9MFWAzQxj73Hes0VbrJ9PKYp5DSqBHUJsTIr\r\nPgM+GIeZYjGOTXv/zFRk5V+tpok6tmjzcZ+CnJjqna3CzaTbtbl0FayMNQfZ\r\njAPvwEOmJzCDmzE7PE9j7hf0VEjE6hGhVNtDntZieBMvRJgfUqPP211qxnx5\r\nGI+8iN3mXmsanuV+U2f4B/AQ6fBzE8/I1Tqkp5+WbcDIQ8vJnOHQKekJVjwN\r\nfJW4mW3ea+jsFOSGdPumbaCqQjaJe0bUdL/nfY11Kyh4k2Hxlu+CY58KVWB7\r\nvqDsucs98s8EX/LczsFrfMQyn/Km4mhKnZOoxLFGvOaTDHlTjE/fHmpbMEou\r\nwE5tXXxtK8kWyt49wKAWmJMlogLtRgc2hLQ=\r\n=ODmZ\r\n-----END PGP SIGNATURE-----\r\n","size":4464,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-29.4.0.tgz"},"main":"./build/index.js","types":"./build/index.d.ts","engines":{"node":"^14.15.0 || ^16.10.0 || >=18.0.0"},"exports":{".":{"types":"./build/index.d.ts","default":"./build/index.js"},"./package.json":"./package.json"},"gitHead":"4bc0e8acaf990e6618a7bed1dca67760c20bb12a","_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/1.13.0/node@v16.19.0+arm64 (darwin)","description":"A module used internally by Jest to check which files have changed since you last committed in git or hg.","directories":{},"_nodeVersion":"16.19.0","dependencies":{"execa":"^5.0.0","p-limit":"^3.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_29.4.0_1674557743397_0.666145041484627","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":1674557743540,"_cnpm_publish_time":1674557743540,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}