Typecscriptify the main process code (10/N)
Summary: Converted scripts/build-utils.js to typescript Reviewed By: passy Differential Revision: D20067220 fbshipit-source-id: 29c1a4aed11b9d682290daf57db5507736ad8c69
This commit is contained in:
committed by
Facebook Github Bot
parent
caf04e4e4a
commit
2d551f6b4a
@@ -12,20 +12,20 @@ import path from 'path';
|
||||
import lineReplace from 'line-replace';
|
||||
import yazl from 'yazl';
|
||||
const {exec: createBinary} = require('pkg');
|
||||
const {
|
||||
import {
|
||||
buildFolder,
|
||||
compile,
|
||||
compileDefaultPlugins,
|
||||
getVersionNumber,
|
||||
genMercurialRevision,
|
||||
} = require('./build-utils.js');
|
||||
} from './build-utils';
|
||||
|
||||
const PLUGINS_FOLDER_NAME = 'plugins';
|
||||
|
||||
function preludeBundle(
|
||||
dir: string,
|
||||
versionNumber: string,
|
||||
buildRevision: string,
|
||||
buildRevision: string | null,
|
||||
) {
|
||||
const revisionStr =
|
||||
buildRevision == null ? '' : `global.__REVISION__="${buildRevision}";`;
|
||||
|
||||
Reference in New Issue
Block a user