{"name":"jest-changed-files","version":"27.4.2","license":"MIT","_id":"jest-changed-files@27.4.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":"da2547ea47c6e6a5f6ed336151bd2075736eb4a5","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-27.4.2.tgz","fileCount":11,"integrity":"sha512-/9x8MjekuzUQoPjDHbBiXbNEBauhrPU2ct7m8TfCg69ywt1y/N+yYwGh3gCpnqUS3klYWDU/lSNgv+JhoD2k1A==","signatures":[{"sig":"MEYCIQD7V5JK83SFFQ3pHIuoifj8Q1KcDa2PwEXUf0LiCe9afwIhAKO0Mx6UPo7quiM3SOTNNo/ROd//JIL5wTZc/jIMQOtz","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\nwsFcBAEBCAAQBQJhphDDCRA9TVsSAnZWagAAHVIP+QFMYy7vTICOFeATsE/I\nQoRQXJum650Ib21o5mRjtpbDYiZeCfJ8E1kIOkxbl8cC5aK1i8U1eK63rVrY\n7AfAcsCrCXMLRUEvIpBuXYbJ/ES8N7WLu5WKWiWHiER92lRfV4dcVZiMVAeq\na/j3IHTOpn8HNww51ZJdJytxyETTXZoL7GH2Sq15cjFbE2mUXVEmifJHYHdj\nH/ZGmKCEP19RGJaDWDrxA7AzJqSN05QeInc5dDmt35QHKRrSyvfugrtMmNGr\n3TqWwgBILbrUt7VqHJh7TVEprcuQNVtF2KdIs52ODLHT5Z9u53ng4bUX3akT\nAl+2KaSKDDHCIydeRoC8ckwL7Rrt/5YmAGcwWKwnK1D0eFp85D0hJjcfXX/e\nqq7QZ06ZwCrg6VQN3SnVI7Ous7fXIpdAkIeHK8xt2bfOZ0ID/TRN8XwJyqga\n9lqAE3RtWrzC5lFfMXNvw1PfRtZnn498wERkpk3vRdXEREH6vXDVx+rSm0C9\nZwZ3Cz0jcKzM9UqGSHGzLXfRRjZPb2WL6FJu6wPMGmsiJ6HE37qAbCyfEzN6\nFLn3JJNeQ13zIRL+dTUFEEkIvs0zjd0/uPPxwgwKToWCruxv4DTgDGZ4zqu8\nNWDz1JNHGvMlH8CNssjDtZsterHtKJ6U3t4+VHuKhXPYYSbZlvTprsK4qgQE\n8Fwm\r\n=O4y9\r\n-----END PGP SIGNATURE-----\r\n","size":4237,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-27.4.2.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":"7965591f785e936ada194f9d58f852735b50ab1c","_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.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_27.4.2_1638273218893_0.022149104765119887","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":1638273219078,"_cnpm_publish_time":1638273219078,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}