{"name":"jest-changed-files","version":"30.0.0-alpha.5","repository":{"type":"git","url":"git+https://github.com/jestjs/jest.git","directory":"packages/jest-changed-files"},"license":"MIT","main":"./build/index.js","types":"./build/index.d.ts","exports":{".":{"types":"./build/index.d.ts","require":"./build/index.js","import":"./build/index.mjs","default":"./build/index.js"},"./package.json":"./package.json"},"dependencies":{"execa":"^5.0.0","jest-util":"30.0.0-alpha.5","p-limit":"^3.1.0"},"engines":{"node":"^16.10.0 || ^18.12.0 || >=20.0.0"},"publishConfig":{"access":"public"},"gitHead":"fa24a3bdd6682978d76799265016fb9d5bff135e","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","readmeFilename":"README.md","description":"A module used internally by Jest to check which files have changed since you last committed in git or hg.","bugs":{"url":"https://github.com/jestjs/jest/issues"},"homepage":"https://github.com/jestjs/jest#readme","_id":"jest-changed-files@30.0.0-alpha.5","_nodeVersion":"20.11.1","_npmVersion":"lerna/3.3.3/node@v20.11.1+arm64 (darwin)","dist":{"integrity":"sha512-B6GjanWozUsg3tho2CFo4JYZ3iqMOdXexOEre1CQHTUecwAH3uNm9aIy4E1QTX41xEGEbPdBq7b1SHZKe6yPkg==","shasum":"97c0587e1ac7e7439894869a7cd45900707019e6","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-30.0.0-alpha.5.tgz","fileCount":6,"unpackedSize":18113,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxV/Y0/cIDejffwVqBdW6fQIWx6Ro/fnhzsmtWRN+/sQIhAKqPJNYTCEPWIR2xsJHpt2J5pslzr3471PD5Q129Wo3C"}],"size":4765,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-30.0.0-alpha.5.tgz"},"_npmUser":{"name":"simenb","email":"sbekkhus91@gmail.com"},"directories":{},"maintainers":[{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"aaronabramov","email":"aaron@abramov.io"},{"name":"openjs-operations","email":"operations@openjsf.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-changed-files_30.0.0-alpha.5_1717073041975_0.7051625630798515"},"_hasShrinkwrap":false,"publish_time":1717073042146,"_cnpm_publish_time":1717073042146,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}