isaacscript 3.18.4 → 3.18.6-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/banner.js +20 -0
- package/dist/banner.js.map +1 -0
- package/dist/checkForWindowsTerminalBugs.js +1 -0
- package/dist/checkForWindowsTerminalBugs.js.map +1 -0
- package/dist/classes/Config.js +1 -0
- package/dist/classes/Config.js.map +1 -0
- package/dist/classes/ValidatedConfig.js +1 -0
- package/dist/classes/ValidatedConfig.js.map +1 -0
- package/dist/commands/check/check.js +29 -4
- package/dist/commands/check/check.js.map +1 -0
- package/dist/commands/check/check.test.js +1 -0
- package/dist/commands/check/check.test.js.map +1 -0
- package/dist/commands/copy/copy.js +16 -3
- package/dist/commands/copy/copy.js.map +1 -0
- package/dist/commands/init/checkIfProjectPathExists.js +1 -0
- package/dist/commands/init/checkIfProjectPathExists.js.map +1 -0
- package/dist/commands/init/checkModSubdirectory.js +1 -0
- package/dist/commands/init/checkModSubdirectory.js.map +1 -0
- package/dist/commands/init/checkModTargetDirectory.js +1 -0
- package/dist/commands/init/checkModTargetDirectory.js.map +1 -0
- package/dist/commands/init/createProject.js +27 -8
- package/dist/commands/init/createProject.js.map +1 -0
- package/dist/commands/init/getAuthorName.js +1 -0
- package/dist/commands/init/getAuthorName.js.map +1 -0
- package/dist/commands/init/{getModsDir.js → getModsDirectory.js} +4 -8
- package/dist/commands/init/getModsDirectory.js.map +1 -0
- package/dist/commands/init/getProjectPath.js +3 -6
- package/dist/commands/init/getProjectPath.js.map +1 -0
- package/dist/commands/init/{promptSaveSlot.js → getSaveSlot.js} +9 -5
- package/dist/commands/init/getSaveSlot.js.map +1 -0
- package/dist/commands/init/init.js +59 -16
- package/dist/commands/init/init.js.map +1 -0
- package/dist/commands/init/installVSCodeExtensions.js +1 -0
- package/dist/commands/init/installVSCodeExtensions.js.map +1 -0
- package/dist/commands/init/promptVSCode.js +1 -0
- package/dist/commands/init/promptVSCode.js.map +1 -0
- package/dist/commands/monitor/copyWatcherMod.js +1 -0
- package/dist/commands/monitor/copyWatcherMod.js.map +1 -0
- package/dist/commands/monitor/modDirectorySyncer/modDirectorySyncer.js +1 -0
- package/dist/commands/monitor/modDirectorySyncer/modDirectorySyncer.js.map +1 -0
- package/dist/commands/monitor/monitor.js +27 -65
- package/dist/commands/monitor/monitor.js.map +1 -0
- package/dist/commands/monitor/notifyGame.js +4 -3
- package/dist/commands/monitor/notifyGame.js.map +1 -0
- package/dist/commands/monitor/saveDatWriter/saveDatWriter.js +1 -0
- package/dist/commands/monitor/saveDatWriter/saveDatWriter.js.map +1 -0
- package/dist/commands/monitor/saveDatWriter/types.js +1 -0
- package/dist/commands/monitor/saveDatWriter/types.js.map +1 -0
- package/dist/commands/monitor/spawnModDirectorySyncer.js +10 -5
- package/dist/commands/monitor/spawnModDirectorySyncer.js.map +1 -0
- package/dist/commands/monitor/spawnSaveDatWriter.js +1 -0
- package/dist/commands/monitor/spawnSaveDatWriter.js.map +1 -0
- package/dist/commands/monitor/spawnTSTLWatcher.js +8 -7
- package/dist/commands/monitor/spawnTSTLWatcher.js.map +1 -0
- package/dist/commands/monitor/touchWatcherSaveDatFiles.js +1 -0
- package/dist/commands/monitor/touchWatcherSaveDatFiles.js.map +1 -0
- package/dist/commands/publish/isaacscriptMod.js +5 -4
- package/dist/commands/publish/isaacscriptMod.js.map +1 -0
- package/dist/commands/publish/publish.js +147 -23
- package/dist/commands/publish/publish.js.map +1 -0
- package/dist/commands/publish/validate.js +2 -1
- package/dist/commands/publish/validate.js.map +1 -0
- package/dist/common.js +1 -0
- package/dist/common.js.map +1 -0
- package/dist/configFile.js +9 -13
- package/dist/configFile.js.map +1 -0
- package/dist/constants.js +1 -0
- package/dist/constants.js.map +1 -0
- package/dist/customStage.js +1 -0
- package/dist/customStage.js.map +1 -0
- package/dist/dev.js +1 -0
- package/dist/dev.js.map +1 -0
- package/dist/enums/copied/DoorSlot.js +1 -0
- package/dist/enums/copied/DoorSlot.js.map +1 -0
- package/dist/enums/copied/DoorSlotFlag.js +1 -0
- package/dist/enums/copied/DoorSlotFlag.js.map +1 -0
- package/dist/enums/copied/RoomShape.js +1 -0
- package/dist/enums/copied/RoomShape.js.map +1 -0
- package/dist/exec.js +1 -0
- package/dist/exec.js.map +1 -0
- package/dist/git.js +7 -3
- package/dist/git.js.map +1 -0
- package/dist/interfaces/GitHubCLIHostsYAML.js +1 -0
- package/dist/interfaces/GitHubCLIHostsYAML.js.map +1 -0
- package/dist/interfaces/IsaacScriptTSConfig.js +1 -0
- package/dist/interfaces/IsaacScriptTSConfig.js.map +1 -0
- package/dist/interfaces/ShadersXML.js +1 -0
- package/dist/interfaces/ShadersXML.js.map +1 -0
- package/dist/interfaces/copied/CustomStageTSConfig.js +1 -0
- package/dist/interfaces/copied/CustomStageTSConfig.js.map +1 -0
- package/dist/interfaces/copied/JSONRoomsFile.js +1 -0
- package/dist/interfaces/copied/JSONRoomsFile.js.map +1 -0
- package/dist/main.js +2 -119
- package/dist/main.js.map +1 -0
- package/dist/objects/copied/doorSlotToDoorSlotFlag.js +1 -0
- package/dist/objects/copied/doorSlotToDoorSlotFlag.js.map +1 -0
- package/dist/objects/copied/roomShapeToDoorSlotCoordinates.js +1 -0
- package/dist/objects/copied/roomShapeToDoorSlotCoordinates.js.map +1 -0
- package/dist/packageManager.js +16 -16
- package/dist/packageManager.js.map +1 -0
- package/dist/parseArgs.js +62 -270
- package/dist/parseArgs.js.map +1 -0
- package/dist/prompt.js +1 -0
- package/dist/prompt.js.map +1 -0
- package/dist/tsconfig.js +1 -0
- package/dist/tsconfig.js.map +1 -0
- package/dist/utils.js +1 -0
- package/dist/utils.js.map +1 -0
- package/dist/validateMod.js +72 -0
- package/dist/validateMod.js.map +1 -0
- package/dist/validateNodeVersion.js +11 -1
- package/dist/validateNodeVersion.js.map +1 -0
- package/package.json +5 -4
- package/dist/commands/publish/prePublish.js +0 -105
- package/dist/types/Command.js +0 -4
- package/dist/validateInIsaacScriptProject.js +0 -29
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import chalk from "chalk";
|
|
2
|
-
import { PACKAGE_JSON, isDirectory, isFile } from "isaacscript-common-node";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import { CWD, PROJECT_NAME } from "./constants.js";
|
|
5
|
-
const FILE_NAMES_TO_CHECK = [PACKAGE_JSON];
|
|
6
|
-
/** We don't check "node_modules" because we might be cloning a fresh IsaacScript project. */
|
|
7
|
-
const SUBDIRECTORY_NAMES_TO_CHECK = ["src", "mod"];
|
|
8
|
-
// Validate that we are in a directory that looks like an IsaacScript project.
|
|
9
|
-
export function validateInIsaacScriptProject() {
|
|
10
|
-
for (const fileName of FILE_NAMES_TO_CHECK) {
|
|
11
|
-
const filePath = path.join(CWD, fileName);
|
|
12
|
-
if (!isFile(filePath)) {
|
|
13
|
-
errorNotExists(fileName, true);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
for (const subdirectoryName of SUBDIRECTORY_NAMES_TO_CHECK) {
|
|
17
|
-
const subdirectoryPath = path.join(CWD, subdirectoryName);
|
|
18
|
-
if (!isDirectory(subdirectoryPath)) {
|
|
19
|
-
errorNotExists(subdirectoryName, false);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function errorNotExists(dirName, file) {
|
|
24
|
-
const noun = file ? "file" : "subdirectory";
|
|
25
|
-
console.error(chalk.red(`It looks like the current working directory is not an ${PROJECT_NAME} project. (There is no "${dirName}" ${noun} here.)`));
|
|
26
|
-
console.error(`Did you mean to create a new ${PROJECT_NAME} project with "${chalk.green("npx isaacscript init")}"?`);
|
|
27
|
-
console.error(`If not, then change the current working directory to an ${PROJECT_NAME} project.`);
|
|
28
|
-
process.exit(1);
|
|
29
|
-
}
|