{"_id":"jest-changed-files@30.5.1","bugs":{"url":"https://github.com/jestjs/jest/issues"},"dist":{"shasum":"0f91cc77e6f834fb2e85bd277d9b313e555acd43","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-30.5.1.tgz","fileCount":6,"integrity":"sha512-0+bvMM/ENhDI29Z8q1r4HxiDIi4G5tnBmSw4esfPQoj9q8Nik7KIyuxHkTVnnniJQf05SxpGaKDQ+4h28ynGPg==","signatures":[{"sig":"MEYCIQDCTjfYwTIbqx0bkJWlf8geL7lO2kjPQuMSH6VYplQQtQIhAM+0pKO2Yee2C+Yj6/zsaZcC+z/2u9uWTfCNJYlcLHg3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGDRPLyQl3p6PH6hlvNGldPiZZGOZleMaSNgJV/4J4h5AiEAgpGos/cQbIPAkvr9gdYjnLB65l3PkQxR4Ohot9kWC+U="}],"unpackedSize":17527,"size":4714,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-30.5.1.tgz"},"main":"./build/index.js","name":"jest-changed-files","types":"./build/index.d.ts","engines":{"node":"^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"},"exports":{".":{"types":"./build/index.d.ts","import":"./build/index.mjs","default":"./build/index.js","require":"./build/index.js"},"./package.json":"./package.json"},"gitHead":"9ab14feccd6c15fec1334dbcb03a53a079d153d3","license":"MIT","version":"30.5.1","_npmUser":{"name":"simenb","email":"sbekkhus91@gmail.com"},"homepage":"https://github.com/jestjs/jest#readme","repository":{"url":"git+https://github.com/jestjs/jest.git","type":"git","directory":"packages/jest-changed-files"},"_npmVersion":"lerna/4.11.5/node@v26.8.1+arm64 (darwin)","description":"A module used internally by Jest to check which files have changed since you last committed in git or hg.","directories":{},"maintainers":[{"name":"aaronabramov","email":"aaron@abramov.io"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"rickhanlonii","email":"rickhanlonii@gmail.com"},{"name":"openjs-operations","email":"operations@openjsf.org"},{"name":"cpojer","email":"christoph.pojer@gmail.com"}],"_nodeVersion":"26.8.1","dependencies":{"execa":"^5.1.1","p-limit":"^3.1.0","jest-util":"30.5.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jest-changed-files_30.5.1_1788249527678_0.8439879505466164"},"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":1788249527759,"_cnpm_publish_time":1788249527759,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}