{"name":"jest-changed-files","version":"27.4.0","license":"MIT","_id":"jest-changed-files@27.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":"b2fada5f9952e3cb8af83e89338a089964b55ea5","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-27.4.0.tgz","fileCount":11,"integrity":"sha512-TacYni8ZumaB10L/fGRH92MbLYkn+MF2KtgHeAOcwnOzfmt+S6CDmJeslZuLOpnRUQKkV/Vr4qPAlrBTE5r67A==","signatures":[{"sig":"MEUCIQD9/NrMb1JFB0Oc1nYVs2IFOsq2YUYajGVVmV/c+MnErAIgW76ZsBZ4FAoVNzLC+5WEANhiAJjI9ZUPj3QxnmsWeWk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14882,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpNd8CRA9TVsSAnZWagAA5XcP/ArXXFr3ewP92l8RYUi/\nLLyQ9oPkpu61cm5G/7sFTm/9mDWLbdPd8pcOijLUWgyxAwIbDohLL0Xgk2YR\nz2beNuBP/AbEkGf3huBcxl3LKXgZqXe+DL343bsqeEwrvsF7e1asB6t9aso8\nBoBvOd8l6fYu0Z2D5//j5sCtUgA9L4ZE95+BgMwC6V8Ml6UtB/sD3Ug99bBp\nlvK0NJa98jc2iQMlg8Mcl+uQU6XNAFVMlLeZ8E+e3ZEsuP4vX/9XkT25Ap4X\nFyBUmWBKySKgdgJDmGPg2NehV+Mcrj31tpcSgRdVT045HRpaHVPgUZC/hp4o\nhZIuhPsjB+EUUYeGXPwNMT8/8kAABwNFmNXbUHY3MINAZ0Wf2h7tNjAt22/u\nYf3+1fiS7mr66Xjm+/deGN3WP3/YRujNss+YmKaKyyUgJd+lNN0+VUhw5hgN\nxAtdDDqNKeZx1c5pyQorfCVe4MJ/iXN1+Uhts31eHmJ1jCLUH/4Qxz41V/Hl\nKk2dsMuo2PlVvSrjG1Wo9YSJ/fFBUiVJR+F1YM7fw8caLkfpDFfhYIHDoUap\nOKIfbyIENzumxPdoh6ORGTa9RCW9qDLLFZaVb3pf0zCNqdQvw0qYJa1Fhkdo\nEu/YhqLzRWI0ZBklSMHO/HFebjgnIkqgn0KgZLeuVLWFOBjGsPuiUSPHJiYM\nRC90\r\n=jXUw\r\n-----END PGP SIGNATURE-----\r\n","size":4231,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-27.4.0.tgz"},"main":"./build/index.js","types":"./build/index.d.ts","engines":{"node":"^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"},"exports":{".":{"types":"./build/index.d.ts","default":"./build/index.js"},"./package.json":"./package.json"},"gitHead":"0dc6dde296550370ade2574d6665748fed37f9c9","_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.13.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.13.0","dependencies":{"execa":"^5.0.0","throat":"^6.0.1","@jest/types":"^27.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_27.4.0_1638193019851_0.6782900592338705","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":1638193020030,"_cnpm_publish_time":1638193020030,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}