@zengzizhao/test-utils 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/dist/index.cjs ADDED
@@ -0,0 +1,12 @@
1
+
2
+ //#region src/math.ts
3
+ function sum(a, b) {
4
+ return a + b;
5
+ }
6
+ function multiply(a, b) {
7
+ return a * b;
8
+ }
9
+
10
+ //#endregion
11
+ exports.multiply = multiply;
12
+ exports.sum = sum;
@@ -0,0 +1,5 @@
1
+ //#region src/math.d.ts
2
+ declare function sum(a: number, b: number): number;
3
+ declare function multiply(a: number, b: number): number;
4
+ //#endregion
5
+ export { multiply, sum };
@@ -0,0 +1,5 @@
1
+ //#region src/math.d.ts
2
+ declare function sum(a: number, b: number): number;
3
+ declare function multiply(a: number, b: number): number;
4
+ //#endregion
5
+ export { multiply, sum };
package/dist/index.mjs ADDED
@@ -0,0 +1,10 @@
1
+ //#region src/math.ts
2
+ function sum(a, b) {
3
+ return a + b;
4
+ }
5
+ function multiply(a, b) {
6
+ return a * b;
7
+ }
8
+
9
+ //#endregion
10
+ export { multiply, sum };
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@zengzizhao/test-utils",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "description": "工具库",
6
+ "keywords": [
7
+ "utils",
8
+ "tool"
9
+ ],
10
+ "author": "zengzizhao",
11
+ "license": "ISC",
12
+ "packageManager": "pnpm@10.19.0",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/Zengzzhao/test-utils.git"
16
+ },
17
+ "homepage": "https://github.com/Zengzzhao/test-utils",
18
+ "bugs": "https://github.com/Zengzzhao/test-utils/issues",
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "exports": {
26
+ ".": {
27
+ "import": {
28
+ "types": "./dist/index.d.mts",
29
+ "default": "./dist/index.mjs"
30
+ },
31
+ "require": {
32
+ "types": "./dist/index.d.cts",
33
+ "default": "./dist/index.cjs"
34
+ }
35
+ }
36
+ },
37
+ "type": "module",
38
+ "scripts": {
39
+ "build": "tsdown"
40
+ },
41
+ "devDependencies": {
42
+ "tsdown": "^0.18.3",
43
+ "typescript": "^5.9.3"
44
+ }
45
+ }