@ruan-cat/utils 4.19.0 → 4.20.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
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PnpmWorkspaceYamlSchema } from 'pnpm-workspace-yaml';
|
|
2
|
+
|
|
1
3
|
type Condition = (...args: unknown[]) => boolean;
|
|
2
4
|
/** @deprecated 没必要 */
|
|
3
5
|
type Conditions = Condition[];
|
|
@@ -96,24 +98,11 @@ lastParams?: any): Promise<any>;
|
|
|
96
98
|
/**
|
|
97
99
|
* pnpm-workspace.yaml 文件的类型声明
|
|
98
100
|
* @description
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* 主要是为了让该文件被解析后,能够有一个基础的类型声明
|
|
101
|
+
* 现在是 pnpm-workspace-yaml 提供的 `PnpmWorkspaceYamlSchema` 类型
|
|
102
102
|
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* 未来应该找到这样的类型声明库,直接复用别人的就好了,不要自己写了。
|
|
103
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/blob/main/packages/pnpm-workspace-yaml/src/index.ts#L4
|
|
106
104
|
*/
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* 包的匹配语法字符串
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ["packages/**", "demos/**", "utils"]
|
|
113
|
-
*/
|
|
114
|
-
packages?: string[];
|
|
115
|
-
catalog?: string[];
|
|
116
|
-
}
|
|
105
|
+
type PnpmWorkspace = PnpmWorkspaceYamlSchema;
|
|
117
106
|
|
|
118
107
|
/**
|
|
119
108
|
* `Prettify` 帮助程序是一种实用程序类型,它采用对象类型并使悬停叠加更具可读性。
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as child_process from 'child_process';
|
|
2
2
|
import { SpawnOptions } from 'node:child_process';
|
|
3
|
+
import { PnpmWorkspaceYamlSchema } from 'pnpm-workspace-yaml';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* 路径转换工具
|
|
@@ -137,24 +138,11 @@ lastParams?: any): Promise<any>;
|
|
|
137
138
|
/**
|
|
138
139
|
* pnpm-workspace.yaml 文件的类型声明
|
|
139
140
|
* @description
|
|
140
|
-
*
|
|
141
|
+
* 现在是 pnpm-workspace-yaml 提供的 `PnpmWorkspaceYamlSchema` 类型
|
|
141
142
|
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* 按理说这个东西应该有别人封装好的类型的,肯定因为我没找到。
|
|
145
|
-
*
|
|
146
|
-
* 未来应该找到这样的类型声明库,直接复用别人的就好了,不要自己写了。
|
|
143
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/blob/main/packages/pnpm-workspace-yaml/src/index.ts#L4
|
|
147
144
|
*/
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* 包的匹配语法字符串
|
|
151
|
-
*
|
|
152
|
-
* @example
|
|
153
|
-
* ["packages/**", "demos/**", "utils"]
|
|
154
|
-
*/
|
|
155
|
-
packages?: string[];
|
|
156
|
-
catalog?: string[];
|
|
157
|
-
}
|
|
145
|
+
type PnpmWorkspace = PnpmWorkspaceYamlSchema;
|
|
158
146
|
|
|
159
147
|
/**
|
|
160
148
|
* `Prettify` 帮助程序是一种实用程序类型,它采用对象类型并使悬停叠加更具可读性。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruan-cat/utils",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.20.0",
|
|
4
4
|
"description": "阮喵喵工具集合。默认提供js文件,也直接提供ts文件。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -67,8 +67,9 @@
|
|
|
67
67
|
"@vueuse/integrations": "^13.9.0",
|
|
68
68
|
"axios": "^1.13.2",
|
|
69
69
|
"consola": "^3.4.2",
|
|
70
|
-
"
|
|
71
|
-
"
|
|
70
|
+
"lodash-es": "^4.17.21",
|
|
71
|
+
"pnpm-workspace-yaml": "^1.4.3",
|
|
72
|
+
"tinyglobby": "^0.2.15"
|
|
72
73
|
},
|
|
73
74
|
"devDependencies": {
|
|
74
75
|
"@antfu/utils": "^9.3.0",
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
+
import type { PnpmWorkspaceYamlSchema } from "pnpm-workspace-yaml";
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* pnpm-workspace.yaml 文件的类型声明
|
|
3
5
|
* @description
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* 主要是为了让该文件被解析后,能够有一个基础的类型声明
|
|
6
|
+
* 现在是 pnpm-workspace-yaml 提供的 `PnpmWorkspaceYamlSchema` 类型
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* 未来应该找到这样的类型声明库,直接复用别人的就好了,不要自己写了。
|
|
8
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/blob/main/packages/pnpm-workspace-yaml/src/index.ts#L4
|
|
11
9
|
*/
|
|
12
|
-
export
|
|
13
|
-
/**
|
|
14
|
-
* 包的匹配语法字符串
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ["packages/**", "demos/**", "utils"]
|
|
18
|
-
*/
|
|
19
|
-
packages?: string[];
|
|
20
|
-
|
|
21
|
-
catalog?: string[];
|
|
22
|
-
}
|
|
10
|
+
export type PnpmWorkspace = PnpmWorkspaceYamlSchema;
|