@sanctuary-framework/mcp-server 1.2.1 → 1.2.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/cli.cjs +5 -5
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +5 -5
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10214,11 +10214,11 @@ function lintOnboarding(_name, content) {
|
|
|
10214
10214
|
function resolveTemplatesDir() {
|
|
10215
10215
|
const thisFile = fileURLToPath(import.meta.url);
|
|
10216
10216
|
const thisDir = dirname(thisFile);
|
|
10217
|
-
if (thisDir.includes("/dist
|
|
10218
|
-
const
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10217
|
+
if (thisDir.includes("/dist")) {
|
|
10218
|
+
const templatesSubdir = join(thisDir, "templates");
|
|
10219
|
+
const candidateDir = existsSync(join(thisDir, TEMPLATE_NAMES[0])) ? thisDir : existsSync(join(templatesSubdir, TEMPLATE_NAMES[0])) ? templatesSubdir : null;
|
|
10220
|
+
if (candidateDir) return candidateDir;
|
|
10221
|
+
const srcFallback = thisDir.endsWith("/templates") ? thisDir.replace("/dist/templates", "/src/templates") : join(thisDir.replace("/dist", "/src"), "templates");
|
|
10222
10222
|
return srcFallback;
|
|
10223
10223
|
}
|
|
10224
10224
|
return thisDir;
|