@samitouri / QOSami-HFS / commits / 549b7706

--no-central

Massimo Melina committed Nov 8, 2024 at 10:57 UTC 549b7706af0b7815129508877e4df1b5c24232ef
1 file changed +2 -2
src/github.ts
+2 -2
@@ -11,7 +11,7 @@ import {
11 import { ApiError } from './apiMiddleware'
12 import _ from 'lodash'
13 import {
14 - DEV, HFS_REPO, HFS_REPO_BRANCH, HTTP_BAD_REQUEST, HTTP_CONFLICT, HTTP_FORBIDDEN, HTTP_NOT_ACCEPTABLE,
14 + argv, HFS_REPO, HFS_REPO_BRANCH, HTTP_BAD_REQUEST, HTTP_CONFLICT, HTTP_FORBIDDEN, HTTP_NOT_ACCEPTABLE,
15 HTTP_SERVER_ERROR, VERSION
16 } from './const'
17 import { rename, rm } from 'fs/promises'
@@ -235,7 +235,7 @@ export let blacklistedInstalledPlugins: string[] = []
235 const FN = 'central.json'
236 let builtIn = JSON.parse(readFileSync(join(__dirname, '..', FN), 'utf8'))
237 export const getProjectInfo = debounceAsync(
238 - () => readGithubFile(`${HFS_REPO}/${HFS_REPO_BRANCH}/${FN}`)
238 + () => argv.central === false ? Promise.resolve(builtIn) : readGithubFile(`${HFS_REPO}/${HFS_REPO_BRANCH}/${FN}`)
239 .then(JSON.parse, () => null)
240 .then(o => {
241 if (o)