@rsbuild/plugin-source-build 1.0.0 → 1.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # Rsbuild
6
6
 
7
- Unleash the power of Rspack with the out-of-the-box build tool.
7
+ The Rspack-based build tool. It's fast, out-of-the-box and extensible.
8
8
 
9
9
  ## Documentation
10
10
 
@@ -0,0 +1,9 @@
1
+ import type { MonorepoAnalyzer } from '../types';
2
+ import type { GetProjectsFunc } from './getProjects';
3
+ export interface IMonorepoBaseData {
4
+ isMonorepo: boolean;
5
+ type: string;
6
+ rootPath: string;
7
+ getProjects?: GetProjectsFunc;
8
+ }
9
+ export declare const getMonorepoBaseData: (starFindPath: string, otherMonorepoAnalyzer?: Record<string, MonorepoAnalyzer>) => Promise<IMonorepoBaseData>;
@@ -0,0 +1,4 @@
1
+ import type { Project } from '../project';
2
+ import type { IMonorepoBaseData } from './getBaseData';
3
+ export type GetProjectsFunc = (rootPath: string) => Promise<Project[]> | Project[];
4
+ export declare const getMonorepoSubProjects: (monorepoBaseData: IMonorepoBaseData) => Promise<Project[]>;
@@ -0,0 +1,6 @@
1
+ export * from './getBaseData';
2
+ export * from './isMonorepo';
3
+ export { getMonorepoSubProjects } from './getProjects';
4
+ export { getProjects as getPnpmMonorepoSubProjects } from './pnpm';
5
+ export { getProjects as getRushMonorepoSubProjects } from './rush';
6
+ export type { GetProjectsFunc } from './getProjects';
@@ -0,0 +1,8 @@
1
+ export type IsMonorepoFn = (monorepoRootPath: string) => Promise<boolean> | boolean;
2
+ export type IsMonorepoResult = {
3
+ isMonorepo: boolean;
4
+ type: 'rush' | 'pnpm' | string;
5
+ };
6
+ export declare const isPnpmMonorepo: IsMonorepoFn;
7
+ export declare const isRushMonorepo: IsMonorepoFn;
8
+ export declare const isMonorepo: (monorepoRootPath: string, otherMonorepoChecks?: Record<string, IsMonorepoFn>) => Promise<IsMonorepoResult>;
@@ -0,0 +1,2 @@
1
+ import { Project } from '../project';
2
+ export declare const getProjects: (monorepoRoot: string) => Promise<Project[]>;
@@ -0,0 +1,2 @@
1
+ import { Project } from '../project';
2
+ export declare const getProjects: (monorepoRoot: string) => Promise<Project[]>;
@@ -0,0 +1,3 @@
1
+ export declare const PNPM_WORKSPACE_FILE = "pnpm-workspace.yaml";
2
+ export declare const RUSH_JSON_FILE = "rush.json";
3
+ export declare const PACKAGE_JSON = "package.json";