{"name":"jest-changed-files","version":"27.1.1","license":"MIT","_id":"jest-changed-files@27.1.1","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":"9b3f67a34cc58e3e811e2e1e21529837653e4200","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-27.1.1.tgz","fileCount":11,"integrity":"sha512-5TV9+fYlC2A6hu3qtoyGHprBwCAn0AuGA77bZdUgYvVlRMjHXo063VcWTEAyx6XAZ85DYHqp0+aHKbPlfRDRvA==","signatures":[{"sig":"MEQCIEE0LgR8Vu93NA9e0eAUogtusTGD00gtCWu5okGNKhiwAiAxQb3TkCKgyf78htdCP/g5oJtmjhuewWClo+5BPu02lQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOIx6CRA9TVsSAnZWagAAy1YP/i/l7qZWCU2JjPaOlFJL\ngKFq9p778J7u4fBy1P2VNa1KHl6c2mk35+NHmy3wJmJMtubBM50+YedMQ0ba\niRZBRSLWf0Ehyxik8Z1du6LG9/SuMyhTZ8M7eE7JCUlOcw9NZr8q4Hs48ji4\n9F3Jzh+7aRwWRjSlYXkCwnWz5SgxzEvEqC19MoqAwa+WHTKy53UJ/OE9Fkau\nwOV3riXtjT9lznhHNCPFEAYV6lSLaoHfXr/Dojns9Lf07TquBn/CpfbQVTa2\nnPHm9hcWgLxmXyGZG6BhGbOfgqmNf94LzHy9912iy+RXWbpAJZvWiQg2Ne6I\nnX9lX5JIh3zET84Qq+2uhaesYp2vv/FYa/Npj38z5AAJ0CFaHhf3qdp5RLXy\nbbN6Rt0WkE8g6FyR4f/5wFtd0ozsY5DXTN22ByyKDzRd25Are4nS4AxyiCmN\nbhVNhNk356HtPuApc2MOwAZTLIXI0GFQRVdDWwXraHEG66AYYawVSSx7GLgV\ndLFHZ3xEnEPomsGfN1R0isWfZkzhLor21FEwTrEtPpzIsCDCWk5uvMd2UEs5\nTlQP312KyCe5d+35P2uvKrhWCq5kvJCdWeNYwhXBFgsIA4EPe/SsZqcpdiTj\nAmAy26sbt++fqVqnEguwpAIcmnf40TmPGz6fgV3jdCQZRPeEO60qpUWVepdH\nbtzg\r\n=BAVB\r\n-----END PGP SIGNATURE-----\r\n","size":4223,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-27.1.1.tgz"},"main":"./build/index.js","types":"./build/index.d.ts","engines":{"node":"^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"},"exports":{".":"./build/index.js","./package.json":"./package.json"},"gitHead":"111198b62dbfc3a730f7b1693e311608e834fe1d","_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/4.0.0/node@v14.17.5+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":"14.17.5","dependencies":{"execa":"^5.0.0","throat":"^6.0.1","@jest/types":"^27.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_27.1.1_1631095930831_0.9441975464001864","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":1631095930946,"_cnpm_publish_time":1631095930946,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}