@ruan-cat/utils 1.1.1 → 1.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruan-cat/utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "阮喵喵工具集合。一个纯typescript库。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"generate:type-2": "tsc -p tsconfig.json --composite false --declaration true --emitDeclarationOnly true",
|
|
72
72
|
"generate:type-3": "vue-tsc -p tsconfig.types.json",
|
|
73
73
|
"get-type": "pnpm clean:type && pnpm generate:type-3",
|
|
74
|
+
"build:-try-1": "pnpm clean:type && vue-tsc -p tsconfig.build.json",
|
|
74
75
|
"rm:node_modules": "rimraf node_modules"
|
|
75
76
|
}
|
|
76
77
|
}
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pnpm-workspace.yaml 文件的类型声明
|
|
3
|
+
* @description
|
|
4
|
+
* 设计理由
|
|
5
|
+
*
|
|
6
|
+
* 主要是为了让该文件被解析后,能够有一个基础的类型声明
|
|
7
|
+
*
|
|
8
|
+
* 按理说这个东西应该有别人封装好的类型的,肯定因为我没找到。
|
|
9
|
+
*
|
|
10
|
+
* 未来应该找到这样的类型声明库,直接复用别人的就好了,不要自己写了。
|
|
11
|
+
*/
|
|
12
|
+
export interface PnpmWorkspace {
|
|
13
|
+
/**
|
|
14
|
+
* 包的匹配语法字符串
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ["packages/**", "demos/**", "utils"]
|
|
18
|
+
*/
|
|
19
|
+
packages?: string[];
|
|
20
|
+
|
|
21
|
+
catalog?: string[];
|
|
22
|
+
}
|