{"name":"jest-changed-files","version":"25.2.0","license":"MIT","_id":"jest-changed-files@25.2.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":"b2d7ba9a389346d7e83cc10f95ca4cd05350de63","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-25.2.0.tgz","fileCount":15,"integrity":"sha512-4pKQ0Be43Glqptu3HvXL4Vk3vZnAWI/S7nfonVM8ZBECJ85UVs+MOQrXc+4E4j4zIZ7Hoj7puq2g9Hw0ysjc1g==","signatures":[{"sig":"MEQCIF4Pr4GoiPxb6oArOQxlwHj7038329BYzonQ7XUCL4HDAiBJIdBX7EwSl3JVD8uWQhnP01MWtQPpSXp0x0cIkLwqrA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17914,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJee5uyCRA9TVsSAnZWagAAC+MP/jIcIPsp2fCU3CzoFffy\nJ1x0ZxjPAxRXnmsE3NFiCNleGJIG5kbceyYI4Oh9OypEoe0FQJ2wjGlM1DsT\n3Wrt1f99f0DsjItH+xl6bGx7zeV+XkgqS4wacYVRrGRMV9QXVWMAUEY3uhdZ\ntzmQJYjB8vdjZYWSXu4UFTiISvtzoaq/GOYo3SlGc9q3PvT1is6JW7qsqH3m\nDOARAKiMg4ESg+ikTQK1cMp1Lgcia8jwEYrWG9BLNkAxMWbkXzlr9QuQgQw4\nDHAFfP3CrJH750nyPyNMj7HjWVYv+NeGXOyIGY2cuAPi56zqgxZOn0hhK6+0\nRvzFYfRFoRFI3GbCPrvWj0TUBvRRm2g1BqiFan6jE2FuHP7PI3l4wizpLbUz\npiys1xoZ3RZCrGtpugHhmoQsXPgyqjgPZ18AiJ94Ss0RwbG6wxi8qtnGjZoI\nswY8dd3mSBG13UxcffTp73sUY5PTbrt805PnOI/uiWlBy9mV5JzjZJ4sQH1z\nJhthudk3btxj+gQyeDNvyIRQX7yb1Pj+dtPcZ32X7l6LzpOEU1VZ2aFQ4f1T\nMkoNG6g3fQ8PJwYlT++TWu7q7xHCvY9t+QKQDJB+49Bwttb27g45DVgMqa51\nS2aZ+XORlk7pSd9urmc6OBpAmWRhnX6BgTqjloWvRlTwEVquIMcEsWKBCSxu\nCcU2\r\n=UIfm\r\n-----END PGP SIGNATURE-----\r\n","size":5023,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-25.2.0.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 8.3"},"gitHead":"9f0339c1c762e39f869f7df63e88470287728b93","_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.20.2/node@v12.14.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.14.1","dependencies":{"execa":"^3.2.0","throat":"^5.0.0","@jest/types":"^25.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_25.2.0_1585159082821_0.3634808638501208","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":1585159082941,"_cnpm_publish_time":1585159082941,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}