UNPKG

isaacscript

Version:

A command line tool for managing Isaac mods written in TypeScript.

10 lines 689 B
import chalk from "chalk"; import { fatalError, isSubdirectoryOf } from "complete-node"; import { CWD } from "../../constants.js"; export function checkModSubdirectory(projectPath, modsDirectory) { if (isSubdirectoryOf(CWD, modsDirectory)) { console.error(`Error: The project directory of "${chalk.green(projectPath)}" is a subdirectory of "${chalk.green(modsDirectory)}".`); fatalError('You are supposed to have your project folder somewhere else on the system than the Isaac mods directory. (This is because we don\'t want to upload the ".git" folder or the TypeScript files to the Steam Workshop.) Exiting.'); } } //# sourceMappingURL=checkModSubdirectory.js.map