feat: add entryDir helper + update aliases

This commit is contained in:
Igor Randjelovic
2020-11-29 17:44:36 +01:00
parent 6e0407e5e8
commit ca78bc5ae8
10 changed files with 529 additions and 36 deletions

View File

@ -1,5 +1,5 @@
import { env, Platform } from '../index';
import { resolve, basename } from 'path';
import { resolve, basename, dirname } from 'path';
import { error } from './log';
export function getProjectRootPath(): string {
@ -19,6 +19,10 @@ export function getEntryPath() {
return resolve(getProjectRootPath(), packageJson.main);
}
export function getEntryDirPath() {
return dirname(getEntryPath());
}
export function getDistPath() {
if (env.ios) {
const appName = basename(getProjectRootPath());