calabasas 0.21.0 → 0.21.1
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/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2268,7 +2268,7 @@ import * as path2 from "path";
|
|
|
2268
2268
|
async function parseConfigFile(configPath) {
|
|
2269
2269
|
const absolutePath = path2.resolve(configPath);
|
|
2270
2270
|
const source = fs2.readFileSync(absolutePath, "utf-8");
|
|
2271
|
-
const stripped = source.replace(/import\s*\{[^}]*\}\s*from\s*["']calabasas["'];?/g, "").replace(/export\s+default\s+
|
|
2271
|
+
const stripped = source.replace(/import\s*\{[^}]*\}\s*from\s*["']calabasas["'];?/g, "").replace(/export\s+default\s+\(?defineCalabasas(?:\s+as\s+\w+)?\)?\s*\(/, "(").replace(/\/\/.*$/gm, "").replace(/\/\*[\s\S]*?\*\//g, "").trim();
|
|
2272
2272
|
const config = new Function("return " + stripped)();
|
|
2273
2273
|
return config;
|
|
2274
2274
|
}
|
|
@@ -2621,11 +2621,11 @@ async function generate(options) {
|
|
|
2621
2621
|
if (text.includes("roles") && text.includes("true"))
|
|
2622
2622
|
syncExports.push("syncRole", "syncRoleBatch");
|
|
2623
2623
|
if (text.includes("members") && text.includes("true"))
|
|
2624
|
-
syncExports.push("syncMember", "syncMemberBatch");
|
|
2624
|
+
syncExports.push("syncMember", "syncMemberBatch", "pruneStaleMembers");
|
|
2625
2625
|
if (text.includes("presence") && text.includes("true"))
|
|
2626
2626
|
syncExports.push("syncPresence", "syncPresenceBatch");
|
|
2627
2627
|
if (syncExports.length === 0) {
|
|
2628
|
-
syncExports.push("syncGuild", "syncChannel", "syncChannelBatch", "syncRole", "syncRoleBatch", "syncMember", "syncMemberBatch", "syncPresence", "syncPresenceBatch");
|
|
2628
|
+
syncExports.push("syncGuild", "syncChannel", "syncChannelBatch", "syncRole", "syncRoleBatch", "syncMember", "syncMemberBatch", "pruneStaleMembers", "syncPresence", "syncPresenceBatch");
|
|
2629
2629
|
}
|
|
2630
2630
|
syncExports.push("updateSyncState");
|
|
2631
2631
|
steps.push(`${stepNum}. Re-export sync mutations in convex/discord.ts:
|