{"name":"jest-changed-files","version":"27.0.0-next.1","license":"MIT","_id":"jest-changed-files@27.0.0-next.1","maintainers":[{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"},{"name":"rubennorte","email":"rubennorte@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"cpojer","email":"christoph.pojer@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":"084a5df6027eaa5e771f81074ce31894a1db1bf2","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-27.0.0-next.1.tgz","fileCount":11,"integrity":"sha512-EyHpXUoJ4zjrT37r4k/Qdlt4S+N29wgEO8n4tjEbDM33TsK56ZNSWzGJn5Gk82uDm+J+Ror0SAGhHU6KwO1HIw==","signatures":[{"sig":"MEQCIClyC4ruDB1KNziWgutw1iVmfmV7UNnC2PER1Mku8s/9AiAO/97au60DVYx/FZZNnmHY6J/NIdvZ5Gtr/3IYZAfyhg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14356,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfziNpCRA9TVsSAnZWagAATYAP/0CFCWwEsglXGbjnWwE7\n5VeHlGaJSDBp4d3drqQU2Q2wsIrb+KHS/pGrdNwIHyQN4OX41m8DY/BXh4Pl\nsClIC8W+YSTI4QJWfouGZym1a0NJRe+W8IFqNjhtbZQamE3zb8Xe8R5Y30tC\ng/QvqqKHHvNnft3SgYXbumoGSKL1KU7h013DLYIsisxQwsaX7pYu9IoC3dCo\nz2ijhuiU81hBDqV+k/MzYyYvdwFpEDzxYwKtx6cgJUAhZst7dDAyrLssn8Lk\nzhFtgzyU9CSMDN/lf+BCDxwDOOUS1CP377Jhb3axBkPF1UmKXwHP4IIeTWbV\nXbbULEdjvsD13jQx5vre6kKhky7SRnOAjYx2nzdfqzmZFIgnz255h0p71rF2\nt/4bgvTxUUykP3CHN9Ui10jJN6bf/t2v95OU4dnsut2yVYy3CMIYnuEf2wcN\n7WpJjZ6q/35n/YpP8tYZ4asg92Da+ra6GyJZD5w6tmwtBv94Nx2LChF7RJ+3\nYRchu6R/H+s6eJgN180plv6RkFBJhDzhgCN8i3DViC2gAmjWlUk8grzrXTDf\nIvSPCePxXa6PAGJVIj+rH/RX8dYaXNkLg8TwonYsenYgTMcRrfjO4ueVXnZy\nC0ajioM7WHvBO9/Y8oe256o/gIR4UGmVfXBdyGm+HfxLqd1siLE1vR/T5oXw\nstlT\r\n=wTEf\r\n-----END PGP SIGNATURE-----\r\n","size":4151,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-27.0.0-next.1.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":"774c1898bbb078c20fa53906d535335babc6585d","_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.22.1/node@v14.15.0+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.15.0","dependencies":{"execa":"^5.0.0","throat":"^5.0.0","@jest/types":"^27.0.0-next.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_27.0.0-next.1_1607345000679_0.9594095435306591","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":1607345000784,"_cnpm_publish_time":1607345000784,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}