@asheeui/vite 0.3.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/LICENSE +21 -0
- package/dist/index.cjs +88 -0
- package/dist/index.d.cts +42 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +42 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +89 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +39 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ashee Softworks
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let node_path = require("node:path");
|
|
3
|
+
let _asheeui_utils_node = require("@asheeui/utils/node");
|
|
4
|
+
//#region src/index.ts
|
|
5
|
+
/**
|
|
6
|
+
* Public specifier that application code imports to access the
|
|
7
|
+
* resolved AsheeUI config.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* import config from "virtual:ashee-config";
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
const VIRTUAL_ID = "virtual:ashee-config";
|
|
15
|
+
/** Vite-internal, `\0`-prefixed id used after `resolveId`. */
|
|
16
|
+
const RESOLVED_VIRTUAL_ID = `\0${VIRTUAL_ID}`;
|
|
17
|
+
/**
|
|
18
|
+
* Create the Vite plugin that exposes the AsheeUI config as the
|
|
19
|
+
* `virtual:ashee-config` module.
|
|
20
|
+
*
|
|
21
|
+
* Responsibilities:
|
|
22
|
+
* - Resolves the virtual id to an internal, `\0`-prefixed id.
|
|
23
|
+
* - Loads the module by discovering `asheeui.config.*` at the project
|
|
24
|
+
* root and re-exporting its `default`/`config` export (or
|
|
25
|
+
* `undefined` when no config exists).
|
|
26
|
+
* - Watches for config file creation, deletion, and edits during dev,
|
|
27
|
+
* invalidating the module and forcing a full reload.
|
|
28
|
+
*
|
|
29
|
+
* @param options - Plugin options.
|
|
30
|
+
* @param options.root - Override directory for config discovery.
|
|
31
|
+
* @returns A Vite plugin object.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* // vite.config.ts
|
|
36
|
+
* import { defineConfig } from "vite";
|
|
37
|
+
* import { asheeui } from "@asheeui/vite";
|
|
38
|
+
*
|
|
39
|
+
* export default defineConfig({
|
|
40
|
+
* plugins: [asheeui()],
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
function asheeui(options = {}) {
|
|
45
|
+
let root;
|
|
46
|
+
const isConfigFile = (file) => _asheeui_utils_node.CANDIDATES.some((f) => (0, node_path.resolve)(root, f) === file);
|
|
47
|
+
const invalidateAndReload = (server) => {
|
|
48
|
+
const mod = server.moduleGraph.getModuleById(RESOLVED_VIRTUAL_ID);
|
|
49
|
+
if (mod) server.moduleGraph.invalidateModule(mod);
|
|
50
|
+
server.ws.send({ type: "full-reload" });
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
name: "ashee:config",
|
|
54
|
+
enforce: "pre",
|
|
55
|
+
configResolved(resolved) {
|
|
56
|
+
root = options.root ?? resolved.root;
|
|
57
|
+
},
|
|
58
|
+
configureServer(server) {
|
|
59
|
+
server.watcher.on("add", (file) => {
|
|
60
|
+
if (isConfigFile(file)) invalidateAndReload(server);
|
|
61
|
+
});
|
|
62
|
+
server.watcher.on("unlink", (file) => {
|
|
63
|
+
if (isConfigFile(file)) invalidateAndReload(server);
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
resolveId(id) {
|
|
67
|
+
if (id === VIRTUAL_ID) return RESOLVED_VIRTUAL_ID;
|
|
68
|
+
},
|
|
69
|
+
load(id) {
|
|
70
|
+
if (id !== RESOLVED_VIRTUAL_ID) return;
|
|
71
|
+
const match = (0, _asheeui_utils_node.discoverConfig)(root);
|
|
72
|
+
if (!match) return "const config = undefined;\nexport default config;";
|
|
73
|
+
return [
|
|
74
|
+
`import * as mod from ${JSON.stringify(match)};`,
|
|
75
|
+
`const exports = { ...mod };`,
|
|
76
|
+
`const config = exports.default ?? exports.config ?? exports;`,
|
|
77
|
+
`export default config;`
|
|
78
|
+
].join("\n");
|
|
79
|
+
},
|
|
80
|
+
handleHotUpdate({ file, server }) {
|
|
81
|
+
if (!isConfigFile(file)) return;
|
|
82
|
+
invalidateAndReload(server);
|
|
83
|
+
return [];
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
exports.asheeui = asheeui;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Plugin } from "vite";
|
|
2
|
+
//#region src/index.d.ts
|
|
3
|
+
/** Options accepted by the {@link asheeui} plugin factory. */
|
|
4
|
+
interface AsheeConfigPluginOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Override the directory to look for `asheeui.config.*` in.
|
|
7
|
+
*
|
|
8
|
+
* Defaults to Vite's configured root.
|
|
9
|
+
*/
|
|
10
|
+
root?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create the Vite plugin that exposes the AsheeUI config as the
|
|
14
|
+
* `virtual:ashee-config` module.
|
|
15
|
+
*
|
|
16
|
+
* Responsibilities:
|
|
17
|
+
* - Resolves the virtual id to an internal, `\0`-prefixed id.
|
|
18
|
+
* - Loads the module by discovering `asheeui.config.*` at the project
|
|
19
|
+
* root and re-exporting its `default`/`config` export (or
|
|
20
|
+
* `undefined` when no config exists).
|
|
21
|
+
* - Watches for config file creation, deletion, and edits during dev,
|
|
22
|
+
* invalidating the module and forcing a full reload.
|
|
23
|
+
*
|
|
24
|
+
* @param options - Plugin options.
|
|
25
|
+
* @param options.root - Override directory for config discovery.
|
|
26
|
+
* @returns A Vite plugin object.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* // vite.config.ts
|
|
31
|
+
* import { defineConfig } from "vite";
|
|
32
|
+
* import { asheeui } from "@asheeui/vite";
|
|
33
|
+
*
|
|
34
|
+
* export default defineConfig({
|
|
35
|
+
* plugins: [asheeui()],
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
declare function asheeui(options?: AsheeConfigPluginOptions): Plugin;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { AsheeConfigPluginOptions, asheeui };
|
|
42
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;UAmBiB;;;;;;EAMf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8Bc,QAAQ,UAAS,2BAAgC"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Plugin } from "vite";
|
|
2
|
+
//#region src/index.d.ts
|
|
3
|
+
/** Options accepted by the {@link asheeui} plugin factory. */
|
|
4
|
+
interface AsheeConfigPluginOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Override the directory to look for `asheeui.config.*` in.
|
|
7
|
+
*
|
|
8
|
+
* Defaults to Vite's configured root.
|
|
9
|
+
*/
|
|
10
|
+
root?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create the Vite plugin that exposes the AsheeUI config as the
|
|
14
|
+
* `virtual:ashee-config` module.
|
|
15
|
+
*
|
|
16
|
+
* Responsibilities:
|
|
17
|
+
* - Resolves the virtual id to an internal, `\0`-prefixed id.
|
|
18
|
+
* - Loads the module by discovering `asheeui.config.*` at the project
|
|
19
|
+
* root and re-exporting its `default`/`config` export (or
|
|
20
|
+
* `undefined` when no config exists).
|
|
21
|
+
* - Watches for config file creation, deletion, and edits during dev,
|
|
22
|
+
* invalidating the module and forcing a full reload.
|
|
23
|
+
*
|
|
24
|
+
* @param options - Plugin options.
|
|
25
|
+
* @param options.root - Override directory for config discovery.
|
|
26
|
+
* @returns A Vite plugin object.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* // vite.config.ts
|
|
31
|
+
* import { defineConfig } from "vite";
|
|
32
|
+
* import { asheeui } from "@asheeui/vite";
|
|
33
|
+
*
|
|
34
|
+
* export default defineConfig({
|
|
35
|
+
* plugins: [asheeui()],
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
declare function asheeui(options?: AsheeConfigPluginOptions): Plugin;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { AsheeConfigPluginOptions, asheeui };
|
|
42
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;UAmBiB;;;;;;EAMf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8Bc,QAAQ,UAAS,2BAAgC"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { resolve } from "node:path";
|
|
2
|
+
import { CANDIDATES, discoverConfig } from "@asheeui/utils/node";
|
|
3
|
+
//#region src/index.ts
|
|
4
|
+
/**
|
|
5
|
+
* Public specifier that application code imports to access the
|
|
6
|
+
* resolved AsheeUI config.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* import config from "virtual:ashee-config";
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
const VIRTUAL_ID = "virtual:ashee-config";
|
|
14
|
+
/** Vite-internal, `\0`-prefixed id used after `resolveId`. */
|
|
15
|
+
const RESOLVED_VIRTUAL_ID = `\0${VIRTUAL_ID}`;
|
|
16
|
+
/**
|
|
17
|
+
* Create the Vite plugin that exposes the AsheeUI config as the
|
|
18
|
+
* `virtual:ashee-config` module.
|
|
19
|
+
*
|
|
20
|
+
* Responsibilities:
|
|
21
|
+
* - Resolves the virtual id to an internal, `\0`-prefixed id.
|
|
22
|
+
* - Loads the module by discovering `asheeui.config.*` at the project
|
|
23
|
+
* root and re-exporting its `default`/`config` export (or
|
|
24
|
+
* `undefined` when no config exists).
|
|
25
|
+
* - Watches for config file creation, deletion, and edits during dev,
|
|
26
|
+
* invalidating the module and forcing a full reload.
|
|
27
|
+
*
|
|
28
|
+
* @param options - Plugin options.
|
|
29
|
+
* @param options.root - Override directory for config discovery.
|
|
30
|
+
* @returns A Vite plugin object.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* // vite.config.ts
|
|
35
|
+
* import { defineConfig } from "vite";
|
|
36
|
+
* import { asheeui } from "@asheeui/vite";
|
|
37
|
+
*
|
|
38
|
+
* export default defineConfig({
|
|
39
|
+
* plugins: [asheeui()],
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
function asheeui(options = {}) {
|
|
44
|
+
let root;
|
|
45
|
+
const isConfigFile = (file) => CANDIDATES.some((f) => resolve(root, f) === file);
|
|
46
|
+
const invalidateAndReload = (server) => {
|
|
47
|
+
const mod = server.moduleGraph.getModuleById(RESOLVED_VIRTUAL_ID);
|
|
48
|
+
if (mod) server.moduleGraph.invalidateModule(mod);
|
|
49
|
+
server.ws.send({ type: "full-reload" });
|
|
50
|
+
};
|
|
51
|
+
return {
|
|
52
|
+
name: "ashee:config",
|
|
53
|
+
enforce: "pre",
|
|
54
|
+
configResolved(resolved) {
|
|
55
|
+
root = options.root ?? resolved.root;
|
|
56
|
+
},
|
|
57
|
+
configureServer(server) {
|
|
58
|
+
server.watcher.on("add", (file) => {
|
|
59
|
+
if (isConfigFile(file)) invalidateAndReload(server);
|
|
60
|
+
});
|
|
61
|
+
server.watcher.on("unlink", (file) => {
|
|
62
|
+
if (isConfigFile(file)) invalidateAndReload(server);
|
|
63
|
+
});
|
|
64
|
+
},
|
|
65
|
+
resolveId(id) {
|
|
66
|
+
if (id === VIRTUAL_ID) return RESOLVED_VIRTUAL_ID;
|
|
67
|
+
},
|
|
68
|
+
load(id) {
|
|
69
|
+
if (id !== RESOLVED_VIRTUAL_ID) return;
|
|
70
|
+
const match = discoverConfig(root);
|
|
71
|
+
if (!match) return "const config = undefined;\nexport default config;";
|
|
72
|
+
return [
|
|
73
|
+
`import * as mod from ${JSON.stringify(match)};`,
|
|
74
|
+
`const exports = { ...mod };`,
|
|
75
|
+
`const config = exports.default ?? exports.config ?? exports;`,
|
|
76
|
+
`export default config;`
|
|
77
|
+
].join("\n");
|
|
78
|
+
},
|
|
79
|
+
handleHotUpdate({ file, server }) {
|
|
80
|
+
if (!isConfigFile(file)) return;
|
|
81
|
+
invalidateAndReload(server);
|
|
82
|
+
return [];
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
export { asheeui };
|
|
88
|
+
|
|
89
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { resolve } from \"node:path\";\nimport { CANDIDATES, discoverConfig } from \"@asheeui/utils/node\";\nimport type { Plugin, ViteDevServer } from \"vite\";\n\n/**\n * Public specifier that application code imports to access the\n * resolved AsheeUI config.\n *\n * @example\n * ```ts\n * import config from \"virtual:ashee-config\";\n * ```\n */\nconst VIRTUAL_ID = \"virtual:ashee-config\";\n\n/** Vite-internal, `\\0`-prefixed id used after `resolveId`. */\nconst RESOLVED_VIRTUAL_ID = `\\0${VIRTUAL_ID}`;\n\n/** Options accepted by the {@link asheeui} plugin factory. */\nexport interface AsheeConfigPluginOptions {\n /**\n * Override the directory to look for `asheeui.config.*` in.\n *\n * Defaults to Vite's configured root.\n */\n root?: string;\n}\n\n/**\n * Create the Vite plugin that exposes the AsheeUI config as the\n * `virtual:ashee-config` module.\n *\n * Responsibilities:\n * - Resolves the virtual id to an internal, `\\0`-prefixed id.\n * - Loads the module by discovering `asheeui.config.*` at the project\n * root and re-exporting its `default`/`config` export (or\n * `undefined` when no config exists).\n * - Watches for config file creation, deletion, and edits during dev,\n * invalidating the module and forcing a full reload.\n *\n * @param options - Plugin options.\n * @param options.root - Override directory for config discovery.\n * @returns A Vite plugin object.\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import { defineConfig } from \"vite\";\n * import { asheeui } from \"@asheeui/vite\";\n *\n * export default defineConfig({\n * plugins: [asheeui()],\n * });\n * ```\n */\nexport function asheeui(options: AsheeConfigPluginOptions = {}): Plugin {\n let root: string;\n\n const isConfigFile = (file: string) =>\n CANDIDATES.some((f) => resolve(root, f) === file);\n\n const invalidateAndReload = (server: ViteDevServer) => {\n const mod = server.moduleGraph.getModuleById(RESOLVED_VIRTUAL_ID);\n if (mod) server.moduleGraph.invalidateModule(mod);\n server.ws.send({ type: \"full-reload\" });\n };\n\n return {\n name: \"ashee:config\",\n enforce: \"pre\",\n configResolved(resolved) {\n root = options.root ?? resolved.root;\n },\n configureServer(server) {\n // Creating or deleting the config file is not a \"change\" to an\n // existing module, so `handleHotUpdate` below will not see it.\n // Watch raw filesystem events for both cases.\n server.watcher.on(\"add\", (file) => {\n if (isConfigFile(file)) invalidateAndReload(server);\n });\n server.watcher.on(\"unlink\", (file) => {\n if (isConfigFile(file)) invalidateAndReload(server);\n });\n },\n resolveId(id) {\n if (id === VIRTUAL_ID) return RESOLVED_VIRTUAL_ID;\n },\n load(id) {\n if (id !== RESOLVED_VIRTUAL_ID) return;\n\n const match = discoverConfig(root);\n if (!match) {\n return \"const config = undefined;\\nexport default config;\";\n }\n\n return [\n `import * as mod from ${JSON.stringify(match)};`,\n `const exports = { ...mod };`,\n `const config = exports.default ?? exports.config ?? exports;`,\n `export default config;`,\n ].join(\"\\n\");\n },\n handleHotUpdate({ file, server }) {\n if (!isConfigFile(file)) return;\n invalidateAndReload(server);\n return []; // stop this file's own update from propagating separately\n },\n };\n}\n"],"mappings":";;;;;;;;;;;;AAaA,MAAM,aAAa;;AAGnB,MAAM,sBAAsB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCjC,SAAgB,QAAQ,UAAoC,CAAC,GAAW;CACtE,IAAI;CAEJ,MAAM,gBAAgB,SACpB,WAAW,MAAM,MAAM,QAAQ,MAAM,CAAC,MAAM,IAAI;CAElD,MAAM,uBAAuB,WAA0B;EACrD,MAAM,MAAM,OAAO,YAAY,cAAc,mBAAmB;EAChE,IAAI,KAAK,OAAO,YAAY,iBAAiB,GAAG;EAChD,OAAO,GAAG,KAAK,EAAE,MAAM,cAAc,CAAC;CACxC;CAEA,OAAO;EACL,MAAM;EACN,SAAS;EACT,eAAe,UAAU;GACvB,OAAO,QAAQ,QAAQ,SAAS;EAClC;EACA,gBAAgB,QAAQ;GAItB,OAAO,QAAQ,GAAG,QAAQ,SAAS;IACjC,IAAI,aAAa,IAAI,GAAG,oBAAoB,MAAM;GACpD,CAAC;GACD,OAAO,QAAQ,GAAG,WAAW,SAAS;IACpC,IAAI,aAAa,IAAI,GAAG,oBAAoB,MAAM;GACpD,CAAC;EACH;EACA,UAAU,IAAI;GACZ,IAAI,OAAO,YAAY,OAAO;EAChC;EACA,KAAK,IAAI;GACP,IAAI,OAAO,qBAAqB;GAEhC,MAAM,QAAQ,eAAe,IAAI;GACjC,IAAI,CAAC,OACH,OAAO;GAGT,OAAO;IACL,wBAAwB,KAAK,UAAU,KAAK,EAAE;IAC9C;IACA;IACA;GACF,CAAC,CAAC,KAAK,IAAI;EACb;EACA,gBAAgB,EAAE,MAAM,UAAU;GAChC,IAAI,CAAC,aAAa,IAAI,GAAG;GACzB,oBAAoB,MAAM;GAC1B,OAAO,CAAC;EACV;CACF;AACF"}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@asheeui/vite",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"types": "./dist/index.d.mts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": {
|
|
10
|
+
"types": "./dist/index.d.mts",
|
|
11
|
+
"default": "./dist/index.mjs"
|
|
12
|
+
},
|
|
13
|
+
"require": {
|
|
14
|
+
"types": "./dist/index.d.cts",
|
|
15
|
+
"default": "./dist/index.cjs"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"asheeui": "0.5.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"vite": "^8.2.1",
|
|
27
|
+
"@asheeui/utils": "0.3.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"tsdown": "^0.22.14",
|
|
31
|
+
"vite": "^8.2.1"
|
|
32
|
+
},
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsdown src/index.ts --format esm,cjs --dts --clean",
|
|
36
|
+
"dev": "tsdown src/index.ts --format esm,cjs --dts --watch"
|
|
37
|
+
},
|
|
38
|
+
"module": "./dist/index.mjs"
|
|
39
|
+
}
|