isaacscript 1.2.41 → 1.2.42

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.
@@ -49,6 +49,11 @@
49
49
  "editor.formatOnSave": true,
50
50
  "editor.tabSize": 2,
51
51
  },
52
+ "[markdown]": {
53
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
54
+ "editor.formatOnSave": true,
55
+ "editor.tabSize": 2
56
+ },
52
57
  "[xml]": {
53
58
  "editor.defaultFormatter": "esbenp.prettier-vscode",
54
59
  "editor.formatOnSave": true,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript",
3
- "version": "1.2.41",
3
+ "version": "1.2.42",
4
4
  "description": "A command line tool for managing Isaac mods written in TypeScript",
5
5
  "homepage": "https://isaacscript.github.io/",
6
6
  "bugs": {
@@ -22,14 +22,14 @@
22
22
  "dotenv": "^16.0.0",
23
23
  "figlet": "^1.5.2",
24
24
  "fs-extra": "^10.1.0",
25
- "isaacscript-tsconfig": "^1.1.11",
25
+ "isaacscript-tsconfig": "^1.1.12",
26
26
  "jsonc-parser": "^3.0.0",
27
27
  "moment": "^2.29.3",
28
28
  "npm-check-updates": "^12.5.11",
29
29
  "prompt": "^1.3.0",
30
30
  "source-map": "^0.7.3",
31
31
  "source-map-support": "^0.5.21",
32
- "sync-directory": "^5.0.4",
32
+ "sync-directory": "^5.0.5",
33
33
  "ts-node": "^10.7.0",
34
34
  "typescript": "^4.6.4",
35
35
  "typescript-to-lua": "^1.4.3",
package/dist/src/exec.js CHANGED
@@ -57,14 +57,12 @@ function execShell(command, args = [], verbose = false, allowFailure = false, cw
57
57
  if (command.includes('"')) {
58
58
  (0, utils_1.error)("execShell cannot execute commands with double quotes in the command.");
59
59
  }
60
- for (let i = 0; i < args.length; i++) {
61
- const arg = args[i];
62
- if (arg !== undefined && arg.includes('"')) {
63
- (0, utils_1.error)("execShell cannot execute commands with double quotes in the arguments.");
64
- }
65
- args[i] = `"${args[i]}"`; // eslint-disable-line no-param-reassign
60
+ const argsHasDoubleQuotes = args.some((arg) => arg.includes('"'));
61
+ if (argsHasDoubleQuotes) {
62
+ (0, utils_1.error)("execShell cannot execute commands with double quotes in the arguments.");
66
63
  }
67
- const commandDescription = `${command} ${args.join(" ")}`.trim();
64
+ const quotedArgs = args.map((arg) => `"${arg}"`);
65
+ const commandDescription = `${command} ${quotedArgs.join(" ")}`.trim();
68
66
  if (verbose) {
69
67
  console.log(`Executing command: ${commandDescription}`);
70
68
  }
@@ -1 +1 @@
1
- {"version":3,"file":"exec.js","sourceRoot":"","sources":["../../src/exec.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,iDAAsE;AACtE,2CAAkC;AAClC,mCAAgC;AAEhC,SAAgB,OAAO,CAAC,IAAY,EAAE,OAAgB,EAAE,GAAG,GAAG,eAAG;IAC/D,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,EAAE,CAAC,CAAC;KAC1C;IAED,IAAI,MAAc,CAAC;IACnB,IAAI;QACF,MAAM,MAAM,GAAG,IAAA,wBAAQ,EAAC,IAAI,IAAI,GAAG,EAAE;YACnC,GAAG;SACJ,CAAC,CAAC;QACH,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC;KACnC;IAAC,OAAO,GAAG,EAAE;QACZ,IAAA,aAAK,EAAC,kBAAkB,eAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KACrD;IAED,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC;KACzC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AApBD,0BAoBC;AAED,SAAgB,cAAc,CAC5B,OAAe,EACf,OAAO,GAAG,KAAK,EACf,GAAG,GAAG,eAAG;IAET,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,G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AK,CAAC,KAAK,CAAC,kBAAkB,CAAC,YAAY,EACjE,GAAG,CACJ,CAAC;KACH;IAED,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,qBAAqB,kBAAkB,EAAE,CAAC,CAAC;KACxD;IAED,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC;IAC3C,IAAI,UAAU,KAAK,IAAI,EAAE;QACvB,IAAA,aAAK,EAAC,+CAA+C,kBAAkB,EAAE,CAAC,CAAC;KAC5E;IAED,MAAM,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;IAEzD,IAAI,UAAU,KAAK,CAAC,EAAE;QACpB,IAAI,YAAY,EAAE;YAChB,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;SAC7B;QAED,OAAO,CAAC,KAAK,CACX,sBAAsB,eAAK,CAAC,KAAK,CAC/B,kBAAkB,CACnB,kCAAkC,UAAU,GAAG,CACjD,CAAC;QACF,OAAO,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAC5C,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAC9B,CAAC;AAtED,8BAsEC"}
@@ -2,22 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Config = void 0;
4
4
  class Config {
5
- /** The "mods" directory that lives next to the "isaac-ng.exe" program. */
6
- modsDirectory = "C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\mods";
7
- /** The save slot that you test your mod on. */
8
- saveSlot = 1;
9
- /**
10
- * By default, the target mod directory name will be the same as the project directory name. This
11
- * setting allows you to customize it.
12
- */
13
- customTargetModDirectoryName;
14
- /** The path to "steamcmd.exe". This is optional and only needed for automating publishing. */
15
- steamCmdPath;
16
- /**
17
- * When your code is recompiled, IsaacScript watcher can restart the game to ensure that any
18
- * run-related variables are properly reset. This is set to true by default.
19
- */
20
- enableIsaacScriptWatcherAutoRestart;
5
+ constructor() {
6
+ /** The "mods" directory that lives next to the "isaac-ng.exe" program. */
7
+ this.modsDirectory = "C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\mods";
8
+ /** The save slot that you test your mod on. */
9
+ this.saveSlot = 1;
10
+ }
21
11
  }
22
12
  exports.Config = Config;
23
13
  //# sourceMappingURL=Config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Config.js","sourceRoot":"","sources":["../../../src/types/Config.ts"],"names":[],"mappings":";;;AAAA,MAAa,MAAM;IACjB,0EAA0E;IAC1E,aAAa,GACX,uFAAuF,CAAC;IAE1F,+CAA+C;IAC/C,QAAQ,GAAG,CAAC,CAAC;IAEb;;;OAGG;IACH,4BAA4B,CAAU;IAEtC,8FAA8F;IAC9F,YAAY,CAAU;IAEtB;;;OAGG;IACH,mCAAmC,CAAW;CAC/C;AAtBD,wBAsBC"}
1
+ {"version":3,"file":"Config.js","sourceRoot":"","sources":["../../../src/types/Config.ts"],"names":[],"mappings":";;;AAAA,MAAa,MAAM;IAAnB;QACE,0EAA0E;QAC1E,kBAAa,GACX,uFAAuF,CAAC;QAE1F,+CAA+C;QAC/C,aAAQ,GAAG,CAAC,CAAC;IAgBf,CAAC;CAAA;AAtBD,wBAsBC"}
@@ -51,6 +51,11 @@
51
51
  "editor.formatOnSave": true,
52
52
  "editor.tabSize": 2,
53
53
  },
54
+ "[markdown]": {
55
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
56
+ "editor.formatOnSave": true,
57
+ "editor.tabSize": 2
58
+ },
54
59
  "[xml]": {
55
60
  "editor.defaultFormatter": "esbenp.prettier-vscode",
56
61
  "editor.formatOnSave": true,
@@ -1,8 +1,8 @@
1
- // A special TypeScript project file, used by ESLint only
1
+ // A special TypeScript configuration file, used by ESLint only
2
2
  {
3
3
  "extends": "./tsconfig.json",
4
4
  "include": [
5
- // These must match the base the "include" setting in the base "tsconfig.json" file
5
+ // This must match the "include" setting in the "tsconfig.json" file
6
6
  "./src/**/*.ts",
7
7
 
8
8
  // These are ESLint-only inclusions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript",
3
- "version": "1.2.41",
3
+ "version": "1.2.42",
4
4
  "description": "A command line tool for managing Isaac mods written in TypeScript",
5
5
  "homepage": "https://isaacscript.github.io/",
6
6
  "bugs": {
@@ -22,14 +22,14 @@
22
22
  "dotenv": "^16.0.0",
23
23
  "figlet": "^1.5.2",
24
24
  "fs-extra": "^10.1.0",
25
- "isaacscript-tsconfig": "^1.1.11",
25
+ "isaacscript-tsconfig": "^1.1.12",
26
26
  "jsonc-parser": "^3.0.0",
27
27
  "moment": "^2.29.3",
28
28
  "npm-check-updates": "^12.5.11",
29
29
  "prompt": "^1.3.0",
30
30
  "source-map": "^0.7.3",
31
31
  "source-map-support": "^0.5.21",
32
- "sync-directory": "^5.0.4",
32
+ "sync-directory": "^5.0.5",
33
33
  "ts-node": "^10.7.0",
34
34
  "typescript": "^4.6.4",
35
35
  "typescript-to-lua": "^1.4.3",
package/src/exec.ts CHANGED
@@ -68,18 +68,16 @@ export function execShell(
68
68
  "execShell cannot execute commands with double quotes in the command.",
69
69
  );
70
70
  }
71
- for (let i = 0; i < args.length; i++) {
72
- const arg = args[i];
73
- if (arg !== undefined && arg.includes('"')) {
74
- error(
75
- "execShell cannot execute commands with double quotes in the arguments.",
76
- );
77
- }
78
71
 
79
- args[i] = `"${args[i]}"`; // eslint-disable-line no-param-reassign
72
+ const argsHasDoubleQuotes = args.some((arg) => arg.includes('"'));
73
+ if (argsHasDoubleQuotes) {
74
+ error(
75
+ "execShell cannot execute commands with double quotes in the arguments.",
76
+ );
80
77
  }
81
78
 
82
- const commandDescription = `${command} ${args.join(" ")}`.trim();
79
+ const quotedArgs = args.map((arg) => `"${arg}"`);
80
+ const commandDescription = `${command} ${quotedArgs.join(" ")}`.trim();
83
81
 
84
82
  if (verbose) {
85
83
  console.log(`Executing command: ${commandDescription}`);
@@ -1,8 +1,6 @@
1
1
  // A special TypeScript configuration file, used by ESLint only
2
2
  {
3
3
  "extends": "./tsconfig.json",
4
-
5
- // A list of the TypeScript files to compile
6
4
  "include": [
7
5
  // This must match the "include" setting in the "tsconfig.json" file
8
6
  "./src/**/*.ts",