rattail 1.7.0 → 1.8.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 @@
1
+ export * from "@varlet/axle/api";
@@ -0,0 +1,2 @@
1
+ export * from "@varlet/axle/api";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@varlet/axle";
@@ -0,0 +1,2 @@
1
+ export * from "@varlet/axle";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@varlet/axle/use";
@@ -0,0 +1,2 @@
1
+ export * from "@varlet/axle/use";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "ruler-factory";
@@ -0,0 +1,2 @@
1
+ export * from "ruler-factory";
2
+ export {};
@@ -0,0 +1,2 @@
1
+ import { CreateVueConfigOptions, DummyRule, LintOptions, LintOptionsVue, OxlintConfig, OxlintOverride, fmt, lint } from "@configurajs/vite-plus";
2
+ export { type CreateVueConfigOptions, type DummyRule, type LintOptions, type LintOptionsVue, type OxlintConfig, type OxlintOverride, fmt, lint };
@@ -0,0 +1,2 @@
1
+ import { fmt, lint } from "@configurajs/vite-plus";
2
+ export { fmt, lint };
package/package.json CHANGED
@@ -1,64 +1,107 @@
1
1
  {
2
2
  "name": "rattail",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "A utilities library for front-end developers, lightweight and ts-friendly",
5
5
  "keywords": [
6
- "utilities library",
7
6
  "front-end developers",
8
7
  "lightweight",
9
- "ts-friendly"
8
+ "ts-friendly",
9
+ "utilities library"
10
10
  ],
11
11
  "bugs": {
12
12
  "url": "https://github.com/varletjs/rattail/issues"
13
13
  },
14
+ "license": "MIT",
15
+ "author": "haoziqaq <357229046@qq.com>",
14
16
  "repository": {
15
17
  "type": "git",
16
18
  "url": "git+https://github.com/varletjs/rattail.git"
17
19
  },
18
- "license": "MIT",
19
- "author": "haoziqaq <357229046@qq.com>",
20
- "sideEffects": false,
20
+ "files": [
21
+ "dist"
22
+ ],
21
23
  "type": "module",
22
- "exports": "./dist/index.mjs",
24
+ "sideEffects": false,
23
25
  "main": "dist/index.mjs",
24
26
  "module": "dist/index.mjs",
25
27
  "types": "dist/index.d.mts",
26
- "files": [
27
- "dist"
28
- ],
29
- "simple-git-hooks": {
30
- "pre-commit": "pnpm exec nano-staged --allow-empty",
31
- "commit-msg": "pnpm exec vr commit-lint -p $1"
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/index.d.mts",
31
+ "import": "./dist/index.mjs"
32
+ },
33
+ "./vite-plus": {
34
+ "types": "./dist/vite-plus/index.d.mts",
35
+ "import": "./dist/vite-plus/index.mjs"
36
+ },
37
+ "./axle": {
38
+ "types": "./dist/axle/index.d.mts",
39
+ "import": "./dist/axle/index.mjs"
40
+ },
41
+ "./axle/use": {
42
+ "types": "./dist/axle/use.d.mts",
43
+ "import": "./dist/axle/use.mjs"
44
+ },
45
+ "./axle/api": {
46
+ "types": "./dist/axle/api.d.mts",
47
+ "import": "./dist/axle/api.mjs"
48
+ },
49
+ "./ruler-factory": {
50
+ "types": "./dist/ruler-factory/index.d.mts",
51
+ "import": "./dist/ruler-factory/index.mjs"
52
+ }
32
53
  },
33
- "nano-staged": {
34
- "*.{md}": "prettier --write",
35
- "*.{ts}": [
36
- "prettier --write",
37
- "eslint --fix"
38
- ]
54
+ "typesVersions": {
55
+ "*": {
56
+ "vite-plus": [
57
+ "dist/vite-plus/index.d.mts"
58
+ ],
59
+ "axle": [
60
+ "dist/axle/index.d.mts"
61
+ ],
62
+ "axle/use": [
63
+ "dist/axle/use.d.mts"
64
+ ],
65
+ "axle/api": [
66
+ "dist/axle/api.d.mts"
67
+ ],
68
+ "ruler-factory": [
69
+ "dist/ruler-factory/index.d.mts"
70
+ ]
71
+ }
39
72
  },
40
73
  "dependencies": {
41
- "js-cookie": "^3.0.5",
42
- "mitt": "^3.0.1",
43
- "uuid": "^13.0.0"
74
+ "@configurajs/vite-plus": "0.1.9",
75
+ "@varlet/axle": "1.0.1",
76
+ "js-cookie": "3.0.5",
77
+ "mitt": "3.0.1",
78
+ "ruler-factory": "0.0.14",
79
+ "uuid": "13.0.0"
44
80
  },
45
81
  "devDependencies": {
46
- "@configurajs/eslint": "^0.0.14",
47
- "@configurajs/prettier": "^0.1.1",
48
82
  "@types/node": "^22.8.1",
49
83
  "@varlet/release": "^1.0.2",
50
84
  "@vitest/coverage-istanbul": "^4.1.0",
51
- "eslint": "9.17.0",
52
85
  "jsdom": "^25.0.1",
53
86
  "nano-staged": "0.8.0",
54
- "prettier": "^3.1.0",
55
87
  "rimraf": "^6.0.1",
56
88
  "simple-git-hooks": "^2.11.1",
57
89
  "typescript": "5.3.3",
58
90
  "vite": "^8.0.1",
59
- "vite-plus": "^0.1.13",
91
+ "vite-plus": "^0.1.16",
60
92
  "vitepress": "^1.4.1"
61
93
  },
94
+ "simple-git-hooks": {
95
+ "pre-commit": "pnpm exec nano-staged --allow-empty",
96
+ "commit-msg": "pnpm exec vr commit-lint -p $1"
97
+ },
98
+ "nano-staged": {
99
+ "*.{md}": "vp fmt --no-error-on-unmatched-pattern",
100
+ "*.{ts}": [
101
+ "vp fmt --no-error-on-unmatched-pattern",
102
+ "vp lint --fix"
103
+ ]
104
+ },
62
105
  "engines": {
63
106
  "pnpm": ">=10.0.0"
64
107
  },
@@ -69,8 +112,8 @@
69
112
  "docs:build": "vitepress build docs",
70
113
  "docs:dev": "vitepress dev docs",
71
114
  "docs:preview": "vitepress preview docs",
72
- "format": "prettier --write .",
73
- "lint": "eslint --fix .",
115
+ "format": "vp fmt",
116
+ "lint": "vp lint",
74
117
  "release": "pnpm build && vr release",
75
118
  "test": "vp test run --coverage"
76
119
  }