isaacscript 3.6.53 → 3.6.55
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/file-templates/dynamic/package.mod.json +1 -1
- package/file-templates/static-mod/.vscode/settings.json +1 -0
- package/file-templates/static-mod/lint.sh +3 -2
- package/file-templates/static-ts/.vscode/settings.json +1 -0
- package/package.json +1 -1
- package/src/isaacScriptCommonTS.js +4 -9
- package/src/isaacScriptCommonTS.js.map +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"description": "A mod for The Binding of Isaac: Repentance.",
|
|
5
5
|
"keywords": ["isaac", "mod", "rebirth", "afterbirth", "repentance"],
|
|
6
6
|
"license": "GPL-3.0",
|
|
7
|
-
"type": "
|
|
7
|
+
"type": "module",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"isaac-typescript-definitions": "^0.0.1",
|
|
10
10
|
"isaacscript": "^0.0.1",
|
|
@@ -18,8 +18,9 @@ npx prettier --log-level=warn --check .
|
|
|
18
18
|
# "--max-warnings 0" makes warnings fail in CI, since we set all ESLint errors to warnings.
|
|
19
19
|
npx eslint --max-warnings 0 .
|
|
20
20
|
|
|
21
|
-
# Check for unused
|
|
22
|
-
|
|
21
|
+
# Check for unused exports.
|
|
22
|
+
# "--error" makes it return an error code of 1 if unused exports are found.
|
|
23
|
+
npx ts-prune --error
|
|
23
24
|
|
|
24
25
|
# Use `isaac-xml-validator` to validate XML files.
|
|
25
26
|
# (Skip this step if Python is not currently installed for whatever reason.)
|
package/package.json
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// The functions here are copied from `isaacscript-common-ts` because
|
|
3
|
-
//
|
|
4
|
-
// so that the library can be consumed from both CommonJS and ESM projects, but `tsconfig-paths`
|
|
5
|
-
// makes it always seem to consume the ESM version.) Furthermore, using `tsconfig-paths` makes live
|
|
6
|
-
// debugging more difficult.
|
|
2
|
+
// The functions here are copied from `isaacscript-common-ts` because this package uses CommonJS
|
|
3
|
+
// instead of ESM. Furthermore, using `tsconfig-paths` makes live debugging more difficult.
|
|
7
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
5
|
exports.repeat = exports.removeLinesMatching = exports.removeLinesBetweenMarkers = exports.parseSemanticVersion = exports.parseIntSafe = exports.isRecord = exports.isKebabCase = exports.hasWhiteSpace = exports.getEnumValues = exports.fatalError = exports.ReadonlySet = void 0;
|
|
9
6
|
/** An alias for the `Set` constructor that returns a read-only set. */
|
|
10
7
|
exports.ReadonlySet = Set;
|
|
11
8
|
/** From: https://github.com/expandjs/expandjs/blob/master/lib/kebabCaseRegex.js */
|
|
12
|
-
const KEBAB_CASE_REGEX =
|
|
13
|
-
// eslint-disable-next-line prefer-named-capture-group
|
|
14
|
-
/^([a-z](?!\d)|\d(?![a-z]))+(-?([a-z](?!\d)|\d(?![a-z])))*$|^$/;
|
|
9
|
+
const KEBAB_CASE_REGEX = /^([a-z](?!\d)|\d(?![a-z]))+(-?([a-z](?!\d)|\d(?![a-z])))*$|^$/;
|
|
15
10
|
/**
|
|
16
11
|
* Helper function to print out an error message and then exit the program.
|
|
17
12
|
*
|
|
@@ -19,7 +14,7 @@ const KEBAB_CASE_REGEX =
|
|
|
19
14
|
*/
|
|
20
15
|
function fatalError(...args) {
|
|
21
16
|
console.error(...args);
|
|
22
|
-
|
|
17
|
+
process.exit(1);
|
|
23
18
|
}
|
|
24
19
|
exports.fatalError = fatalError;
|
|
25
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isaacScriptCommonTS.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/isaacScriptCommonTS.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"isaacScriptCommonTS.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/isaacScriptCommonTS.ts"],"names":[],"mappings":";AAAA,gGAAgG;AAChG,2FAA2F;;;AAsC3F,uEAAuE;AAC1D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