@meistrari/chat-nuxt 1.1.0 → 1.1.2
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/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -127,14 +127,24 @@ const workspaceSettingsResolverCandidates = [
|
|
|
127
127
|
"server/chat/resolve-workspace-settings.ts",
|
|
128
128
|
"server/chat/resolve-workspace-settings.js"
|
|
129
129
|
];
|
|
130
|
-
|
|
130
|
+
const stubExtensions = [".ts", ".mjs", ".js"];
|
|
131
|
+
function resolveWorkspaceSettingsResolverEntry(srcDir, fallbackResolverBase) {
|
|
131
132
|
for (const relativePath of workspaceSettingsResolverCandidates) {
|
|
132
133
|
const candidate = join(srcDir, relativePath);
|
|
133
134
|
if (existsSync(candidate)) {
|
|
134
135
|
return candidate;
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
|
-
|
|
138
|
+
for (const ext of stubExtensions) {
|
|
139
|
+
const candidate = fallbackResolverBase + ext;
|
|
140
|
+
if (existsSync(candidate)) {
|
|
141
|
+
return candidate;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
const attempted = stubExtensions.map((ext) => fallbackResolverBase + ext).join(", ");
|
|
145
|
+
throw new Error(
|
|
146
|
+
`[@meistrari/chat-nuxt] Unable to resolve workspace-settings stub. Tried: ${attempted}. This indicates a packaging bug \u2014 please report it.`
|
|
147
|
+
);
|
|
138
148
|
}
|
|
139
149
|
|
|
140
150
|
const _chatNuxtRequire = createRequire(import.meta.url);
|
|
@@ -180,7 +190,7 @@ const module$1 = defineNuxtModule({
|
|
|
180
190
|
const runtimeDir = resolver.resolve("./runtime");
|
|
181
191
|
const workspaceSettingsResolverEntry = resolveWorkspaceSettingsResolverEntry(
|
|
182
192
|
nuxt.options.srcDir,
|
|
183
|
-
resolver.resolve("./runtime/
|
|
193
|
+
resolver.resolve("./runtime/internal/workspace-settings-resolver.stub")
|
|
184
194
|
);
|
|
185
195
|
const telaBuildPath = resolveTelaBuildLayer();
|
|
186
196
|
const runtimeAliases = resolveRuntimeAliases(telaBuildPath);
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|