rattail 2.1.2 → 2.2.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.
- package/dist/index.d.mts +3 -3
- package/dist/vite-plus/index.d.mts +3 -1
- package/package.json +11 -9
package/dist/index.d.mts
CHANGED
|
@@ -102,10 +102,10 @@ declare function promiseWithResolvers<T>(): PromiseWithResolvers<T>;
|
|
|
102
102
|
declare function set<T extends object | any[]>(object: T, path: (string | number)[], value: any): void;
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region src/object/objectKeys.d.ts
|
|
105
|
-
declare function objectKeys<T extends object>(object: T):
|
|
105
|
+
declare function objectKeys<T extends object>(object: T): Array<`${keyof T & string}`>;
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region src/object/objectEntries.d.ts
|
|
108
|
-
declare function objectEntries<T extends object>(object: T): [keyof T & string, T[keyof T & string]]
|
|
108
|
+
declare function objectEntries<T extends object>(object: T): Array<[keyof T & string, T[keyof T & string]]>;
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region src/util/cancelAnimationFrame.d.ts
|
|
111
111
|
declare function cancelAnimationFrame(handle: number): void;
|
|
@@ -122,7 +122,7 @@ declare function copyText(value: string): void;
|
|
|
122
122
|
type BEM<S extends string | undefined, N extends string, NC extends string> = S extends undefined ? NC : S extends `$--${infer CM}` ? `${N}--${CM}` : S extends `--${infer M}` ? `${NC}--${M}` : `${NC}__${S}`;
|
|
123
123
|
declare function createNamespaceFn<N extends string>(namespace: N): <C extends string>(name: C) => {
|
|
124
124
|
name: string;
|
|
125
|
-
n: <S extends string | undefined = undefined>(suffix?: S
|
|
125
|
+
n: <S extends string | undefined = undefined>(suffix?: S) => BEM<S, typeof namespace, `${N}-${C}`>;
|
|
126
126
|
classes: typeof classes;
|
|
127
127
|
};
|
|
128
128
|
//#endregion
|
|
@@ -56,7 +56,9 @@ type RattailUserConfig = UserConfig & {
|
|
|
56
56
|
};
|
|
57
57
|
type RattailUserConfigFn = (env: ConfigEnv) => RattailUserConfig | Promise<RattailUserConfig>;
|
|
58
58
|
type RattailUserConfigExport = RattailUserConfig | Promise<RattailUserConfig> | RattailUserConfigFn;
|
|
59
|
-
declare function defineConfig(config:
|
|
59
|
+
declare function defineConfig<T extends RattailUserConfig>(config: T): T;
|
|
60
|
+
declare function defineConfig<T extends Promise<RattailUserConfig>>(config: T): T;
|
|
61
|
+
declare function defineConfig<T extends RattailUserConfigFn>(config: T): T;
|
|
60
62
|
declare function clean({ patterns }?: {
|
|
61
63
|
patterns?: string[];
|
|
62
64
|
}): {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rattail",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "A Vite+ oriented, AI Agent friendly front-end toolchain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agent",
|
|
@@ -104,21 +104,22 @@
|
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@types/node": "^22.20.0",
|
|
107
|
-
"@
|
|
107
|
+
"@vitejs/plugin-vue": "6.0.8",
|
|
108
|
+
"@vitest/coverage-istanbul": "4.1.11",
|
|
108
109
|
"esbuild": "^0.28.1",
|
|
109
110
|
"jsdom": "^25.0.1",
|
|
110
111
|
"oxc-minify": "^0.124.0",
|
|
111
|
-
"oxfmt": "0.
|
|
112
|
-
"oxlint": "1.
|
|
112
|
+
"oxfmt": "0.64.0",
|
|
113
|
+
"oxlint": "1.79.0",
|
|
113
114
|
"tsx": "^4.21.0",
|
|
114
|
-
"typescript": "5.
|
|
115
|
-
"vite-plus": "0.
|
|
115
|
+
"typescript": "5.9.3",
|
|
116
|
+
"vite-plus": "0.3.0",
|
|
116
117
|
"vitepress": "2.0.0-alpha.17"
|
|
117
118
|
},
|
|
118
119
|
"peerDependencies": {
|
|
119
|
-
"oxfmt": ">=0.
|
|
120
|
-
"oxlint": ">=1.
|
|
121
|
-
"vite-plus": ">=0.
|
|
120
|
+
"oxfmt": ">=0.64.0",
|
|
121
|
+
"oxlint": ">=1.79.0",
|
|
122
|
+
"vite-plus": ">=0.3.0"
|
|
122
123
|
},
|
|
123
124
|
"peerDependenciesMeta": {
|
|
124
125
|
"oxfmt": {
|
|
@@ -143,6 +144,7 @@
|
|
|
143
144
|
"docs:preview": "vitepress preview docs",
|
|
144
145
|
"format": "vp fmt",
|
|
145
146
|
"lint": "vp lint --fix",
|
|
147
|
+
"test:types": "tsc --noEmit",
|
|
146
148
|
"release": "pnpm build && tsx src/cli/bin.ts release",
|
|
147
149
|
"test:watch": "vp test watch",
|
|
148
150
|
"test": "vp test run --coverage"
|