{"name":"jest-changed-files","version":"29.5.0","license":"MIT","_id":"jest-changed-files@29.5.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":"e88786dca8bf2aa899ec4af7644e16d9dcf9b23e","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-29.5.0.tgz","fileCount":9,"integrity":"sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==","signatures":[{"sig":"MEQCIFGAdIGRKa+qlnrIKuuu8hGnqb7eF5Hpm/eu3PVTha0HAiAXGMpnc7OCGNQIhHzhivd/DX93Iy1p6GxksEqUt4Dnng==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18219,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBeujACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHdQ/+NQuAFScp3+YWf9Ez145QinkRUioZNTz++DmPThIKZGxIrmS0\r\n+lcqKKY11apV8I8GWO9oS/qAfBb2kk44CoQEeZubOfLOjEblBPMVqpFE7bJl\r\n9NVTmMfxNBlMYKyUgYlr6j86GYkxUzrn26N5ERVNXHAfwE3keRyajBSb+9oV\r\n8xZloe0rw/N8Mlnw9FXsGgug0DCiE1Jy+IgKujCr8HjDwf8DimS2KczlcraP\r\n9yqARlvuD5+vngRUaQi+07FCfqbNwnbXfcnymrVLns1L05V/Pm76aBU7CHso\r\nX1RFREz47O/nfjga9Oq2dGE1XqO3x5ZDDlvRySQ1q4ChO0uQ1al1La7oWXLW\r\nSEwQgrLTOx90SDit44/U7BtfgfJ31kdevfXN/sJSMo+j7WtQ53ILN96VqhrT\r\n5yqqwFi5nnoEXF/2lL+j/VB8rxElm/w9lUJTluHzqpoU2VSJJyiFSObni8JW\r\nzVL3qodWVpl4Fy6Sghf6kz3MNbT2c9K02vN7s91FxObPrcy5DSvRzkVeQEEF\r\nV/fs9Kcx9xTnCYqvQPpAsWwcrsayW6MAb+LPsPbwVuKGXSg2F0ke0VCMR5Wn\r\nPty0NllK+hhWFZMfEfAzna60S8lqps+9gYz6X0ytlkrgeAxu/TdO07uvOgqM\r\ne3FlZVagavXAFQZeE+nMnHwyDplbWLFAZt0=\r\n=40IS\r\n-----END PGP SIGNATURE-----\r\n","size":4363,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-29.5.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":"39f3beda6b396665bebffab94e8d7c45be30454c","_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.2+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.2","dependencies":{"execa":"^5.0.0","p-limit":"^3.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_29.5.0_1678109603768_0.679372666467938","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":1678109603951,"_cnpm_publish_time":1678109603951,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}