UNPKG

rune

Version:

CLI to upload your games to Rune

6 lines (5 loc) 210 B
import path from "path"; // assume the source path is underneath the distribution location export function getSourcePath(gameDir) { return `${gameDir.substring(0, gameDir.lastIndexOf(path.sep) + 1)}src`; }