{"name":"jest-changed-files","version":"26.3.0","license":"MIT","_id":"jest-changed-files@26.3.0","maintainers":[{"name":"aaronabramov","email":"aaron@abramov.io"},{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"davidzilburg","email":"davidzilburg@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"rubennorte","email":"rubennorte@gmail.com"},{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"}],"homepage":"https://github.com/facebook/jest#readme","bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"68fb2a7eb125f50839dab1f5a17db3607fe195b1","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-26.3.0.tgz","fileCount":11,"integrity":"sha512-1C4R4nijgPltX6fugKxM4oQ18zimS7LqQ+zTTY8lMCMFPrxqBFb7KJH0Z2fRQJvw2Slbaipsqq7s1mgX5Iot+g==","signatures":[{"sig":"MEUCIF8n9vCBKgq+5mtujpKkltASTQRVicEQL1r5nmiqgdLRAiEAwiwyB9RbMZH/cmIUZiWLIdASpNwUZOIJsCmAeFZHL/E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMTAjCRA9TVsSAnZWagAA6CwQAJjJDz7Y6uGyy4RZewbz\njA5wL7crQAIt25PM6p0XMrJaF3CIMyO/F1LmvZazRy15Uz8hQ9rcyh44sWVD\nO1f+pEB2yiCbJoNKMptLduwZ828EN2bQMwTmWD8h24l4kLzRArnk7eRf+udf\nv++B7gi4BGIncenD5GtPE8IN7FHra3rnI8sWE9S1WrNmgqLG3E5eHOfSyaP3\ndHrgV4Fs22+fjQ/TxuP9ME7wn8cH49IADXRRIO+sU6e1bp+D0SB0X6gRvZP2\nNnW4oEngd4KuWgUEXrbLApLF2EjQcJPZLmGvFiZF7dAssUCeHfucmA/N5O1B\nT0tNExydUH/nRgMeQggSlkT5XiWSUAQMSOHg0oDE1FS+A7b9bgrz4+wOSycs\n2rDHVz1H0IUyYy5L3pHXDIurOLn72qbX5YU0HC4pttkF5BTSMmfUB7KbAbzK\n6OTTZRiKxpZuzSTYcEx5WF0GpLPEE2CItbaAzWzfhG6fhy/m+BQ/opmLvT2d\nXTlzrs59cg2gC97v+W0VCa9C+mbkf3f5GMPpe1uFJdIyuHsnmMGklrZ/sc8V\n1wr+xFDOdt2xPDs0kaqiXmPMtKGcW7Zx8ZaDrLo+Tznl4F+MHmiHLyCKaebQ\ntBfnHKg3B97GjtM8aP7hmAc7U9U7hwsuLhT0BesKM8dDEDxW1fO3fidKrvxT\nXgRn\r\n=0c01\r\n-----END PGP SIGNATURE-----\r\n","size":4112,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-26.3.0.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 10.14.2"},"gitHead":"3a7e06fe855515a848241bb06a6f6e117847443d","_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.18.1+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.18.1","dependencies":{"execa":"^4.0.0","throat":"^5.0.0","@jest/types":"^26.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_26.3.0_1597059106643_0.20676503487565356","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":1597059106753,"_cnpm_publish_time":1597059106753,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}