@rexnow/rslib-plugin 3.0.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.
@@ -0,0 +1,14 @@
1
+ import type { OptionalKind, PropertySignatureStructure, SourceFile } from 'ts-morph';
2
+ /**
3
+ * 大驼峰命名转换
4
+ */
5
+ export declare const toPascalCase: (str: string) => string;
6
+ /**
7
+ * 生成参数类型
8
+ */
9
+ export declare function generateParamType(param: WidgetModuleParam): OptionalKind<PropertySignatureStructure>;
10
+ export declare function generateTypeName(module: WidgetModule): {
11
+ paramsTypeName: string;
12
+ returnTypeName: string;
13
+ };
14
+ export declare function generateModuleFunctionType(sourceFile: SourceFile, module: WidgetModule): void;
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@rexnow/rslib-plugin",
3
+ "version": "3.0.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "import": "./dist/index.js"
9
+ }
10
+ },
11
+ "main": "./dist/index.js",
12
+ "types": "./dist/index.d.ts",
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "publishConfig": {
17
+ "provenance": true
18
+ },
19
+ "devDependencies": {
20
+ "@rexnow/libs": "3.0.0",
21
+ "@rsbuild/core": "^2.2.5",
22
+ "@rslib/core": "^1.0.0",
23
+ "@types/node": "^26.5.1",
24
+ "typescript": "^7.0.2",
25
+ "zod": "^4.6.4"
26
+ },
27
+ "dependencies": {
28
+ "@hono/node-server": "^2.1.1",
29
+ "es-toolkit": "^1.52.0",
30
+ "hono": "^4.13.7",
31
+ "ts-morph": "^28.0.0"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/baranwang/rex-widget-libs.git",
36
+ "directory": "packages/rslib-plugin"
37
+ },
38
+ "author": "baranwang",
39
+ "license": "MIT",
40
+ "scripts": {
41
+ "build": "rslib build",
42
+ "dev": "rslib build --watch"
43
+ }
44
+ }