@lntvow/utils 1.0.9 → 1.0.11

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.js CHANGED
@@ -23,7 +23,15 @@ function getRandomString(number) {
23
23
  .toString(36)
24
24
  .slice(2, number + 2);
25
25
  }
26
+ console.log('222222');
27
+
28
+ console.log(111_111);
29
+ // 导出具名内容
30
+ function someFunction() {
31
+ // 函数实现
32
+ }
26
33
 
27
34
  exports.getRandomColor = getRandomColor;
28
35
  exports.getRandomString = getRandomString;
36
+ exports.someFunction = someFunction;
29
37
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.d.ts CHANGED
@@ -14,4 +14,6 @@ declare function getRandomColor(): string;
14
14
  * */
15
15
  declare function getRandomString(number: number): string;
16
16
 
17
- export { getRandomColor, getRandomString };
17
+ declare function someFunction(): void;
18
+
19
+ export { getRandomColor, getRandomString, someFunction };
package/dist/index.es.js CHANGED
@@ -21,6 +21,13 @@ function getRandomString(number) {
21
21
  .toString(36)
22
22
  .slice(2, number + 2);
23
23
  }
24
+ console.log('222222');
24
25
 
25
- export { getRandomColor, getRandomString };
26
+ console.log(111_111);
27
+ // 导出具名内容
28
+ function someFunction() {
29
+ // 函数实现
30
+ }
31
+
32
+ export { getRandomColor, getRandomString, someFunction };
26
33
  //# sourceMappingURL=index.es.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/utils",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "工具库",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -15,7 +15,6 @@
15
15
  "types": "dist/index.d.ts",
16
16
  "devDependencies": {
17
17
  "@lntvow/eslint-config": "^3.0.5",
18
- "@rollup/plugin-node-resolve": "^15.1.0",
19
18
  "@rollup/plugin-terser": "^0.4.3",
20
19
  "bumpp": "^9.1.1",
21
20
  "commitizen": "^4.3.0",
@@ -24,6 +23,7 @@
24
23
  "rollup-plugin-dts": "^5.3.0",
25
24
  "rollup-plugin-typescript2": "^0.35.0",
26
25
  "typescript": "^5.1.3",
26
+ "vite-plugin-dts": "3.0.0-beta.1",
27
27
  "vitest": "^0.32.2"
28
28
  },
29
29
  "config": {
@@ -33,10 +33,11 @@
33
33
  },
34
34
  "eslintTypescript": "true",
35
35
  "scripts": {
36
+ "dev": "vite build",
37
+ "dts": "vite build -c vite.config.dts.js",
36
38
  "test": "vitest",
37
- "dev": "rollup -cw",
38
39
  "build": "pnpm build-dts && rollup -c && pnpm release",
39
- "build-dts": "pnpm tsc -p tsconfig.build.json && rollup -c rollup.dts.config.js",
40
+ "build-dts": "tsc -p tsconfig.build.json && rollup -c rollup.dts.config.js",
40
41
  "commit": "git add . && git-cz && git push",
41
42
  "rimraf": "rimraf ./node_modules/",
42
43
  "preinstall": "npx only-allow pnpm",