{"name":"jest-changed-files","version":"29.0.0","license":"MIT","_id":"jest-changed-files@29.0.0","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":"aa238eae42d9372a413dd9a8dadc91ca1806dce0","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-29.0.0.tgz","fileCount":11,"integrity":"sha512-28/iDMDrUpGoCitTURuDqUzWQoWmOmOKOFST1mi2lwh62X4BFf6khgH3uSuo1e49X/UDjuApAj3w0wLOex4VPQ==","signatures":[{"sig":"MEUCIQC9O3YrdcrYEzgkM5RZeWSJgRvZpbswuIys1xQz9zOfZgIgY0wpOHo0rNh1GcU2uUKSk0CIt4CYcbK3k/s+OJjnYIA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjB2wUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmod0g//Wpyv730pP3Jm3UKQ2QSGUnD2awULV6omZdU5V/A1XWgDVttv\r\nFG/K9TRgTHyOak1Ir4rASVBmiX+SpDLvYS0/KIXKbcq6ciUth/ORDc68WxC0\r\n7aVjQerTynY6foyPLi4TeZvnzmi/PvoOSagOsW8oHhwTUBUE4NEn0nT5vk0Y\r\nOwIZNmo3U8/lKMzvBWE+AGmpDn6bpbvvdlqzXFFThewY0O3cSULgq8wo1g9Y\r\nKurTl6tubq4ONt8XoKgmlLF+B5hPB7AJO/x0hj5v+zErhnJA1yhMDs6sfPeQ\r\n8Z2R3XsbstMhtYiNcEsRRnohncmrDr6GE4aqdBFOwGatqzXxa49qFwnKsDr/\r\nSQ0XgqNECBCnSzIPlgU+ncAm/eMnj5CZjzng8eP2fZmuMinjO5ayxDtDvfb7\r\n4QTVO38MQaTx2U/SQuoiUy7ufzyox4HSZWiefifA9Tzwvh4PbAKVlT9NBH+R\r\nW84J/lfqeVrAX9JMB/+SyVWzTJSB1mkwLdXv0S/Pp0tmefopbKJkuC6Swm0p\r\naQNRueRm7AFb7G9DtyV9qYYJAbMzdqF8ClGkaXA8qcLMePpLMUFhbMFJJ8lc\r\nZXMGzC1EK3GUJPDFhj3PVl8yds63wYRNumbf1vCwrgfUC19u/ONjnR6ZxbxO\r\nceZO4ZwCN77vh8is1heIVIQZrwJucCOqSq8=\r\n=Wd6o\r\n-----END PGP SIGNATURE-----\r\n","size":4233,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-29.0.0.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":"75006e46c76f6fda14bbc0548f86edb2ba087cd2","_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.10.0/node@v16.17.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.17.0","dependencies":{"execa":"^5.0.0","p-limit":"^3.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_29.0.0_1661430804465_0.9027682905191932","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":1661430804620,"_cnpm_publish_time":1661430804620,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}