isaacscript 3.4.6 → 3.4.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript",
3
- "version": "3.4.6",
3
+ "version": "3.4.8",
4
4
  "description": "A command line tool for managing Isaac mods written in TypeScript.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -201,6 +201,10 @@
201
201
  },
202
202
  "type": "object"
203
203
  },
204
+ "music": {
205
+ "description": "Optional. A string that represents the name of the music track from the \"content/music.xml\" file that corresponds to this custom stage. It will be manually played upon entering the stage.\n\nIf not specified, the same music track as the base stage will be used.",
206
+ "type": "string"
207
+ },
204
208
  "name": {
205
209
  "description": "Mandatory. The name of the custom stage.",
206
210
  "type": "string"
@@ -6,6 +6,8 @@ const INFORMATIONAL_HEADER = `--[[
6
6
 
7
7
  This Isaac mod was created with the IsaacScript tool.
8
8
 
9
+ DO NOT EDIT THIS FILE DIRECTLY!
10
+
9
11
  The Lua code in this file is not actually the source code for the program. Rather, it was
10
12
  automatically generated from higher-level TypeScript code, and might be hard to read. If you want to
11
13
  understand how the code in this mod works, you should read the actual TypeScript source code
@@ -1 +1 @@
1
- {"version":3,"file":"addIsaacScriptCommentHeader.js","sourceRoot":"","sources":["../../../../../packages/isaacscript-cli/src/plugins/addIsaacScriptCommentHeader.ts"],"names":[],"mappings":";AAAA,mFAAmF;;AAInF,2CAA2D;AAE3D,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;CAgB5B,CAAC;AAEF,MAAM,MAAM,GAAgB;IAC1B,UAAU,CACR,QAAoB,EACpB,QAA8B,EAC9B,SAAwB,EACxB,MAAuB;QAEvB,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE;YACzB,IAAI,CAAC,IAAI;gBACP,oBAAoB,GAAG,wCAA4B,GAAG,IAAI,CAAC,IAAI,CAAC;SACnE;IACH,CAAC;CACF,CAAC;AAEF,uBAAuB;AACvB,kBAAe,MAAM,CAAC,CAAC,+CAA+C"}
1
+ {"version":3,"file":"addIsaacScriptCommentHeader.js","sourceRoot":"","sources":["../../../../../packages/isaacscript-cli/src/plugins/addIsaacScriptCommentHeader.ts"],"names":[],"mappings":";AAAA,mFAAmF;;AAInF,2CAA2D;AAE3D,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;CAkB5B,CAAC;AAEF,MAAM,MAAM,GAAgB;IAC1B,UAAU,CACR,QAAoB,EACpB,QAA8B,EAC9B,SAAwB,EACxB,MAAuB;QAEvB,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE;YACzB,IAAI,CAAC,IAAI;gBACP,oBAAoB,GAAG,wCAA4B,GAAG,IAAI,CAAC,IAAI,CAAC;SACnE;IACH,CAAC;CACF,CAAC;AAEF,uBAAuB;AACvB,kBAAe,MAAM,CAAC,CAAC,+CAA+C"}
@@ -15,15 +15,7 @@ exports.LUA_LANGUAGE_SERVER_DISABLES = void 0;
15
15
  * ```
16
16
  */
17
17
  exports.LUA_LANGUAGE_SERVER_DISABLES = `
18
- ---@diagnostic disable: assign-type-mismatch
19
- ---@diagnostic disable: deprecated
20
- ---@diagnostic disable: lowercase-global
21
- ---@diagnostic disable: need-check-nil
22
- ---@diagnostic disable: redefined-local
23
- ---@diagnostic disable: redundant-parameter
24
- ---@diagnostic disable: unused-function
25
- ---@diagnostic disable: unused-local
26
- ---@diagnostic disable: unused-vararg
18
+ ---@diagnostic disable
27
19
  `
28
20
  .trim()
29
21
  .concat("\n\n");
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../packages/isaacscript-cli/src/plugins/constants.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;GAYG;AACU,QAAA,4BAA4B,GAAG;;;;;;;;;;CAU3C;KACE,IAAI,EAAE;KACN,MAAM,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../packages/isaacscript-cli/src/plugins/constants.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;GAYG;AACU,QAAA,4BAA4B,GAAG;;CAE3C;KACE,IAAI,EAAE;KACN,MAAM,CAAC,MAAM,CAAC,CAAC"}
@@ -6,6 +6,8 @@ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  const path_1 = tslib_1.__importDefault(require("path"));
7
7
  const constants_1 = require("./constants");
8
8
  const file = tslib_1.__importStar(require("./file"));
9
+ /** We don't check "node_modules" because we might be cloning a fresh IsaacScript project. */
10
+ const SUBDIRECTORIES_TO_CHECK = ["src", "mod"];
9
11
  // Validate that we are in a directory that looks like an IsaacScript project.
10
12
  function validateInIsaacScriptProject(verbose) {
11
13
  const filesToCheck = [constants_1.PACKAGE_JSON];
@@ -15,8 +17,7 @@ function validateInIsaacScriptProject(verbose) {
15
17
  errorNotExists(fileName, true);
16
18
  }
17
19
  }
18
- const subdirectoriesToCheck = ["src", "mod", "node_modules"];
19
- for (const subdirectoryName of subdirectoriesToCheck) {
20
+ for (const subdirectoryName of SUBDIRECTORIES_TO_CHECK) {
20
21
  const subdirectoryPath = path_1.default.join(constants_1.CWD, subdirectoryName);
21
22
  if (!file.exists(subdirectoryPath, verbose) ||
22
23
  !file.isDir(subdirectoryPath, verbose)) {
@@ -1 +1 @@
1
- {"version":3,"file":"validateInIsaacScriptProject.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/validateInIsaacScriptProject.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,wDAAwB;AACxB,2CAA8D;AAC9D,qDAA+B;AAE/B,8EAA8E;AAC9E,SAAgB,4BAA4B,CAAC,OAAgB;IAC3D,MAAM,YAAY,GAAG,CAAC,wBAAY,CAAC,CAAC;IACpC,KAAK,MAAM,QAAQ,IAAI,YAAY,EAAE;QACnC,MAAM,QAAQ,GAAG,cAAI,CAAC,IAAI,CAAC,eAAG,EAAE,QAAQ,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE;YACtE,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;SAChC;KACF;IAED,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;IAC7D,KAAK,MAAM,gBAAgB,IAAI,qBAAqB,EAAE;QACpD,MAAM,gBAAgB,GAAG,cAAI,CAAC,IAAI,CAAC,eAAG,EAAE,gBAAgB,CAAC,CAAC;QAC1D,IACE,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,OAAO,CAAC;YACvC,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,OAAO,CAAC,EACtC;YACA,cAAc,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;SACzC;KACF;AACH,CAAC;AAnBD,oEAmBC;AAED,SAAS,cAAc,CAAC,OAAe,EAAE,MAAe;IACtD,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC;IAC9C,OAAO,CAAC,KAAK,CACX,eAAK,CAAC,GAAG,CACP,yDAAyD,wBAAY,2BAA2B,OAAO,KAAK,IAAI,SAAS,CAC1H,CACF,CAAC;IACF,OAAO,CAAC,KAAK,CACX,gCAAgC,wBAAY,kBAAkB,eAAK,CAAC,KAAK,CACvE,sBAAsB,CACvB,IAAI,CACN,CAAC;IACF,OAAO,CAAC,KAAK,CACX,2DAA2D,wBAAY,WAAW,CACnF,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC"}
1
+ {"version":3,"file":"validateInIsaacScriptProject.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/validateInIsaacScriptProject.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,wDAAwB;AACxB,2CAA8D;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