Skip to content

Commit 66b8949

Browse files
committed
use .pods for json files
1 parent a421322 commit 66b8949

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

api/resolvers-pg.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ async function gitExport({ username, reponame, pods }) {
7474
);
7575
// 2. write file
7676
// remove
77-
if (fs.existsSync(`${path}/pods`)) {
78-
await fs.promises.rm(`${path}/pods`, { recursive: true });
77+
if (fs.existsSync(`${path}/.pods`)) {
78+
await fs.promises.rm(`${path}/.pods`, { recursive: true });
7979
}
80-
if (!fs.existsSync(`${path}/pods`)) {
81-
await fs.promises.mkdir(`${path}/pods`);
80+
if (!fs.existsSync(`${path}/.pods`)) {
81+
await fs.promises.mkdir(`${path}/.pods`);
8282
}
8383
for (const pod of pods) {
8484
pod.content = pod.staged;
@@ -88,7 +88,7 @@ async function gitExport({ username, reponame, pods }) {
8888
delete pod.stdout;
8989
delete pod.error;
9090
await fs.promises.writeFile(
91-
`${path}/pods/${pod.id}.json`,
91+
`${path}/.pods/${pod.id}.json`,
9292
// FIXME this will put string into quoted
9393
JSON.stringify(pod, null, 2)
9494
);

0 commit comments

Comments
 (0)