Files
Igor Randjelovic 6817886cd7 chore: cleanup
2021-03-02 20:23:04 -08:00

62 lines
1.1 KiB
TypeScript

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