{"name":"jest-changed-files","version":"28.0.0-alpha.2","license":"MIT","_id":"jest-changed-files@28.0.0-alpha.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":"0fd1bc04a9e7e249240d1c806e0b7067723e956d","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-28.0.0-alpha.2.tgz","fileCount":8,"integrity":"sha512-C7EMXWOc8Ps2ej3kPxY0dXXa6a+IfWUbsTiXNSPTOtebU3dJ/hyaCNx190bERSn+ogPEk2jCi5k6rEiJm/7Wew==","signatures":[{"sig":"MEQCICEnpiP+gkZ1MlEGWU9Qerwmn8QEb+1IgBJKdCLHznL3AiBPYo5kbekjU3fgq4aDdeIAf+ZRNvOfkdGobze4GcuXQw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13781,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDT5sCRA9TVsSAnZWagAAPfsP/3ccyxgK8LvZcOCcJrHW\n51vn1c2TD6H06gNF85xl2MFQvxpVouaTypB0h4DXWUoTYJtrFFbZccnG70kA\nhPNnq+GXCx72PpdFNi2EPq9gN3DjN8BDQOw6jXxY1tqu0iPTXRv/Lx8omt7a\nXvTh/3pzcaPgX3o/Lofm8oVLFOMjtyb/XP80oLeQovWY+JxPvhamBkiff4NT\nnsSZ8BRRjZLJssb/l5WY/2YwqOEIOGrPWWDnVI8K/LbeLOE2NpgLQhOXPylO\n4jPSI+Jycsf8GjIUUSgK/aJbXqp/CYXMceMgz6PINrh5QMV4n4zI59YJsF40\nAYJBVS6AsGDiRxhe8nXN8REZ2rMAuYAbnwzcu7qyVAeVQlQGvY9CmsIjcZqX\nM9hjvfRmg8UQ7qAvEPLIX3xdNrxy3ysQ8GVADiBWl/V72WtMZkulJgja7vOZ\nPholszphvOyumCxPoVV9eJEa+DnNhmHcWIgvpDi4hEa5a52vaX7caRjA3sZC\nQ2+ZhzITI5rQDafJ+P7Nc5DgZcUZPpAKUK6vTo5P0drVe4HYh5FALc6EVdpD\nzG7rUuMw5HnBYrx8PZ6MNEsQn52JGGnB9HbS1zIktbxC92CEASJgUdXRyEMi\nLTzaIa56j8RgtmQlf0Gut0F53aIKF/b6vvxCBKAycBHHneCfqk/XE2RP6Pvt\nAPw9\r\n=H/W0\r\n-----END PGP SIGNATURE-----\r\n","size":4065,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-28.0.0-alpha.2.tgz"},"main":"./build/index.js","types":"./build/index.d.ts","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: ?object): Promise<?object>`\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\n### findRepos(roots: <Array<string>>): Promise<?object>\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## 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 {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","engines":{"node":"^12.13.0 || ^14.15.0 || ^16.13.0 || >=17.0.0"},"exports":{".":{"types":"./build/index.d.ts","default":"./build/index.js"},"./package.json":"./package.json"},"gitHead":"694d6bfea56f9cb49d0c7309cdbfff032da198c2","_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.14.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.14.0","dependencies":{"execa":"^5.0.0","throat":"^6.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_28.0.0-alpha.2_1645035116839_0.7470878656837718","host":"s3://npm-registry-packages"},"publish_time":1645035116971,"_cnpm_publish_time":1645035116971,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}