first commit

This commit is contained in:
2026-09-08 20:28:54 +08:00
commit 2ada8d3d5a
37380 changed files with 4886169 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import { SCMAdapter } from './types';
declare const adapter: SCMAdapter;
export default adapter;
+10
View File
@@ -0,0 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import { SCMAdapter } from './types';
declare const adapter: SCMAdapter;
export default adapter;
+11
View File
@@ -0,0 +1,11 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import { ChangedFilesPromise, Options, Repos } from './types';
export { ChangedFiles, ChangedFilesPromise } from './types';
export declare const getChangedFilesForRoots: (roots: string[], options: Options) => ChangedFilesPromise;
export declare const findRepos: (roots: string[]) => Promise<Repos>;
+28
View File
@@ -0,0 +1,28 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { Config } from '@jest/types';
export declare type Options = {
lastCommit?: boolean;
withAncestor?: boolean;
changedSince?: string;
includePaths?: Array<Config.Path>;
};
declare type Paths = Set<Config.Path>;
export declare type Repos = {
git: Paths;
hg: Paths;
};
export declare type ChangedFiles = {
repos: Repos;
changedFiles: Paths;
};
export declare type ChangedFilesPromise = Promise<ChangedFiles>;
export declare type SCMAdapter = {
findChangedFiles: (cwd: Config.Path, options: Options) => Promise<Array<Config.Path>>;
getRoot: (cwd: Config.Path) => Promise<Config.Path | null>;
};
export {};