chore: clean up old WatchStateLoggerPlugin

This commit is contained in:
Igor Randjelovic
2021-03-26 23:20:27 +01:00
parent b7da9d573f
commit b2a636e307
5 changed files with 4 additions and 90 deletions

View File

@@ -4,10 +4,9 @@ import { INativeScriptPlatform } from "../helpers/platform";
import { getProjectRootPath } from "../helpers/project";
function sanitizeName(appName: string): string {
const sanitizedName = appName.split("").filter((c) =>
return appName.split("").filter((c) =>
/[a-zA-Z0-9]/.test(c)
).join("");
return sanitizedName;
}
function getDistPath() {
const appName = sanitizeName(basename(getProjectRootPath()));