@kimesh/auto-import 0.2.39 → 0.2.40
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/{builder-BLRYHH86.mjs → builder-Br1zdCLt.mjs} +4 -11
- package/dist/index.mjs +5 -6
- package/dist/{oxc-scanner-tiRVQcUS.mjs → oxc-scanner-Do6uJzj2.mjs} +3 -1
- package/dist/rolldown-runtime-95iHPtFO.mjs +18 -0
- package/package.json +2 -2
- package/dist/builder-CeNuOpK1.mjs +0 -4
- package/dist/oxc-scanner-BsU9PZIj.mjs +0 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-95iHPtFO.mjs";
|
|
2
|
+
import { t as OxcExportScanner } from "./oxc-scanner-Do6uJzj2.mjs";
|
|
2
3
|
import * as fs from "node:fs";
|
|
3
4
|
import * as path from "pathe";
|
|
4
5
|
import { consola } from "consola";
|
|
@@ -466,6 +467,7 @@ function resolvePresets(presets) {
|
|
|
466
467
|
*
|
|
467
468
|
* Builds a unified import registry from all layer sources.
|
|
468
469
|
*/
|
|
470
|
+
var builder_exports = /* @__PURE__ */ __exportAll({ RegistryBuilder: () => RegistryBuilder });
|
|
469
471
|
const logger = consola.withTag("kimesh:auto-import:registry");
|
|
470
472
|
const DEFAULT_EXTENSIONS = [
|
|
471
473
|
".ts",
|
|
@@ -591,15 +593,6 @@ var RegistryBuilder = class {
|
|
|
591
593
|
isDefault: true,
|
|
592
594
|
isType: false
|
|
593
595
|
});
|
|
594
|
-
if (componentName !== exp.name) this.resolver.addImport({
|
|
595
|
-
name: exp.name,
|
|
596
|
-
from: result.filePath,
|
|
597
|
-
type: "component",
|
|
598
|
-
layer,
|
|
599
|
-
priority,
|
|
600
|
-
isDefault: true,
|
|
601
|
-
isType: false
|
|
602
|
-
});
|
|
603
596
|
}
|
|
604
597
|
}
|
|
605
598
|
}
|
|
@@ -659,4 +652,4 @@ var RegistryBuilder = class {
|
|
|
659
652
|
};
|
|
660
653
|
|
|
661
654
|
//#endregion
|
|
662
|
-
export {
|
|
655
|
+
export { normalizePreset as a, tanstackQueryPreset as c, ConflictResolver as d, collectExistingDirectories as f, kimeshPreset as i, vuePreset as l, builder_exports as n, piniaPreset as o, builtinPresets as r, resolvePresets as s, RegistryBuilder as t, vueRouterPreset as u };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as OxcExportScanner } from "./oxc-scanner-
|
|
2
|
-
import { a as
|
|
1
|
+
import { t as OxcExportScanner } from "./oxc-scanner-Do6uJzj2.mjs";
|
|
2
|
+
import { a as normalizePreset, c as tanstackQueryPreset, d as ConflictResolver, f as collectExistingDirectories, i as kimeshPreset, l as vuePreset, o as piniaPreset, r as builtinPresets, s as resolvePresets, t as RegistryBuilder, u as vueRouterPreset } from "./builder-Br1zdCLt.mjs";
|
|
3
3
|
import { parseSync } from "oxc-parser";
|
|
4
4
|
import { parse } from "@vue/compiler-sfc";
|
|
5
5
|
import * as fs from "node:fs";
|
|
@@ -1035,7 +1035,6 @@ function autoImportPlugin(options) {
|
|
|
1035
1035
|
})];
|
|
1036
1036
|
}
|
|
1037
1037
|
const kimeshAutoImport = autoImportPlugin;
|
|
1038
|
-
var plugin_default = autoImportPlugin;
|
|
1039
1038
|
|
|
1040
1039
|
//#endregion
|
|
1041
1040
|
//#region src/index.ts
|
|
@@ -1043,16 +1042,16 @@ var plugin_default = autoImportPlugin;
|
|
|
1043
1042
|
* Build import registry from sources (convenience function)
|
|
1044
1043
|
*/
|
|
1045
1044
|
async function buildImportRegistry(sources) {
|
|
1046
|
-
const { RegistryBuilder } = await import("./builder-
|
|
1045
|
+
const { RegistryBuilder } = await import("./builder-Br1zdCLt.mjs").then((n) => n.n);
|
|
1047
1046
|
return new RegistryBuilder().build(sources);
|
|
1048
1047
|
}
|
|
1049
1048
|
/**
|
|
1050
1049
|
* Scan exports from a file (convenience function)
|
|
1051
1050
|
*/
|
|
1052
1051
|
async function scanExports(filePath) {
|
|
1053
|
-
const { OxcExportScanner } = await import("./oxc-scanner-
|
|
1052
|
+
const { OxcExportScanner } = await import("./oxc-scanner-Do6uJzj2.mjs").then((n) => n.n);
|
|
1054
1053
|
return new OxcExportScanner().scanFile(filePath);
|
|
1055
1054
|
}
|
|
1056
1055
|
|
|
1057
1056
|
//#endregion
|
|
1058
|
-
export { ConflictResolver, ImportInjector, OxcExportScanner, ReferenceDetector, RegistryBuilder, autoImportPlugin, buildImportRegistry, builtinPresets, createTemplatePlugin as createComponentsPlugin, createTemplatePlugin, createKimeshResolver, createScriptPlugin,
|
|
1057
|
+
export { ConflictResolver, ImportInjector, OxcExportScanner, ReferenceDetector, RegistryBuilder, autoImportPlugin, autoImportPlugin as default, buildImportRegistry, builtinPresets, createTemplatePlugin as createComponentsPlugin, createTemplatePlugin, createKimeshResolver, createScriptPlugin, generateDtsFiles as generateDts, generateDtsFiles, generateSourceDts, kimeshAutoImport, kimeshPreset, normalizePreset, piniaPreset, resolvePresets, scanExports, tanstackQueryPreset, vuePreset, vueRouterPreset };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-95iHPtFO.mjs";
|
|
1
2
|
import { parseSync } from "oxc-parser";
|
|
2
3
|
import { parse } from "@vue/compiler-sfc";
|
|
3
4
|
import * as fs from "node:fs";
|
|
@@ -11,6 +12,7 @@ import { consola } from "consola";
|
|
|
11
12
|
*
|
|
12
13
|
* High-performance export scanning using OXC parser.
|
|
13
14
|
*/
|
|
15
|
+
var oxc_scanner_exports = /* @__PURE__ */ __exportAll({ OxcExportScanner: () => OxcExportScanner });
|
|
14
16
|
const logger = consola.withTag("kimesh:auto-import:scanner");
|
|
15
17
|
var OxcExportScanner = class {
|
|
16
18
|
cache = {
|
|
@@ -191,4 +193,4 @@ var OxcExportScanner = class {
|
|
|
191
193
|
};
|
|
192
194
|
|
|
193
195
|
//#endregion
|
|
194
|
-
export { OxcExportScanner as t };
|
|
196
|
+
export { oxc_scanner_exports as n, OxcExportScanner as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) {
|
|
6
|
+
__defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
if (!no_symbols) {
|
|
12
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { __exportAll as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kimesh/auto-import",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.40",
|
|
4
4
|
"description": "OXC-powered auto-import system for Kimesh framework with layer support",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"test": "vitest"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@kimesh/shared": "0.2.
|
|
28
|
+
"@kimesh/shared": "0.2.40",
|
|
29
29
|
"@vue/compiler-sfc": "^3.5.26",
|
|
30
30
|
"consola": "^3.4.2",
|
|
31
31
|
"magic-string": "^0.30.21",
|