isaacscript 3.4.5 → 3.4.7
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.
|
@@ -31,7 +31,7 @@ CSPELL_CONFIG_TEMP_PATH="/tmp/cspell-temp.json"
|
|
|
31
31
|
mv "$CSPELL_CONFIG_PATH" "$CSPELL_CONFIG_TEMP_PATH"
|
|
32
32
|
echo "$CSPELL_CONFIG_WITHOUT_WORDS" > "$CSPELL_CONFIG_PATH"
|
|
33
33
|
MISSPELLED_WORDS_PATH="/tmp/misspelled-words.txt"
|
|
34
|
-
npx cspell
|
|
34
|
+
npx cspell --no-progress --no-summary --unique --words-only . | sort --ignore-case --unique > "$MISSPELLED_WORDS_PATH"
|
|
35
35
|
mv "$CSPELL_CONFIG_TEMP_PATH" "$CSPELL_CONFIG_PATH"
|
|
36
36
|
|
|
37
37
|
# Check that each "cspell.json" word is actually being used.
|
|
@@ -15,7 +15,7 @@ npx prettier --check .
|
|
|
15
15
|
|
|
16
16
|
# Step 2 - Use ESLint to lint the TypeScript.
|
|
17
17
|
# We use "--max-warnings" so that any warnings will fail in CI.
|
|
18
|
-
npx eslint --max-warnings 0
|
|
18
|
+
npx eslint --max-warnings 0 .
|
|
19
19
|
|
|
20
20
|
# Step 3 - Check for unused imports.
|
|
21
21
|
# The "--error" flag makes it return an error code of 1 if unused exports are found.
|
|
@@ -31,7 +31,7 @@ fi
|
|
|
31
31
|
|
|
32
32
|
# Step 5 - Spell check every file using CSpell.
|
|
33
33
|
# We use "--no-progress" and "--no-summary" because we want to only output errors.
|
|
34
|
-
npx cspell --no-progress --no-summary
|
|
34
|
+
npx cspell --no-progress --no-summary .
|
|
35
35
|
|
|
36
36
|
# Step 6 - Check for orphaned words.
|
|
37
37
|
bash "$DIR/check-orphaned-words.sh"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.7",
|
|
4
4
|
"description": "A command line tool for managing Isaac mods written in TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"isaacscript-tsconfig": "^3.0.2",
|
|
38
38
|
"jsonc-parser": "^3.2.0",
|
|
39
39
|
"moment": "^2.29.4",
|
|
40
|
-
"npm-check-updates": "^16.6.
|
|
40
|
+
"npm-check-updates": "^16.6.3",
|
|
41
41
|
"prompt": "^1.3.0",
|
|
42
42
|
"source-map": "^0.7.4",
|
|
43
43
|
"source-map-support": "^0.5.21",
|
|
44
44
|
"sync-directory": "^5.1.9",
|
|
45
45
|
"touch": "^3.1.0",
|
|
46
46
|
"tslib": "^2.4.1",
|
|
47
|
-
"typescript-to-lua": "^1.12.
|
|
47
|
+
"typescript-to-lua": "^1.12.1",
|
|
48
48
|
"update-notifier": "5.1.0",
|
|
49
49
|
"xml2js": "^0.4.23",
|
|
50
50
|
"yaml": "^2.2.1",
|
|
@@ -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,QA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