{"name":"jest-changed-files","version":"26.5.0","license":"MIT","_id":"jest-changed-files@26.5.0","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":"181b901368decb4fc21d3cace9b4c4819232b667","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-26.5.0.tgz","fileCount":11,"integrity":"sha512-RAHoXqxa7gO1rZz88qpsLpzJ2mQU12UaFWadacKHuMbBZwFK+yl0j9YoD9Y/wBpv1ILG2SdCuxFHggX+9VU7qA==","signatures":[{"sig":"MEUCIA2F6RVX9JNC8f2QLFuKqgIxexZRDd5xsx/KDqMVC8IoAiEA5/1Rc7PTD+yoPRg3JoEY33bJm2lEmcV4vnN0VwvIqg8=","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\nwsFcBAEBCAAQBQJfeucvCRA9TVsSAnZWagAAi5oP/1wZ0cM8ckyQs2gHDv4J\nG4+zmnuf8x+fijORK3BXQmmgfG/j/JItCF7vFbf3dDb19mR/6Bss+Kquk1zZ\nb0YC3bsZtIr7lSoPUH8BF7NgfsZYTQXG2GuUrqSQaWslCeiuQUPjZY/6Jfig\n21QZLSUT47M78syE58RKhQgXJbWwLv+X7rFB6v1rufHZvSpY71Fab6Jp+bnZ\ncy0Hn6hQGfNPthB5pUQ/du3Us7TltuOBvOmcOUu2T56tWhZPGYrMVHiYrP/y\n71nDNx7YOrIMBHKrcFg1HtrKX1+B8KjxoLs1w+dDaVbObWuGui5Br48VEfBi\nc6xHB3nz/ATBBoa7N5XbDFY0uoz83rtz0Y770vfx5oT6UhWkYbq7tXfUOIRG\ngb7sTzYZNZJTKuXNVm/quWRJp9fKdaaovr6OPotDHGhyJuzqAIhpeK4IJfpL\nUqH652dQyU/jG1XKHNGc94O7/kbyDRxRK/GIzJA1nXkbdyR89Cy+EmIW5x2+\n2ToUSLaCPujrJDchIf/j6skLajLsy9KTBiD8Hyhgq4pkPAeFagR/ydox0mvM\n3InoAypd6/w8kWAYg/uG93qicR2CbyYhfPmSxJyj0AujsHJqpZQVl3gMtuOd\nlgs0T0C2iJfo6/EPqlRQnKDboe4NZ8sMR/vjSwi1m5s6qq2iuFRe6JDm4NT0\nG3D4\r\n=ohxj\r\n-----END PGP SIGNATURE-----\r\n","size":4112,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-26.5.0.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 10.14.2"},"gitHead":"68d1b1b638bc7464c2794a957c1b894de7da2ee3","_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.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_26.5.0_1601890094711_0.1570725488931719","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":1601890094816,"_cnpm_publish_time":1601890094816,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}