mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 13:51:27 +08:00
feat: export Utils
This commit is contained in:

committed by
Nathan Walker

parent
d46d59abe4
commit
a1abd07c73
42
packages/webpack5/src/helpers/index.ts
Normal file
42
packages/webpack5/src/helpers/index.ts
Normal file
@ -0,0 +1,42 @@
|
||||
import { getValue } from './config';
|
||||
import { getAllDependencies, getDependencyPath } from './dependencies';
|
||||
import { determineProjectFlavor } from './flavor';
|
||||
import { error, info, warn } from './log';
|
||||
import {
|
||||
getAbsoluteDistPath,
|
||||
getDistPath,
|
||||
getEntryPath,
|
||||
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 {
|
||||
config: {
|
||||
getValue,
|
||||
},
|
||||
dependencies: {
|
||||
getAllDependencies,
|
||||
getDependencyPath,
|
||||
},
|
||||
flavor: {
|
||||
determineProjectFlavor,
|
||||
},
|
||||
log: {
|
||||
info,
|
||||
warn,
|
||||
error,
|
||||
},
|
||||
project: {
|
||||
getProjectRootPath,
|
||||
getAbsoluteDistPath,
|
||||
getEntryPath,
|
||||
getDistPath,
|
||||
getPlatform,
|
||||
getPackageJson,
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user