isaacscript 2.0.14-dev.8 → 2.0.14-dev.9

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.
Files changed (92) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +4 -6
  3. package/file-templates/static/{.eslintrc.js → .eslintrc.js.template} +0 -0
  4. package/file-templates/static/.github/workflows/ci.yml +4 -3
  5. package/package.json +6 -1
  6. package/src/checkForWindowsTerminalBugs.js +75 -79
  7. package/src/checkForWindowsTerminalBugs.js.map +1 -1
  8. package/src/commands/copy/copy.js +32 -32
  9. package/src/commands/init/checkIfProjectPathExists.js +27 -29
  10. package/src/commands/init/checkIfProjectPathExists.js.map +1 -1
  11. package/src/commands/init/checkModSubdirectory.js +15 -15
  12. package/src/commands/init/checkModTargetDirectory.js +30 -32
  13. package/src/commands/init/checkModTargetDirectory.js.map +1 -1
  14. package/src/commands/init/createMod.js +142 -137
  15. package/src/commands/init/createMod.js.map +1 -1
  16. package/src/commands/init/getModsDir.js +55 -57
  17. package/src/commands/init/getModsDir.js.map +1 -1
  18. package/src/commands/init/getProjectPath.js +88 -92
  19. package/src/commands/init/getProjectPath.js.map +1 -1
  20. package/src/commands/init/git.js +150 -152
  21. package/src/commands/init/git.js.map +1 -1
  22. package/src/commands/init/init.js +65 -69
  23. package/src/commands/init/init.js.map +1 -1
  24. package/src/commands/init/installVSCodeExtensions.js +32 -32
  25. package/src/commands/init/promptSaveSlot.js +21 -24
  26. package/src/commands/init/promptSaveSlot.js.map +1 -1
  27. package/src/commands/init/promptVSCode.js +24 -26
  28. package/src/commands/init/promptVSCode.js.map +1 -1
  29. package/src/commands/monitor/constants.js +4 -4
  30. package/src/commands/monitor/copyWatcherMod.js +38 -38
  31. package/src/commands/monitor/modDirectorySyncer/modDirectorySyncer.js +49 -49
  32. package/src/commands/monitor/monitor.js +146 -146
  33. package/src/commands/monitor/notifyGame.js +57 -57
  34. package/src/commands/monitor/saveDatWriter/saveDatWriter.js +116 -116
  35. package/src/commands/monitor/saveDatWriter/types.js +2 -2
  36. package/src/commands/monitor/spawnSaveDatWriter.js +34 -34
  37. package/src/commands/monitor/touchWatcherSaveDatFiles.js +20 -20
  38. package/src/commands/publish/publish.js +220 -220
  39. package/src/configFile.js +63 -65
  40. package/src/configFile.js.map +1 -1
  41. package/src/constants.js +59 -59
  42. package/src/exec.js +95 -95
  43. package/src/file.js +193 -193
  44. package/src/main.js +117 -121
  45. package/src/main.js.map +1 -1
  46. package/src/parseArgs.js +106 -106
  47. package/src/prompt.js +86 -92
  48. package/src/prompt.js.map +1 -1
  49. package/src/types/Command.js +4 -4
  50. package/src/types/Config.js +12 -12
  51. package/src/types/GitHubCLIHostsYAML.js +2 -2
  52. package/src/utils.js +81 -81
  53. package/src/validateInIsaacScriptProject.js +26 -26
  54. package/src/validateNodeVersion.js +24 -24
  55. package/src/validateOS.js +16 -16
  56. package/src/checkForWindowsTerminalBugs.d.ts +0 -5
  57. package/src/commands/copy/copy.d.ts +0 -3
  58. package/src/commands/init/checkIfProjectPathExists.d.ts +0 -1
  59. package/src/commands/init/checkModSubdirectory.d.ts +0 -1
  60. package/src/commands/init/checkModTargetDirectory.d.ts +0 -1
  61. package/src/commands/init/createMod.d.ts +0 -1
  62. package/src/commands/init/getModsDir.d.ts +0 -1
  63. package/src/commands/init/getProjectPath.d.ts +0 -1
  64. package/src/commands/init/git.d.ts +0 -4
  65. package/src/commands/init/init.d.ts +0 -1
  66. package/src/commands/init/installVSCodeExtensions.d.ts +0 -1
  67. package/src/commands/init/promptSaveSlot.d.ts +0 -1
  68. package/src/commands/init/promptVSCode.d.ts +0 -1
  69. package/src/commands/monitor/constants.d.ts +0 -1
  70. package/src/commands/monitor/copyWatcherMod.d.ts +0 -2
  71. package/src/commands/monitor/modDirectorySyncer/modDirectorySyncer.d.ts +0 -1
  72. package/src/commands/monitor/monitor.d.ts +0 -2
  73. package/src/commands/monitor/notifyGame.d.ts +0 -3
  74. package/src/commands/monitor/saveDatWriter/saveDatWriter.d.ts +0 -1
  75. package/src/commands/monitor/saveDatWriter/types.d.ts +0 -5
  76. package/src/commands/monitor/spawnSaveDatWriter.d.ts +0 -4
  77. package/src/commands/monitor/touchWatcherSaveDatFiles.d.ts +0 -2
  78. package/src/commands/publish/publish.d.ts +0 -2
  79. package/src/configFile.d.ts +0 -4
  80. package/src/constants.d.ts +0 -34
  81. package/src/exec.d.ts +0 -4
  82. package/src/file.d.ts +0 -12
  83. package/src/main.d.ts +0 -2
  84. package/src/parseArgs.d.ts +0 -1
  85. package/src/prompt.d.ts +0 -5
  86. package/src/types/Command.d.ts +0 -2
  87. package/src/types/Config.d.ts +0 -18
  88. package/src/types/GitHubCLIHostsYAML.d.ts +0 -7
  89. package/src/utils.d.ts +0 -13
  90. package/src/validateInIsaacScriptProject.d.ts +0 -1
  91. package/src/validateNodeVersion.d.ts +0 -5
  92. package/src/validateOS.d.ts +0 -1
@@ -1,27 +1,27 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateInIsaacScriptProject = void 0;
4
- const tslib_1 = require("tslib");
5
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
- const path_1 = tslib_1.__importDefault(require("path"));
7
- const constants_1 = require("./constants");
8
- const file = tslib_1.__importStar(require("./file"));
9
- // Validate that we are in a directory that looks like an IsaacScript project.
10
- function validateInIsaacScriptProject(verbose) {
11
- const subdirectoriesToCheck = ["src", "mod", "node_modules"];
12
- for (const subdirectoryName of subdirectoriesToCheck) {
13
- const subdirectoryPath = path_1.default.join(constants_1.CWD, subdirectoryName);
14
- if (!file.exists(subdirectoryPath, verbose) ||
15
- !file.isDir(subdirectoryPath, verbose)) {
16
- errorNotExists(subdirectoryPath);
17
- }
18
- }
19
- }
20
- exports.validateInIsaacScriptProject = validateInIsaacScriptProject;
21
- function errorNotExists(dirName) {
22
- console.error(chalk_1.default.red(`It looks like the current working directory is not an ${constants_1.PROJECT_NAME} project. (There is no "${dirName}" subdirectory here.)`));
23
- console.error(`Did you mean to create a new ${constants_1.PROJECT_NAME} project with "${chalk_1.default.green("npx isaacscript init")}"?`);
24
- console.error(`If not, then change the current working directory to an ${constants_1.PROJECT_NAME} project.`);
25
- process.exit(1);
26
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateInIsaacScriptProject = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
+ const path_1 = tslib_1.__importDefault(require("path"));
7
+ const constants_1 = require("./constants");
8
+ const file = tslib_1.__importStar(require("./file"));
9
+ // Validate that we are in a directory that looks like an IsaacScript project.
10
+ function validateInIsaacScriptProject(verbose) {
11
+ const subdirectoriesToCheck = ["src", "mod", "node_modules"];
12
+ for (const subdirectoryName of subdirectoriesToCheck) {
13
+ const subdirectoryPath = path_1.default.join(constants_1.CWD, subdirectoryName);
14
+ if (!file.exists(subdirectoryPath, verbose) ||
15
+ !file.isDir(subdirectoryPath, verbose)) {
16
+ errorNotExists(subdirectoryPath);
17
+ }
18
+ }
19
+ }
20
+ exports.validateInIsaacScriptProject = validateInIsaacScriptProject;
21
+ function errorNotExists(dirName) {
22
+ console.error(chalk_1.default.red(`It looks like the current working directory is not an ${constants_1.PROJECT_NAME} project. (There is no "${dirName}" subdirectory here.)`));
23
+ console.error(`Did you mean to create a new ${constants_1.PROJECT_NAME} project with "${chalk_1.default.green("npx isaacscript init")}"?`);
24
+ console.error(`If not, then change the current working directory to an ${constants_1.PROJECT_NAME} project.`);
25
+ process.exit(1);
26
+ }
27
27
  //# sourceMappingURL=validateInIsaacScriptProject.js.map
@@ -1,25 +1,25 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateNodeVersion = void 0;
4
- const tslib_1 = require("tslib");
5
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
- const constants_1 = require("./constants");
7
- const utils_1 = require("./utils");
8
- const REQUIRED_NODE_JS_MAJOR_VERSION = 16;
9
- /**
10
- * This program requires Node to be at least v16.0.0, since that is the version that added the
11
- * "fs.rmSync" function. (Node v15.0.0 is confirmed to not work.)
12
- */
13
- function validateNodeVersion() {
14
- const { version } = process;
15
- const [majorVersion] = (0, utils_1.parseSemVer)(version);
16
- if (majorVersion >= REQUIRED_NODE_JS_MAJOR_VERSION) {
17
- return;
18
- }
19
- console.error(`Your Node.js version is: ${chalk_1.default.red(version)}`);
20
- console.error(`${constants_1.PROJECT_NAME} requires a Node.js version of ${chalk_1.default.red(`${REQUIRED_NODE_JS_MAJOR_VERSION}.0.0`)} or greater.`);
21
- console.error(`Please upgrade your version of Node.js before using ${constants_1.PROJECT_NAME}.`);
22
- process.exit(1);
23
- }
24
- exports.validateNodeVersion = validateNodeVersion;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateNodeVersion = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
+ const constants_1 = require("./constants");
7
+ const utils_1 = require("./utils");
8
+ const REQUIRED_NODE_JS_MAJOR_VERSION = 16;
9
+ /**
10
+ * This program requires Node to be at least v16.0.0, since that is the version that added the
11
+ * "fs.rmSync" function. (Node v15.0.0 is confirmed to not work.)
12
+ */
13
+ function validateNodeVersion() {
14
+ const { version } = process;
15
+ const [majorVersion] = (0, utils_1.parseSemVer)(version);
16
+ if (majorVersion >= REQUIRED_NODE_JS_MAJOR_VERSION) {
17
+ return;
18
+ }
19
+ console.error(`Your Node.js version is: ${chalk_1.default.red(version)}`);
20
+ console.error(`${constants_1.PROJECT_NAME} requires a Node.js version of ${chalk_1.default.red(`${REQUIRED_NODE_JS_MAJOR_VERSION}.0.0`)} or greater.`);
21
+ console.error(`Please upgrade your version of Node.js before using ${constants_1.PROJECT_NAME}.`);
22
+ process.exit(1);
23
+ }
24
+ exports.validateNodeVersion = validateNodeVersion;
25
25
  //# sourceMappingURL=validateNodeVersion.js.map
package/src/validateOS.js CHANGED
@@ -1,17 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateOS = void 0;
4
- const tslib_1 = require("tslib");
5
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
- const constants_1 = require("./constants");
7
- const VALID_PLATFORMS = ["win32", "linux"];
8
- function validateOS() {
9
- if (VALID_PLATFORMS.includes(process.platform)) {
10
- return;
11
- }
12
- console.error(`${constants_1.PROJECT_NAME} is only supported on ${chalk_1.default.green("Windows")} and ${chalk_1.default.green("Linux")}.`);
13
- console.error(`If you use another operating system and you want to use ${constants_1.PROJECT_NAME}, make a request in the community Discord server.`);
14
- process.exit(1);
15
- }
16
- exports.validateOS = validateOS;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateOS = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
+ const constants_1 = require("./constants");
7
+ const VALID_PLATFORMS = ["win32", "linux"];
8
+ function validateOS() {
9
+ if (VALID_PLATFORMS.includes(process.platform)) {
10
+ return;
11
+ }
12
+ console.error(`${constants_1.PROJECT_NAME} is only supported on ${chalk_1.default.green("Windows")} and ${chalk_1.default.green("Linux")}.`);
13
+ console.error(`If you use another operating system and you want to use ${constants_1.PROJECT_NAME}, make a request in the community Discord server.`);
14
+ process.exit(1);
15
+ }
16
+ exports.validateOS = validateOS;
17
17
  //# sourceMappingURL=validateOS.js.map
@@ -1,5 +0,0 @@
1
- /**
2
- * By default, Git Bash for Windows uses MINGW64. This will not work correctly with the prompt
3
- * library. Try to detect this and warn the end-user.
4
- */
5
- export declare function checkForWindowsTerminalBugs(verbose: boolean): Promise<void>;
@@ -1,3 +0,0 @@
1
- import { Config } from "../../types/Config";
2
- export declare function copy(argv: Record<string, unknown>, config: Config): void;
3
- export declare function compileAndCopy(modSourcePath: string, modTargetPath: string, verbose: boolean): void;
@@ -1 +0,0 @@
1
- export declare function checkIfProjectPathExists(projectPath: string, yes: boolean, verbose: boolean): Promise<void>;
@@ -1 +0,0 @@
1
- export declare function checkModSubdirectory(projectPath: string, modsDirectory: string): void;
@@ -1 +0,0 @@
1
- export declare function checkModTargetDirectory(modsDirectory: string, projectName: string, yes: boolean, verbose: boolean): Promise<void>;
@@ -1 +0,0 @@
1
- export declare function createMod(projectName: string, projectPath: string, createNewDir: boolean, modsDirectory: string, saveSlot: number, gitRemoteURL: string | undefined, skipNPMInstall: boolean, verbose: boolean): void;
@@ -1 +0,0 @@
1
- export declare function getModsDir(argv: Record<string, unknown>, verbose: boolean): Promise<string>;
@@ -1 +0,0 @@
1
- export declare function getProjectPath(argv: Record<string, unknown>, useCurrentDir: boolean, yes: boolean, forceName: boolean): Promise<[string, boolean]>;
@@ -1,4 +0,0 @@
1
- export declare function promptGitHubRepoOrGitRemoteURL(projectName: string, yes: boolean, verbose: boolean): Promise<string | undefined>;
2
- export declare function initGitRepository(projectPath: string, gitRemoteURL: string | undefined, verbose: boolean): void;
3
- export declare function isGitDirty(verbose: boolean): boolean;
4
- export declare function gitCommitIfChanges(version: string, verbose: boolean): void;
@@ -1 +0,0 @@
1
- export declare function init(argv: Record<string, unknown>): Promise<void>;
@@ -1 +0,0 @@
1
- export declare function installVSCodeExtensions(projectPath: string, VSCodeCommand: string, verbose: boolean): void;
@@ -1 +0,0 @@
1
- export declare function promptSaveSlot(argv: Record<string, unknown>, yes: boolean): Promise<number>;
@@ -1 +0,0 @@
1
- export declare function promptVSCode(projectPath: string, VSCodeCommand: string, vscode: boolean, verbose: boolean): Promise<void>;
@@ -1 +0,0 @@
1
- export declare const COMPILATION_SUCCESSFUL = "Compilation successful.";
@@ -1,2 +0,0 @@
1
- import { Config } from "../../types/Config";
2
- export declare function copyWatcherMod(config: Config, verbose: boolean): void;
@@ -1,2 +0,0 @@
1
- import { Config } from "../../types/Config";
2
- export declare function monitor(argv: Record<string, unknown>, config: Config): void;
@@ -1,3 +0,0 @@
1
- export declare function msg(data: string): void;
2
- export declare function command(data: string): void;
3
- export declare function ping(): void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- export declare type SaveDatMessageType = "command" | "msg" | "ping";
2
- export interface SaveDatMessage {
3
- type: SaveDatMessageType;
4
- data: string;
5
- }
@@ -1,4 +0,0 @@
1
- import { Config } from "../../types/Config";
2
- import { SaveDatMessage } from "./saveDatWriter/types";
3
- export declare function spawnSaveDatWriter(config: Config): void;
4
- export declare function sendMsgToSaveDatWriter(msg: SaveDatMessage): void;
@@ -1,2 +0,0 @@
1
- import { Config } from "../../types/Config";
2
- export declare function touchWatcherSaveDatFiles(config: Config, verbose: boolean): void;
@@ -1,2 +0,0 @@
1
- import { Config } from "../../types/Config";
2
- export declare function publish(argv: Record<string, unknown>, config: Config): void;
@@ -1,4 +0,0 @@
1
- import { Config } from "./types/Config";
2
- export declare function get(argv: Record<string, unknown>): Promise<Config>;
3
- export declare function createObject(modsDirectory: string, saveSlot: number): Config;
4
- export declare function createFile(projectPath: string, config: Config, verbose: boolean): void;
@@ -1,34 +0,0 @@
1
- export declare const CURRENT_DIRECTORY_NAME: string;
2
- export declare const CWD: string;
3
- export declare const HOME_DIR: string;
4
- export declare const FILE_SYNCED_MESSAGE = "File synced:";
5
- export declare const MOD_UPLOADER_PATH = "C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\tools\\ModUploader\\ModUploader.exe";
6
- export declare const PROJECT_NAME = "IsaacScript";
7
- export declare const DISABLE_IT_FILE = "disable.it";
8
- export declare const WATCHER_MOD_NAME = "isaacscript-watcher";
9
- export declare const WATCHER_MOD_SOURCE_PATH: string;
10
- export declare const TEMPLATES_STATIC_DIR: string;
11
- export declare const GITIGNORE = "gitignore";
12
- export declare const GITIGNORE_TEMPLATE_PATH: string;
13
- export declare const MAIN_TS = "main.ts";
14
- export declare const MAIN_TS_TEMPLATE_PATH: string;
15
- export declare const METADATA_XML = "metadata.xml";
16
- export declare const METADATA_XML_TEMPLATE_PATH: string;
17
- export declare const METADATA_VDF = "metadata.vdf";
18
- export declare const METADATA_VDF_TEMPLATE_PATH: string;
19
- export declare const PACKAGE_JSON = "package.json";
20
- export declare const PACKAGE_JSON_TEMPLATE_PATH: string;
21
- export declare const README_MD = "README.md";
22
- export declare const README_MD_TEMPLATES_PATH: string;
23
- export declare const CONFIG_FILE_NAME = "isaacscript.json";
24
- export declare const CONFIG_FILE_PATH: string;
25
- export declare const TSCONFIG_PATH: string;
26
- export declare const PACKAGE_JSON_PATH: string;
27
- export declare const CONSTANTS_TS_PATH: string;
28
- export declare const YARN_LOCK_PATH: string;
29
- export declare const MOD_SOURCE_PATH: string;
30
- export declare const MAIN_LUA = "main.lua";
31
- export declare const METADATA_XML_PATH: string;
32
- export declare const VERSION_TXT_PATH: string;
33
- export declare const PUBLISH_PRE_COPY_PY_PATH: string;
34
- export declare const PUBLISH_POST_COPY_PY_PATH: string;
package/src/exec.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export declare function execExe(path: string, verbose: boolean, cwd?: string): string;
2
- export declare function execPowershell(command: string, verbose?: boolean, cwd?: string): string;
3
- /** Returns a tuple of exit status and stdout. The stdout is trimmed for convenience. */
4
- export declare function execShell(command: string, args?: string[], verbose?: boolean, allowFailure?: boolean, cwd?: string): [exitStatus: number, stdout: string];
package/src/file.d.ts DELETED
@@ -1,12 +0,0 @@
1
- export declare function copy(srcPath: string, dstPath: string, verbose: boolean): void;
2
- export declare function deleteFileOrDirectory(filePath: string, verbose: boolean): void;
3
- export declare function exists(filePath: string, verbose: boolean): boolean;
4
- export declare function getDirList(dirPath: string, verbose: boolean): string[];
5
- export declare function isDir(filePath: string, verbose: boolean): boolean;
6
- export declare function isSubDirOf(dir: string, parent: string): boolean;
7
- export declare function makeDir(dirPath: string, verbose: boolean): void;
8
- export declare function read(filePath: string, verbose: boolean): string;
9
- export declare function rename(srcPath: string, dstPath: string, verbose: boolean): void;
10
- export declare function touch(filePath: string, verbose: boolean): void;
11
- export declare function write(filePath: string, data: string, verbose: boolean): void;
12
- export declare function writeTry(filePath: string, data: string, verbose: boolean): void;
package/src/main.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
@@ -1 +0,0 @@
1
- export declare function parseArgs(): Record<string, unknown>;
package/src/prompt.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export declare function promptInit(): void;
2
- export declare function getInputYesNo(msg: string, defaultValue?: boolean): Promise<boolean>;
3
- /** Returns trimmed input. */
4
- export declare function getInputString(msg: string, defaultValue?: string): Promise<string>;
5
- export declare function getInputInt(msg: string, defaultValue?: number): Promise<number>;
@@ -1,2 +0,0 @@
1
- export declare type Command = "monitor" | "init" | "copy" | "publish";
2
- export declare const DEFAULT_COMMAND = "monitor";
@@ -1,18 +0,0 @@
1
- export declare class Config {
2
- /** The "mods" directory that lives next to the "isaac-ng.exe" program. */
3
- modsDirectory: string;
4
- /** The save slot that you test your mod on. */
5
- saveSlot: number;
6
- /**
7
- * By default, the target mod directory name will be the same as the project directory name. This
8
- * setting allows you to customize it.
9
- */
10
- customTargetModDirectoryName?: string;
11
- /** The path to "steamcmd.exe". This is optional and only needed for automating publishing. */
12
- steamCmdPath?: string;
13
- /**
14
- * When your code is recompiled, IsaacScript watcher can restart the game to ensure that any
15
- * run-related variables are properly reset. This is set to true by default.
16
- */
17
- enableIsaacScriptWatcherAutoRestart?: boolean;
18
- }
@@ -1,7 +0,0 @@
1
- export interface GitHubCLIHostsYAML {
2
- "github.com": {
3
- user: string;
4
- oauth_token: string;
5
- git_protocol: string;
6
- };
7
- }
package/src/utils.d.ts DELETED
@@ -1,13 +0,0 @@
1
- import { Config } from "./types/Config";
2
- export declare const ensureAllCases: (obj: never) => never;
3
- export declare function error(...args: unknown[]): never;
4
- export declare function getModTargetDirectoryName(config: Config): string;
5
- export declare function getTime(): string;
6
- export declare function hasWhiteSpace(s: string): boolean;
7
- export declare function isKebabCase(s: string): boolean;
8
- /**
9
- * `parseIntSafe` is a more reliable version of `parseInt`. By default, `parseInt('1a')` will return
10
- * "1", which is unexpected. This returns either an integer or NaN.
11
- */
12
- export declare function parseIntSafe(input: unknown): number;
13
- export declare function parseSemVer(versionString: string): [majorVersion: number, minorVersion: number, patchVersion: number];
@@ -1 +0,0 @@
1
- export declare function validateInIsaacScriptProject(verbose: boolean): void;
@@ -1,5 +0,0 @@
1
- /**
2
- * This program requires Node to be at least v16.0.0, since that is the version that added the
3
- * "fs.rmSync" function. (Node v15.0.0 is confirmed to not work.)
4
- */
5
- export declare function validateNodeVersion(): void;
@@ -1 +0,0 @@
1
- export declare function validateOS(): void;