{"name":"jest-changed-files","version":"26.6.1","license":"MIT","_id":"jest-changed-files@26.6.1","maintainers":[{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"},{"name":"rubennorte","email":"rubennorte@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"cpojer","email":"christoph.pojer@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":"2fac3dc51297977ee883347948d8e3d37c417fba","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-26.6.1.tgz","fileCount":11,"integrity":"sha512-NhSdZ5F6b/rIN5V46x1l31vrmukD/bJUXgYAY8VtP1SknYdJwjYDRxuLt7Z8QryIdqCjMIn2C0Cd98EZ4umo8Q==","signatures":[{"sig":"MEYCIQDrSxLbVFIY7JmzFpiFIJOZb7woQpybf3+8x2E2qQa9+wIhAOFvZZg0IgtrbmwT61vAO9KeNCedqyiJ/ZVuUen0cQxK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkpz6CRA9TVsSAnZWagAALR0P/iB3WJeeKqqHM/BOrMPv\ng4oKtY8hYKZa/2xC06PESZdeytzYZnlmbI1GS1w45q2M2+ZrC6g++7EvgNHQ\nZhg6sa5HlTGzIbO8egC4EiS8iZLroMtwClTfUzd4tKeWhGBYXVqaPy4VCzRO\no4zZk/lO8/OWxPS4zL9W5uM5XuAMwxjHwa+AIt+NLLuyg/o3eS+emb+umzoy\na0ysgzrEUcrN+yjMGSbZNq61a7bmUtbLB0/f2fyQcUl98KXg4sYKQpKAohm3\nRvlD7FlEhLGRcE/3PRqQGmNcNFf/BQVyF5aLB5yF0T2wHLMTySj0nVod7Aj9\nOZJS+WjMt/CMSXXHrKNYAN/6+AUtgxw4HWd/SXjsMltIcos1rVcnjqm1JEyZ\ncQECFjuLlaN4dp3uIUnjDLnSeabzj67MwfRQimMOOxf5DmOKlpo+wCFLgO3R\nFaHVSOghCXr8F+XM5UkdUEjimId3VOHeBima5hRRyym1kz0WdE2vsb+QB5XG\nNN+223AhHisrBWq+iHR/k6jer5TKxVDU77DR+GZi1JMexhayW6Qy4clQsB7c\nLQM1Wh1XX4G0Sc3ec9ZB/UKCRXoOrwOs+lRCrf4vcdPYC/OsN6y6ws+BL6EI\n6QHh6jRl/f4H1An8glU/mIQZGgyo+3Z28H4frhER+2YMc1ydna7h5GTwCgHt\n6TTp\r\n=IH0O\r\n-----END PGP SIGNATURE-----\r\n","size":4113,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-26.6.1.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 10.14.2"},"gitHead":"f6366db60e32f1763e612288bf3984bcfa7a0a15","_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/3.22.1/node@v12.19.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":"12.19.0","dependencies":{"execa":"^4.0.0","throat":"^5.0.0","@jest/types":"^26.6.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_26.6.1_1603443954925_0.5606448802590689","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":1603443961963,"_cnpm_publish_time":1603443961963,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}