@ruan-cat/utils 1.5.0 → 2.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 → README.md} +6 -0
- package/dist/index.d.ts +26 -45
- package/dist/index.js +1 -37
- package/dist/index.js.map +1 -1
- package/dist/node-cjs/index.cjs +103 -0
- package/dist/node-cjs/index.cjs.map +1 -0
- package/dist/node-cjs/index.d.cts +42 -0
- package/dist/node-esm/index.d.ts +88 -0
- package/dist/node-esm/index.js +388 -0
- package/dist/node-esm/index.js.map +1 -0
- package/dist/node-esm/template/components.template.js +0 -0
- package/dist/node-esm/template/components.template.ts +21 -0
- package/package.json +28 -8
- package/src/index.ts +5 -4
- package/src/node-cjs/index.ts +1 -0
- package/src/node-cjs/tools.ts +100 -0
- package/src/node-esm/index.ts +5 -0
- package/src/node-esm/scripts/clean.ts +45 -0
- package/src/node-esm/vite-plugin-autogeneration-import-file/README.md +11 -0
- package/src/node-esm/vite-plugin-autogeneration-import-file/index.ts +120 -0
- package/src/node-esm/vite-plugin-autogeneration-import-file/template/components.template.ts +21 -0
- package/src/node-esm/vite-plugin-autogeneration-import-file/vite-plugin-autogeneration-import-file.test.ts +7 -0
- package/src/unplugin-vue-router/index.ts +10 -0
- package/src/vueuse/README.md +9 -0
- package/src/vueuse/useAxios/README.md +53 -0
- package/dist/index.cjs +0 -1040
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -339
- package/dist/index.global.js +0 -70919
- package/dist/index.global.js.map +0 -1
- package/src/node.ts +0 -17
- /package/src/{ruan-cat-pkg-info.ts → node-esm/ruan-cat-pkg-info.ts} +0 -0
- /package/src/{Prettify.ts → types/Prettify.ts} +0 -0
- /package/src/vueuse/{useAxios.ts → useAxios/index.ts} +0 -0
package/src/node.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 一些node环境下的工具函数
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { normalize } from "node:path";
|
|
6
|
-
// import { normalizePath } from "vite";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* 路径转换工具
|
|
10
|
-
*/
|
|
11
|
-
export function pathChange(path: string) {
|
|
12
|
-
return path.replace(/\\/g, "/");
|
|
13
|
-
// FIXME: 无法有效地实现解析路径 测试用例不通过
|
|
14
|
-
// return normalize(path);
|
|
15
|
-
// FIXME: tsup打包时,无法处理好vite的依赖 会导致打包失败 不知道怎么单独使用并打包该函数
|
|
16
|
-
// return normalizePath(path);
|
|
17
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|