Files
Igor Randjelovic 5dad44a8e3 chore: cleanup
2020-12-01 19:51:07 +01:00

53 lines
908 B
TypeScript

import { merge } from 'webpack-merge';
import {
getAllDependencies,
hasDependency,
getDependencyPath,
} from './dependencies';
import { determineProjectFlavor } from './flavor';
import { error, info, warn } from './log';
import { getValue } from './config';
import {
getAbsoluteDistPath,
getDistPath,
getEntryPath,
getEntryDirPath,
getPackageJson,
getPlatform,
getProjectRootPath,
} from './project';
// intentionally populated manually
// as this generates nicer typings
// that show all the utils inline
// rather than imports to types
export default {
merge,
config: {
getValue,
},
dependencies: {
getAllDependencies,
hasDependency,
getDependencyPath,
},
flavor: {
determineProjectFlavor,
},
log: {
error,
info,
warn,
},
project: {
getProjectRootPath,
getAbsoluteDistPath,
getEntryPath,
getEntryDirPath,
getDistPath,
getPlatform,
getPackageJson,
},
};