{"name":"jest-changed-files","version":"14.2.2-alpha.22bd3c33","license":"BSD-3-Clause","_id":"jest-changed-files@14.2.2-alpha.22bd3c33","maintainers":[{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"dmitriiabramov","email":"dmitrii@rheia.us"},{"name":"fb","email":"opensource+npm@fb.com"}],"homepage":"https://github.com/facebook/jest#readme","bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"52999efd25dd223a5fd288f05be2550eb7dca0a1","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-14.2.2-alpha.22bd3c33.tgz","integrity":"sha512-cbzTHIxB+trLrLlBjbfCHc2k4S7uOkRjbVK1+A14GQcs9m5hcREM7EUpnZXJV9BQi3QlEb0DcsPwKou1WtLocA==","signatures":[{"sig":"MEUCIHhwM5wIiStB3qrkmVkR4FJmeP/E8W+7uqmbeusUjTGWAiEAzeBEk3Eeqq44yz0LgatLX9LUIzOe1bLp/2erbxB/KW8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2411,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-14.2.2-alpha.22bd3c33.tgz"},"main":"build/index.js","_from":".","_shasum":"52999efd25dd223a5fd288f05be2550eb7dca0a1","scripts":{"test":"../../packages/jest-cli/bin/jest.js"},"_npmUser":{"name":"cpojer","email":"christoph.pojer@gmail.com"},"repository":{"url":"git+https://github.com/facebook/jest.git","type":"git"},"_npmVersion":"3.10.3","description":"A module used internally by Jest to check which files have changed since you last committed in git or hg.","directories":{},"_nodeVersion":"6.3.0","devDependencies":{"rimraf":"^2.5.2"},"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files-14.2.2-alpha.22bd3c33.tgz_1471388093327_0.5952252452261746","host":"packages-12-west.internal.npmjs.com"},"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":1471388094925,"_cnpm_publish_time":1471388094925,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}