{"name":"jest-changed-files","version":"30.0.0-alpha.4","license":"MIT","_id":"jest-changed-files@30.0.0-alpha.4","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"}],"homepage":"https://github.com/jestjs/jest#readme","bugs":{"url":"https://github.com/jestjs/jest/issues"},"dist":{"shasum":"eda505156f5cc37e28bcdf0e6d773464693b83d8","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-30.0.0-alpha.4.tgz","fileCount":6,"integrity":"sha512-GZsW7ctDaXXuA7kQNUJJKiY5KZJVr1Fj1wHNvczaJZ3JdzipP/43uR2sYRDMZUC9EyAQYHM43RW7aAtK0UrEGw==","signatures":[{"sig":"MEUCIQDh18rJ58j13fhlxmhDus8oZ13OP6eowcqQpZ4T/ZQsWwIgWetuQescOLS/6DyzZJEXBp+/jW8PHYKrIuOgcVsQAtk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18113,"size":4764,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-30.0.0-alpha.4.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: 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","engines":{"node":"^16.10.0 || ^18.12.0 || >=20.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":"32b966f988d47a7673d2ef4b92e834dab7d66f07","_npmUser":{"name":"simenb","email":"sbekkhus91@gmail.com"},"repository":{"url":"git+https://github.com/jestjs/jest.git","type":"git","directory":"packages/jest-changed-files"},"_npmVersion":"lerna/3.3.3/node@v20.11.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":{},"_nodeVersion":"20.11.1","dependencies":{"execa":"^5.0.0","p-limit":"^3.1.0","jest-util":"30.0.0-alpha.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_30.0.0-alpha.4_1715550200679_0.6832959117243513","host":"s3://npm-registry-packages"},"publish_time":1715550200892,"_cnpm_publish_time":1715550200892,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}