{"name":"jest-changed-files","version":"26.6.2","license":"MIT","_id":"jest-changed-files@26.6.2","maintainers":[{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"},{"name":"rubennorte","email":"rubennorte@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"cpojer","email":"christoph.pojer@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":"f6198479e1cc66f22f9ae1e22acaa0b429c042d0","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-26.6.2.tgz","fileCount":11,"integrity":"sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==","signatures":[{"sig":"MEYCIQCxLYVHHanmGBdBE5XC1S7UBKjQifYEwYJrWorjWB+dxQIhANeVk00XIoLK5qgzXhaPiQORLe1AumvEiCCWSJ/U7RiP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoADJCRA9TVsSAnZWagAAFpEP/0w1zuNNncYj6UMKAzpl\nNgdPpHMsi3fT/MY9L+QZmx15L6zn8qu/OFNCh2bXo6Xc9TW0xPbPu4athzNx\nvUvb4F01pkZqpiJ7ngrtDZxv/WtmxHsub1wTzMt4Y6OfxkF6JUZ5JaqIGJUK\nkHN6VOP7JFWcWQNn7MeUaHA2VrU0qSo+dsBLFW4AeH9HSif2kIS7l+rBRqtH\nWKj2g406+VIYKf0plg8RbVgUE6So7Z1O7iIGO1Sby0Rv/JEfVINACbJLOwZl\nJgpcGIT32DpdyOFtVH1D9oMgDh4atwSxNZx2sIqVz9didaO1PJHt0qjLQuDU\nTYFhkoALVL2z0B9IihepI0IsfN+tf/JU5ZUr1HJTwZpQAOwDOcXQBGw0lqlW\nH1CjcyILltCvlK0mCF/pu/UvPaRBDTPLia2NaeD0cSZHU7v/rOQJ6BGYFZK+\nSagRDQ/s3rCx4+glv5URYVYXBW60cuPm/I944Nc+UWslrNmwZzx5Q4H8ukBS\ntk2deA5zNlYthQttQZgePNkgOG8gXOXGkhhDTxJLKdDhs/HXiBI6UU1i9Wvp\nqjoMn0Rs2UWPcGSQOWdCIJBBMv1N9TFRi0PznQlK3NQ4FrpTkhAyrGsYGcx1\nKlIlZhPRW6FdlgvK+W0G+39s6NTPrthuLTdYIWjfBl7UwbBfDXUJtGxcd0hQ\n7CDU\r\n=gS4i\r\n-----END PGP SIGNATURE-----\r\n","size":4115,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-26.6.2.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 10.14.2"},"gitHead":"4c46930615602cbf983fb7e8e82884c282a624d5","_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.22.1/node@v14.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":"14.15.0","dependencies":{"execa":"^4.0.0","throat":"^5.0.0","@jest/types":"^26.6.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_26.6.2_1604321481453_0.6048962541622716","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":1604321481559,"_cnpm_publish_time":1604321481559,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}