{"name":"jest-changed-files","version":"28.0.2","license":"MIT","_id":"jest-changed-files@28.0.2","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":"7d7810660a5bd043af9e9cfbe4d58adb05e91531","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-28.0.2.tgz","fileCount":8,"integrity":"sha512-QX9u+5I2s54ZnGoMEjiM2WeBvJR2J7w/8ZUmH2um/WLAuGAYFQcsVXY9+1YL6k0H/AGUdH8pXUAv6erDqEsvIA==","signatures":[{"sig":"MEYCIQDBqjrXhYE6wgZVqWHUkcRo784O9Ulru9402mt4E8sXwQIhAIVzEwrslTqLtfJsKCgMFbEgWT3oRWTY7H7K77xlHOh5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13779,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaPRAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqwjw//TEQkpaXeu1dkN/o40N+VWCJsOv+BYt4adJVs3kSbDCSO8LT2\r\nWk9uFnM/deMWSa0ySpqUJwIdRRFk9ctOAFwmf2C5cMDpgDOYakW0SsrTrVec\r\nB9hlwDB4RpAOEgITamPDOAiKY1GOV/qGlro/Rl5gHNrlzwHc3k+wGUhL8QH5\r\n7bb9hOKU6JS97PSTccQt120Agxi1O5LcYGeWNc3vr1Ots1ajuEiVwqElbE+L\r\nylh1EwxJK59RFr4+3mg84TzLbaqVQSMrQIdPVEbOiLA6cSg8VWqAUJs8HC3t\r\nolv42nUOhyBf0DbYFqB6P52rNQ4Hs9DcZQy9SGKVBOa9MQLciFysTRWCVAQc\r\nYxeSN66ABxRFBZt3FlZ3Jtnbobxns9KmYxINk9vO8YnzOnaoafj8JvxmuIaq\r\nriwj2TxhtZJhdjc60ClQUO/GzjbjbcSrSyfa1YromEMSUmqEml+rHOkw6rGn\r\nP5ahKLGQpwIyQg7XX6rtxRkNpKtCwnQBLCqHJG3/myUt75LbeQbNH/5n+AQe\r\nsP+p0/K7HocdAMmpD9DRhreRynzElzyY45DVKM61PZH5iagNAYx06JcyvGpv\r\nE1VaFuhzwvXCikMRNyqRGfHLA9c0hiestQOqdHC36CvVQm5Uak/M5E9F1TVQ\r\nD1AafQgHV6V2nO6YKymqhunSUOaDdX6fNE4=\r\n=lnF6\r\n-----END PGP SIGNATURE-----\r\n","size":4067,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-28.0.2.tgz"},"main":"./build/index.js","types":"./build/index.d.ts","engines":{"node":"^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0"},"exports":{".":{"types":"./build/index.d.ts","default":"./build/index.js"},"./package.json":"./package.json"},"gitHead":"279ee6658d763f024d51f340fab6a37c17d94502","_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/4.0.0/node@v16.15.0+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":"16.15.0","dependencies":{"execa":"^5.0.0","throat":"^6.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_28.0.2_1651045440069_0.4554430567304215","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":1651045440243,"_cnpm_publish_time":1651045440243,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}