{"name":"jest-changed-files","version":"29.4.2","license":"MIT","_id":"jest-changed-files@29.4.2","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":"bee1fafc8b620d6251423d1978a0080546bc4376","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-29.4.2.tgz","fileCount":8,"integrity":"sha512-Qdd+AXdqD16PQa+VsWJpxR3kN0JyOCX1iugQfx5nUgAsI4gwsKviXkpclxOK9ZnwaY2IQVHz+771eAvqeOlfuw==","signatures":[{"sig":"MEUCIFsisrFtWi760JdV63HWkjk5GNKmyFvdhQjsWZvoDfpwAiEAn1YiY6CLsByKP7QHbngsHSE78y/K/945WBqJIrefxao=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4lXyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQjhAAjC9snOKyJGSkrFDOlyr/YPqqXywkovWXCBzF9atmI1d3QXOk\r\nwS4ixo+V0MAs5venaLTVawFInFPdoTq4FfjOmz4l5EvkZj5qHOXsrPqpZI0U\r\nUJ7Moks757cgVzFKoX8tCXUvOSNZ3dgCsZo55/OvaMHhyN+PI5VQzO1jcPf3\r\nX6mvS/7Ca1uMskQPDKDX5NDA1BF/IXavNK33zyftDtRhvaBfDAUKdZrps90k\r\nh1+AsQIu3ExX/FovFspXIFeNjorNO3t9vp09OnoXzSjIV/1bqPgqa2BywFPZ\r\nPmmH656hZ5BjFy+iZqlN3XTzDgYLq3DyU+5HQkLP66COlgMNClfvUFULzTNM\r\njr6sl8PUeo2z2vhvcV+goyxxeRM7ChJOjyncs+pnIGH0VRePijVnnKB4qNuj\r\n5dtmtsvDnaWRhwPPSWHgYjeR7nXi0yd1lQQGL+fpRzj96KJb8qcsRlLeb5hk\r\n9O/VSVAG8zW2NKDiXFwZl2NEk+SJmBwukOvPk32Da4aTifdqxaXoOHhu0RQ4\r\nYPWM7xIFXqB7+8ROV90jqxlK4n5znEAVRc5YAVKuw2L+LRUzied3EvSlAavW\r\n6nJILc7PNQEguq7bjAAdX8L2KMBw0KyKjOjy3zsOZVVV6GAm4x9PuQFwTr1x\r\nBUOniv3ea9yhzOccqDmun5XlUtY/br6ubwI=\r\n=ykjH\r\n-----END PGP SIGNATURE-----\r\n","size":4159,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-29.4.2.tgz"},"main":"./build/index.js","types":"./build/index.d.ts","engines":{"node":"^14.15.0 || ^16.10.0 || >=18.0.0"},"exports":{".":{"types":"./build/index.d.ts","default":"./build/index.js"},"./package.json":"./package.json"},"gitHead":"f0fc92e8443f09546c7ec0472bf9bce44fe5898f","_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/1.13.0/node@v16.19.0+arm64 (darwin)","description":"A module used internally by Jest to check which files have changed since you last committed in git or hg.","directories":{},"_nodeVersion":"16.19.0","dependencies":{"execa":"^5.0.0","p-limit":"^3.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_29.4.2_1675777521816_0.23587246408877416","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":1675777521997,"_cnpm_publish_time":1675777521997,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}