@wevu/api 0.0.0 → 0.0.1

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 ADDED
@@ -0,0 +1,34 @@
1
+ # @wevu/api
2
+
3
+ ## 简介
4
+
5
+ `@wevu/api` 是一个轻量的 API 包,目前主要用于提供基础导出与包结构示例,便于后续扩展。
6
+
7
+ ## 特性
8
+
9
+ - 体积小、依赖少
10
+ - 适合承载通用 API 或类型导出
11
+ - 目前提供简单的示例导出
12
+
13
+ ## 安装
14
+
15
+ ```bash
16
+ pnpm add @wevu/api
17
+ ```
18
+
19
+ ## 使用
20
+
21
+ ```ts
22
+ import { greet, VERSION } from '@wevu/api'
23
+
24
+ console.log(greet('wevu'))
25
+ console.log(VERSION)
26
+ ```
27
+
28
+ ## 配置
29
+
30
+ 暂无额外配置。
31
+
32
+ ## 相关链接
33
+
34
+ - 仓库:https://github.com/weapp-vite/weapp-vite
package/dist/index.cjs CHANGED
@@ -1,8 +1,14 @@
1
1
 
2
2
  //#region src/index.ts
3
+ /**
4
+ * @description 简单的问候函数
5
+ */
3
6
  function greet(name) {
4
7
  return `hello ${name}`;
5
8
  }
9
+ /**
10
+ * @description 当前包版本号
11
+ */
6
12
  const VERSION = "0.0.0";
7
13
 
8
14
  //#endregion
package/dist/index.d.cts CHANGED
@@ -1,5 +1,11 @@
1
1
  //#region src/index.d.ts
2
+ /**
3
+ * @description 简单的问候函数
4
+ */
2
5
  declare function greet(name: string): string;
6
+ /**
7
+ * @description 当前包版本号
8
+ */
3
9
  declare const VERSION = "0.0.0";
4
10
  //#endregion
5
11
  export { VERSION, greet };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,11 @@
1
1
  //#region src/index.d.ts
2
+ /**
3
+ * @description 简单的问候函数
4
+ */
2
5
  declare function greet(name: string): string;
6
+ /**
7
+ * @description 当前包版本号
8
+ */
3
9
  declare const VERSION = "0.0.0";
4
10
  //#endregion
5
11
  export { VERSION, greet };
package/dist/index.mjs CHANGED
@@ -1,7 +1,13 @@
1
1
  //#region src/index.ts
2
+ /**
3
+ * @description 简单的问候函数
4
+ */
2
5
  function greet(name) {
3
6
  return `hello ${name}`;
4
7
  }
8
+ /**
9
+ * @description 当前包版本号
10
+ */
5
11
  const VERSION = "0.0.0";
6
12
 
7
13
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wevu/api",
3
3
  "type": "module",
4
- "version": "0.0.0",
4
+ "version": "0.0.1",
5
5
  "description": "tsdown bundler template",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",