@datapos/datapos-development 0.3.34 → 0.3.35
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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -20,7 +20,7 @@ async function documentInterface(moduleTypeId) {
|
|
|
20
20
|
const regex = /^\s{4}(?:async\s+)?(?:private\s+|public\s+|protected\s+)?([A-Za-z_]\w*)\s*\([^)]*\)\s*(?::\s*[^{]+)?\s*\{/gm; // Match class methods and top-level functions.
|
|
21
21
|
const matches = [...indexCode.matchAll(regex)].map((m) => m[1]);
|
|
22
22
|
configJSON.interface = matches;
|
|
23
|
-
await fs.writeFile(
|
|
23
|
+
await fs.writeFile('config.json', JSON.stringify(configJSON, undefined, 4));
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// Operations - Build public directory index.
|