@lark-apaas/db-schema-sync 0.1.4-alpha.1 → 0.1.4-alpha.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/bin.js
CHANGED
|
@@ -1908,11 +1908,15 @@ var inlineTypesEnhancer = {
|
|
|
1908
1908
|
let text = source;
|
|
1909
1909
|
text = text.replace(/import \{[^}]*\} from ["']\.\/types["'];?\n*/g, "");
|
|
1910
1910
|
const usedTypes = /* @__PURE__ */ new Set();
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1911
|
+
if (exportCustomTypes) {
|
|
1912
|
+
for (const rule of TYPE_RULES) usedTypes.add(rule.usageName);
|
|
1913
|
+
} else {
|
|
1914
|
+
for (const rule of TYPE_RULES) {
|
|
1915
|
+
if (text.includes(rule.usageName + "(") && !text.includes(rule.definitionCheck)) {
|
|
1916
|
+
usedTypes.add(rule.usageName);
|
|
1917
|
+
if (rule.deps) {
|
|
1918
|
+
for (const dep of rule.deps) usedTypes.add(dep);
|
|
1919
|
+
}
|
|
1916
1920
|
}
|
|
1917
1921
|
}
|
|
1918
1922
|
}
|
package/dist/index.js
CHANGED