feat: extract platforms

This commit is contained in:
Igor Randjelovic
2020-12-07 13:41:22 +01:00
committed by Nathan Walker
parent 0f14fc9d47
commit 54dd20e90a
15 changed files with 377 additions and 44 deletions

View File

@ -15,9 +15,9 @@ import {
getEntryPath,
getEntryDirPath,
getPackageJson,
getPlatform,
getProjectRootPath,
} from './project';
import { getPlatform, getPlatformName, addPlatform } from '../platforms';
// intentionally populated manually
// as this generates nicer typings
@ -50,7 +50,11 @@ export default {
getEntryPath,
getEntryDirPath,
getDistPath,
getPlatform,
getPackageJson,
},
platform: {
getPlatform,
getPlatformName,
addPlatform,
},
};