Move changelog loading to server

Summary: per title

Reviewed By: aigoncharov

Differential Revision: D32723706

fbshipit-source-id: ce5108da9f5da6fdfa7d1a66a31a4f8f430eb78d
This commit is contained in:
Michel Weststrate
2021-12-08 04:25:28 -08:00
committed by Facebook GitHub Bot
parent eab4f0d3d3
commit 129cbd6f7b
7 changed files with 55 additions and 55 deletions

View File

@@ -11,9 +11,6 @@
/* eslint-disable node/no-sync */
import path from 'path';
import fs from 'fs';
import config from '../fb-stubs/config';
import {getRenderHostInstance} from '../RenderHost';
/**
@@ -33,15 +30,3 @@ export function getStaticPath(
? absolutePath.replace('app.asar', 'app.asar.unpacked')
: absolutePath;
}
/**
* @deprecated
*/
export function getChangelogPath() {
const changelogPath = getStaticPath(config.isFBBuild ? 'facebook' : '.');
if (fs.existsSync(changelogPath)) {
return changelogPath;
} else {
throw new Error('Changelog path path does not exist: ' + changelogPath);
}
}