{"name":"jest-changed-files","version":"25.4.0","license":"MIT","_id":"jest-changed-files@25.4.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":"e573db32c2fd47d2b90357ea2eda0622c5c5cbd6","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-25.4.0.tgz","fileCount":15,"integrity":"sha512-VR/rfJsEs4BVMkwOTuStRyS630fidFVekdw/lBaBQjx9KK3VZFOZ2c0fsom2fRp8pMCrCTP6LGna00o/DXGlqA==","signatures":[{"sig":"MEYCIQC+ScYpMS7CY/YarzH8XpwK9ZXzK4APxeIGxymKhiG6xwIhAOEt0dFO84vFq90udCpw0L24shZDbd7pETN0QFbPdJQc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16372,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenMehCRA9TVsSAnZWagAAA8AP/0L0APbSkiqSrkmfvPvG\nNsnYKHFvf02Xs/n8dJQsIqGtzvFkWnoLOOU/asNQKA3eGVBt0Ym7i1B8aBpD\nOP5CFfECDtun2NIARs3vagNorekXejmQK4XMyvGg8ouSYpJD0iEKBfZNon3p\n8xGOg2nZ5cIz382KMInUI8nLBN/EQQZ1CCqzuHxZ2kPJvwuxy1OQgs+n3aTv\nEKpe8fNfZ/OoL8s3P7Rdii/RvxlJymYCSK4TAtvh5cpV17k+CmkXXBZGtJ4Z\noriq/7+pQ2DKJA0tAjQrHRf4CRjapTJAkB2NmbAMz4LtCLwtOAZwPVcYz0Jo\nSo6FBYgUUgNmBeYarOoTdjoT2hsVrnTJoPHf9qJhnMIg8mDU4BsUdjCTRRqb\nrFmc/pN7eUhkIL6AS/GtfwjfwB1ixSuVWFYPK2e/WOWhQMPUgfhEGIGgp5Bv\n2rb/OowOL2EoKAg3MMosl+qAnTZvMu6lpOQ+qDoMkeyw35vzc71HCbPOKdtE\njvPIdKN0bKd5IamsEj6R5PzQILvGHJnbIB/+7SmqR0eC8Z3TFI1QgBNJ7fiG\nfIu8pUIvmLQj1il1a4QZaDlcr3yi7w4BD8vofvMbgf4/aPQg1GGGgN+pzszT\nadcPpLzh4tCgefkRmUPSD7A2PxMwwOCvyEYkWFM1t7YiOmQSqs4BxrtJ/j00\nb5gP\r\n=vncV\r\n-----END PGP SIGNATURE-----\r\n","size":4415,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-25.4.0.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 8.3"},"gitHead":"5b129d714cadb818be28afbe313cbeae8fbb1dde","_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.16.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.16.1","dependencies":{"execa":"^3.2.0","throat":"^5.0.0","@jest/types":"^25.4.0"},"publishConfig":{"access":"public"},"typesVersions":{"<3.8":{"build/*":["build/ts3.4/*"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_25.4.0_1587333024539_0.34914995787915726","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":1587333024652,"_cnpm_publish_time":1587333024652,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}