{"name":"jest-changed-files","version":"27.0.6","license":"MIT","_id":"jest-changed-files@27.0.6","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":"bed6183fcdea8a285482e3b50a9a7712d49a7a8b","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-27.0.6.tgz","fileCount":11,"integrity":"sha512-BuL/ZDauaq5dumYh5y20sn4IISnf1P9A0TDswTxUi84ORGtVa86ApuBHqICL0vepqAnZiY6a7xeSPWv2/yy4eA==","signatures":[{"sig":"MEUCIFJqsZG5qMVAVHt78bVCeFjJyfP6P0cDmHDBH3LPIu2BAiEAlGZdo4Y8suDmvf5PKmsKEPOaj8WmgXaHyqomPGKh5jM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14822,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2gFgCRA9TVsSAnZWagAAOnwQAIj5AMdpcxCF9VhMiHpE\nhwsWTW/RbJgwi/EX9lfCzkMLbwkwO8p2nm6fh6EdXbX4UHNHtsM995v3KEsJ\nCZOuJVruS3dduWaCNLarG3zl+rZZotlRaVERf71KW9H510aJ7MC48fl2tBxZ\nh0KpZc5zIYYgBdSnieoHDf7ZubU/GdzTPGHzRrt94I9ImwARsTQB5aLwN9dI\n7COIwwEDArioLHN847aXacBC6LR1v+fBBsGMzMysS5YTKgb+HHBsw7m37n9s\npbbiy1PR099ggR18f6NahjfAZ21pz0BaQAi4V9wUBbq2a/RzxJx9zrfpIzBT\nTLx8nwgMHcVIpwgwvlI5kqRyX/m4XbBWQteBk3i/sSZos6JuCa0vGcRsw7x9\nnBPRcGNLUcEyQFf4q9urjnDLTRj37/lzDjEFsHNXToNdHeqcvkGBWmIsDjgt\nDnQKznjUeqzYY7HeyMx5CcCplXG2FKHvoO0PaAItnqsjuG+IEj5tLg1gZn7t\n4oRDRgMOYiUHqySQzCCVPiuFL34A661EyfwNxOI8p54JPUDpHH80YjE3NV+v\nliJl8WMq3Z6EtptMB8t7ipJKS39oyl4M2r4fEkiDNR8wji9mnuCyHsemX64M\n7/iM34q8RKxZJHEHZjDN6qf2+88N+7bTzBGG6nhbvNCP8iWaT1aPeGZWLede\n5rqe\r\n=5+iR\r\n-----END PGP SIGNATURE-----\r\n","size":4226,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-27.0.6.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":{".":"./build/index.js","./package.json":"./package.json"},"gitHead":"d257d1c44ba62079bd4307ae78ba226d47c56ac9","_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@v14.17.1+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.17.1","dependencies":{"execa":"^5.0.0","throat":"^6.0.1","@jest/types":"^27.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_27.0.6_1624899935998_0.2386794735748754","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":1624899936167,"_cnpm_publish_time":1624899936167,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}