{"name":"jest-changed-files","version":"27.1.0","license":"MIT","_id":"jest-changed-files@27.1.0","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":"42da6ea00f06274172745729d55f42b60a9dffe0","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-27.1.0.tgz","fileCount":11,"integrity":"sha512-eRcb13TfQw0xiV2E98EmiEgs9a5uaBIqJChyl0G7jR9fCIvGjXovnDS6Zbku3joij4tXYcSK4SE1AXqOlUxjWg==","signatures":[{"sig":"MEQCIG3N+XoQrcSHZMGepCTIIiBRzAtWxRyJ0MD9g2Bvz0tZAiBIzaLCcTF+lBoqbmUPy5xF2cVP8u7l2Ywz4IWuz85Rzg==","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\nwsFcBAEBCAAQBQJhKLeICRA9TVsSAnZWagAAEEwP/0F+zT04W27JjzMrxSPf\nb0OSy02DoUHk0q0kyI6RyjY6u+txsgZSf3uvCPvDr/zO5aAZwJFj65SXr8Ui\nijNZjcr/YS5NDWp5PjqrV0ukKo7LPyeQ2L0KsZvlil/dRV6So43f2Vts6xqY\nSithR5bW7VfGxbFs9suEXEpeaP2q0SeDW5SRSLf0Pwa7cQL2g+5sJZ9YuJ54\n5DEfVPviqNDZNjlVhS6q1pAvxCE9XxOSpjPQAX5WcmUVdwrG0PG5bS6dJt4q\nFNEtBVc2AY+Su86sXNApAogi5yiTRcj0BrJ9dXHdpee8BeyarDCRHIbr0O74\nF6vpvNYZg7SC27YvgD+ZVY71EOQgQgvisMqEAb58SVuky5bHhc7GPzDGFr3E\nYC2iVeiolKacI0xoihZKPBtWQPcs31eLDHKFhRyStjj5mlQXqjqmJfli3oVz\nPqNQwtEWJF2S1V1lVgL9xRy88ijXK8gx9syc5dPSxUWbGE22vkL9DmwMgEp6\nzwGXyonDzF7+6dAYkhgYBxPvSLZz8l9NB8Pywo3WfYSiYG0jZqRWta/H5mJV\neyi4I1LnLHhC7+fPx4SgR3VgSGWxeY7NAxsrp+Fr7Z/faVRxqRB42i7TIR1E\nJ5+jEfw0KK2E8dD+25pItARiGD49vUikWhr7p4jqLqk8HaSsw5Ium/LTKZoR\nTADr\r\n=u2Vx\r\n-----END PGP SIGNATURE-----\r\n","size":4227,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-27.1.0.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":"5ef792e957e83428d868a18618b8629e32719993","_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.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_27.1.0_1630058376396_0.4161838942437266","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":1630058376490,"_cnpm_publish_time":1630058376490,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}