@ruan-cat/utils 4.18.0 → 4.19.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/dist/index.d.ts +1 -14
- package/dist/index.js +0 -2632
- package/dist/index.js.map +1 -1
- package/dist/node-cjs/index.cjs +2 -2
- package/dist/node-cjs/index.cjs.map +1 -1
- package/dist/node-cjs/index.d.cts +13 -13
- package/dist/node-esm/index.d.ts +14 -1
- package/dist/node-esm/index.js +35 -2
- package/dist/node-esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +0 -1
- package/src/{monorepo.ts → monorepo/index.ts} +1 -1
- package/src/node-cjs/index.ts +3 -0
- package/src/node-esm/index.ts +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -93,19 +93,6 @@ declare function executePromiseTasks(config: TasksConfig,
|
|
|
93
93
|
*/
|
|
94
94
|
lastParams?: any): Promise<any>;
|
|
95
95
|
|
|
96
|
-
/**
|
|
97
|
-
* 判断目标项目是否是 monorepo 格式的项目
|
|
98
|
-
* @description
|
|
99
|
-
* 判别逻辑:
|
|
100
|
-
* 1. 目标项目同时存在 `pnpm-workspace.yaml` 文件
|
|
101
|
-
* 2. `pnpm-workspace.yaml` 提供了有效的 packages 匹配配置
|
|
102
|
-
* 3. 至少能匹配到一个 package.json 文件
|
|
103
|
-
*
|
|
104
|
-
* @returns {boolean} 是否是 monorepo 项目
|
|
105
|
-
* @throws {Error} 当 pnpm-workspace.yaml 格式错误时抛出错误
|
|
106
|
-
*/
|
|
107
|
-
declare function isMonorepoProject(): boolean;
|
|
108
|
-
|
|
109
96
|
/**
|
|
110
97
|
* pnpm-workspace.yaml 文件的类型声明
|
|
111
98
|
* @description
|
|
@@ -143,4 +130,4 @@ type Prettify<T> = {
|
|
|
143
130
|
*/
|
|
144
131
|
type ToNumberLike<T extends number> = T | `${T}`;
|
|
145
132
|
|
|
146
|
-
export { type BaseTask, type Condition, type Conditions, type ParallelTasks, type PnpmWorkspace, type Prettify, type PrintListParams, type PromiseTasksConfig, type QueueTasks, type SimpleAsyncTask, type SingleTasks, type Task, type TaskType, type TasksConfig, type ToNumberLike, definePromiseTasks, executePromiseTasks, generateSimpleAsyncTask, initFlag, isConditionsEvery, isConditionsSome,
|
|
133
|
+
export { type BaseTask, type Condition, type Conditions, type ParallelTasks, type PnpmWorkspace, type Prettify, type PrintListParams, type PromiseTasksConfig, type QueueTasks, type SimpleAsyncTask, type SingleTasks, type Task, type TaskType, type TasksConfig, type ToNumberLike, definePromiseTasks, executePromiseTasks, generateSimpleAsyncTask, initFlag, isConditionsEvery, isConditionsSome, printFormat, printList, runPromiseByConcurrency, runPromiseByQueue, taskTypes };
|