@gallop.software/studio 1.0.4 → 1.0.6
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/handlers/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
async function loadMeta() {
|
|
18
|
-
const metaPath = _path2.default.join(process.cwd(), "_data", "
|
|
18
|
+
const metaPath = _path2.default.join(process.cwd(), "_data", "_studio.json");
|
|
19
19
|
try {
|
|
20
20
|
const content = await _fs.promises.readFile(metaPath, "utf-8");
|
|
21
21
|
return JSON.parse(content);
|
|
@@ -26,7 +26,7 @@ async function loadMeta() {
|
|
|
26
26
|
async function saveMeta(meta) {
|
|
27
27
|
const dataDir = _path2.default.join(process.cwd(), "_data");
|
|
28
28
|
await _fs.promises.mkdir(dataDir, { recursive: true });
|
|
29
|
-
const metaPath = _path2.default.join(dataDir, "
|
|
29
|
+
const metaPath = _path2.default.join(dataDir, "_studio.json");
|
|
30
30
|
const ordered = {};
|
|
31
31
|
if (meta._cdns) {
|
|
32
32
|
ordered._cdns = meta._cdns;
|