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 +1 -1
- package/schemas/tsconfig-isaacscript-section-schema.json +4 -0
- package/src/plugins/addIsaacScriptCommentHeader.js +2 -0
- package/src/plugins/addIsaacScriptCommentHeader.js.map +1 -1
- package/src/plugins/constants.js +1 -9
- package/src/plugins/constants.js.map +1 -1
- package/src/validateInIsaacScriptProject.js +3 -2
- package/src/validateInIsaacScriptProject.js.map +1 -1
package/package.json
CHANGED
|
@@ -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
|
|
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"}
|
package/src/plugins/constants.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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,
|
|
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,6FAA6F;AAC7F,MAAM,uBAAuB,GAAG,CAAC,KAAK,EAAE,KAAK,CAAU,CAAC;AAExD,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,KAAK,MAAM,gBAAgB,IAAI,uBAAuB,EAAE;QACtD,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;AAlBD,oEAkBC;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"}
|