{"name":"jest-changed-files","version":"28.1.3","license":"MIT","_id":"jest-changed-files@28.1.3","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":"d9aeee6792be3686c47cb988a8eaf82ff4238831","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-28.1.3.tgz","fileCount":8,"integrity":"sha512-esaOfUWJXk2nfZt9SPyC8gA1kNfdKLkQWyzsMlqq8msYSlNKfmZxfRgZn4Cd4MGVUF+7v6dBs0d5TOAKa7iIiA==","signatures":[{"sig":"MEYCIQDE9z6wnXbYC83ujfyCZ/DNNAAEacazRieUanlS9Gz6QQIhAP4jUgQqTXmXlNZpGWFfCrP3FbV35gX26IlBRKzvbDNb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13781,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiztLKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrmXw/7BPMiHxxwb/5q6ZQKa/f8a0MlGG6a9D9L0166cLoEWjk03qhz\r\nFCqRQ4YGwrttljyOEqt2p67Ei1VcGQvQoNFZTb2pvobtEJgIURsdDrJO6CKo\r\nsPF9NdU/JBA1gTejtgW0fsnTJ2ivCso9mQ0alXIAh3bzs1mIZHbU6JAL1idx\r\ndII3E/N1YSV4kxR7DeIWXBUn78JFQPXeQyu4Sf0+zmkgFBAHCsEZEpZVjsBR\r\nHAFqb4W6xza2z8gJ+nwX9Eqm+OadEAavwDblL2PKo1U6GKp7cLUZh72k5biS\r\nsB/eaeZzqoIf4SyPsSxRhyWqgRvk32L9lzGi1B0+RYSnbm26/7wN49feELnx\r\nf/zRNP7IoKGSBGJTbBN55nUybtRE3g0q+0/2XHxRw71njDMco8seD6DWjTug\r\nlHafbo4N5jbLWVHrGNYYjg603WcXifpF+CXc6WKYs6XM8pyb56RumGiWsLZL\r\nHKO1Cl4NV7tIoSiczP37HH54m+ILVkHPJJlXtuCZADxlmm6O9d7riujMq4v0\r\ne+lQ+LMhO+81WUDMVsxar2TXbu44/3doaCuKSVzrXWAiSTs1kTk2aEzcAuHI\r\nYcOSZAnibRVrsH8Otho44m6pPwoWacxt2KGRrAC5pWDQNPv/E2XKmbrNn+HG\r\nb9sy+uro3ofdbhhKxHQH6QO1nkOC1MmrL3M=\r\n=s59W\r\n-----END PGP SIGNATURE-----\r\n","size":4068,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-28.1.3.tgz"},"main":"./build/index.js","types":"./build/index.d.ts","engines":{"node":"^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0"},"exports":{".":{"types":"./build/index.d.ts","default":"./build/index.js"},"./package.json":"./package.json"},"gitHead":"2cce069800dab3fc8ca7c469b32d2e2b2f7e2bb1","_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@v16.15.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":"16.15.1","dependencies":{"execa":"^5.0.0","p-limit":"^3.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_28.1.3_1657721545901_0.7105837684015384","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":1657721546090,"_cnpm_publish_time":1657721546090,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}