@ggui-ai/ui-gen 0.14.0 → 0.15.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/adapters/generation-dispatch.js +2 -1
- package/dist/adapters/generation-dispatch.js.map +1 -1
- package/dist/adapters/index.js +2 -1
- package/dist/adapters/index.js.map +1 -1
- package/dist/advanced/index.js +2 -1
- package/dist/advanced/index.js.map +1 -1
- package/dist/check/index.js +2 -1
- package/dist/check/index.js.map +1 -1
- package/dist/harness/prompts.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
- package/src/check/type-checker.ts +12 -2
package/dist/adapters/index.js
CHANGED
|
@@ -2486,7 +2486,8 @@ async function loadVfs() {
|
|
|
2486
2486
|
function resolveRelativeInVfs(vfs, containingFile, importPath) {
|
|
2487
2487
|
const normalized = containingFile.startsWith("/") ? containingFile.slice(1) : containingFile;
|
|
2488
2488
|
const dir = path.posix.dirname(normalized);
|
|
2489
|
-
const
|
|
2489
|
+
const specifier = importPath.replace(/\.(?:m|c)?js$/, "");
|
|
2490
|
+
const resolved2 = path.posix.normalize(`${dir}/${specifier}`);
|
|
2490
2491
|
const withDts = `${resolved2}.d.ts`;
|
|
2491
2492
|
if (vfs.has(withDts)) return withDts;
|
|
2492
2493
|
const withIndexDts = `${resolved2}/index.d.ts`;
|