Skip to content

Commit 13f8893

Browse files
author
TomArt
committed
correction: using const STUCCO_FILE instead of string
1 parent fc2acd4 commit 13f8893

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/cli/src/commands/cloud/pushStuccoJson.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { logger } from '@/common/log/index.js';
22
import { Config } from '@/Configuration/index.js';
33
import { Editor } from '@/Editor.js';
4-
import { CLOUD_FOLDERS } from '@/gshared/constants/index.js';
4+
import {
5+
CLOUD_FOLDERS,
6+
STUCCO_FILE,
7+
} from '@/gshared/constants/index.js';
58
import path from 'path';
69
import fs from 'fs';
710

@@ -15,8 +18,8 @@ export const pushStuccoJson = async ({ namespace, project }: { namespace?: strin
1518
await Editor.saveFilesToCloud(
1619
p.id,
1720
[{
18-
name: path.join(CLOUD_FOLDERS.microserviceJs, 'stucco.json'),
19-
content: fs.readFileSync('stucco.json'),
21+
name: path.join(CLOUD_FOLDERS.microserviceJs, STUCCO_FILE),
22+
content: fs.readFileSync(STUCCO_FILE),
2023
type: 'text/plain',
2124
}]
2225
);

0 commit comments

Comments
 (0)