{"name":"jest-changed-files","version":"29.4.3","license":"MIT","_id":"jest-changed-files@29.4.3","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":"7961fe32536b9b6d5c28dfa0abcfab31abcf50a7","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-29.4.3.tgz","fileCount":8,"integrity":"sha512-Vn5cLuWuwmi2GNNbokPOEcvrXGSGrqVnPEZV7rC6P7ck07Dyw9RFnvWglnupSh+hGys0ajGtw/bc2ZgweljQoQ==","signatures":[{"sig":"MEYCIQDJd7asEJEFGxdTRODLj17Su6vos6criDT/GvUkqew+sgIhAJ4GeL91ZQHrcGgPM81BjQCskJw3qhaig+73CMbytUvQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7MicACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnKQ//bbe5UZYsNnEEh3yfFDS4vuGFD9SvIOipYv70vYIwAoLhx83e\r\n9eVkt/LayfZ//7yWcV+2Hwh610ooa4qbiCz9R62uJcUm462itBcjDTdO60Oo\r\nwQEjvx0sIli2NfngnClTnmosej8i7I52sEJfd+ntPrmNK3InaUiSSzkGTaRN\r\noeuDdIhsi9d+7p6RAMt3qNPhdrSSxlU36R7SwEBzLlGbzZYgZOV4BcL/mo1w\r\nCBQ4mi6DtZRADH+VluC/FADhwmIfrWi8h93NhYcgEMvZo212IbHUBxNSuAEf\r\n4BqnHJK2CoY23k98pUfBvNVJTLPVPTrgtHTc2YbmMDRIXOYl6iFBo9TaWB1y\r\nUPl2lEztGBWy1EqMrxACQigz90Hg0RTGwBQMm9iQXUvcdchJRU0NGThloF9k\r\neYUafrUPt8n5y4bRPB4rNQG0BPh0tDfp/3Y1yV2h3pL8sFpfN1AIJDq5TdE/\r\nfy53Lb4DpF2A1Ed9Cvbq3rJLG4c/GgokhsfG6c/tjXvv4TZbU9ORZOlP0HKd\r\nA5weaSbnPr3utS4L4E8XDqVy/4ND54A101Pll3C87yPCNLGt8cQxWB+7QNlY\r\nXcspEcRM0nkNubt9AeIIsRpH2Dyx7T6NdpL8UEdsiQgjkyTGLGZegzFF3ece\r\nOvNSZb0jN9RgHnVbXRzQOkYvkGbHOzIqxJ4=\r\n=kzeD\r\n-----END PGP SIGNATURE-----\r\n","size":4145,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-29.4.3.tgz"},"main":"./build/index.js","types":"./build/index.d.ts","engines":{"node":"^14.15.0 || ^16.10.0 || >=18.0.0"},"exports":{".":{"types":"./build/index.d.ts","default":"./build/index.js"},"./package.json":"./package.json"},"gitHead":"a49c88610e49a3242576160740a32a2fe11161e1","_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/1.13.0/node@v18.14.0+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":"18.14.0","dependencies":{"execa":"^5.0.0","p-limit":"^3.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_29.4.3_1676462236247_0.23833298590625995","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":1676462236390,"_cnpm_publish_time":1676462236390,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}