isaacscript 1.2.13 → 1.2.16
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/.prettierrc.js +5 -0
- package/.vscode/settings.json +10 -5
- package/dist/package.json +5 -5
- package/file-templates/dynamic/metadata.xml +5 -3
- package/file-templates/static/.prettierrc.js +5 -0
- package/file-templates/static/.vscode/settings.json +10 -5
- package/file-templates/static/lint.sh +2 -1
- package/isaacscript-watcher/metadata.xml +2 -2
- package/package.json +5 -5
package/.prettierrc.js
CHANGED
|
@@ -12,4 +12,9 @@ module.exports = {
|
|
|
12
12
|
// Prettier will change the default in the future:
|
|
13
13
|
// https://github.com/prettier/prettier/issues/9369
|
|
14
14
|
trailingComma: "all",
|
|
15
|
+
|
|
16
|
+
// https://github.com/prettier/plugin-xml#configuration
|
|
17
|
+
// The default is "struct"
|
|
18
|
+
// However, whitespace cannot be reformatted unless this is set to "ignore"
|
|
19
|
+
xmlWhitespaceSensitivity: "ignore",
|
|
15
20
|
};
|
package/.vscode/settings.json
CHANGED
|
@@ -31,21 +31,26 @@
|
|
|
31
31
|
"javascript.suggest.completeFunctionCalls": true,
|
|
32
32
|
"typescript.suggest.completeFunctionCalls": true,
|
|
33
33
|
|
|
34
|
-
// Automatically run the formatter when
|
|
34
|
+
// Automatically run the formatter when certain files are saved
|
|
35
35
|
"[javascript]": {
|
|
36
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
37
|
-
"editor.formatOnSave": true,
|
|
38
36
|
"editor.codeActionsOnSave": [
|
|
39
37
|
"source.fixAll.eslint",
|
|
40
38
|
],
|
|
39
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
40
|
+
"editor.formatOnSave": true,
|
|
41
41
|
"editor.tabSize": 2,
|
|
42
42
|
},
|
|
43
43
|
"[typescript]": {
|
|
44
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
45
|
-
"editor.formatOnSave": true,
|
|
46
44
|
"editor.codeActionsOnSave": [
|
|
47
45
|
"source.fixAll.eslint",
|
|
48
46
|
],
|
|
47
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
48
|
+
"editor.formatOnSave": true,
|
|
49
|
+
"editor.tabSize": 2,
|
|
50
|
+
},
|
|
51
|
+
"[xml]": {
|
|
52
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
53
|
+
"editor.formatOnSave": true,
|
|
49
54
|
"editor.tabSize": 2,
|
|
50
55
|
},
|
|
51
56
|
}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.16",
|
|
4
4
|
"description": "A command line tool for managing Isaac mods written in TypeScript",
|
|
5
5
|
"homepage": "https://isaacscript.github.io/",
|
|
6
6
|
"bugs": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"isaacscript": "./dist/src/main.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@zamiell/typescript-to-lua": "^1.4.
|
|
19
|
+
"@zamiell/typescript-to-lua": "^1.4.2",
|
|
20
20
|
"chalk": "4.1.2",
|
|
21
21
|
"command-exists": "^1.2.9",
|
|
22
22
|
"dotenv": "^16.0.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"isaacscript-tsconfig": "^1.1.8",
|
|
26
26
|
"jsonc-parser": "^3.0.0",
|
|
27
27
|
"moment": "^2.29.1",
|
|
28
|
-
"npm-check-updates": "^12.5.
|
|
28
|
+
"npm-check-updates": "^12.5.2",
|
|
29
29
|
"prompt": "^1.2.2",
|
|
30
30
|
"source-map": "^0.7.3",
|
|
31
31
|
"source-map-support": "^0.5.21",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@types/prompt": "^1.1.2",
|
|
44
44
|
"@types/source-map-support": "^0.5.4",
|
|
45
45
|
"@types/update-notifier": "^5.1.0",
|
|
46
|
-
"@types/yargs": "^17.0.
|
|
47
|
-
"isaacscript-lint": "^1.0.
|
|
46
|
+
"@types/yargs": "^17.0.9",
|
|
47
|
+
"isaacscript-lint": "^1.0.87"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
|
2
2
|
<metadata>
|
|
3
3
|
<name>MOD_NAME_TO_REPLACE</name>
|
|
4
4
|
<directory>MOD_NAME_TO_REPLACE</directory>
|
|
5
|
-
<description>
|
|
5
|
+
<description>
|
|
6
|
+
MOD_NAME_TO_REPLACE is a currently a work in progress.
|
|
7
|
+
</description>
|
|
6
8
|
<version>1.0</version>
|
|
7
|
-
<visibility/>
|
|
9
|
+
<visibility />
|
|
8
10
|
</metadata>
|
|
@@ -12,4 +12,9 @@ module.exports = {
|
|
|
12
12
|
// Prettier will change the default in the future:
|
|
13
13
|
// https://github.com/prettier/prettier/issues/9369
|
|
14
14
|
trailingComma: "all",
|
|
15
|
+
|
|
16
|
+
// https://github.com/prettier/plugin-xml#configuration
|
|
17
|
+
// The default is "struct"
|
|
18
|
+
// However, whitespace cannot be reformatted unless this is set to "ignore"
|
|
19
|
+
xmlWhitespaceSensitivity: "ignore",
|
|
15
20
|
};
|
|
@@ -33,21 +33,26 @@
|
|
|
33
33
|
"javascript.suggest.completeFunctionCalls": true,
|
|
34
34
|
"typescript.suggest.completeFunctionCalls": true,
|
|
35
35
|
|
|
36
|
-
// Automatically run the formatter when
|
|
36
|
+
// Automatically run the formatter when certain files are saved
|
|
37
37
|
"[javascript]": {
|
|
38
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
39
|
-
"editor.formatOnSave": true,
|
|
40
38
|
"editor.codeActionsOnSave": [
|
|
41
39
|
"source.fixAll.eslint",
|
|
42
40
|
],
|
|
41
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
42
|
+
"editor.formatOnSave": true,
|
|
43
43
|
"editor.tabSize": 2,
|
|
44
44
|
},
|
|
45
45
|
"[typescript]": {
|
|
46
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
47
|
-
"editor.formatOnSave": true,
|
|
48
46
|
"editor.codeActionsOnSave": [
|
|
49
47
|
"source.fixAll.eslint",
|
|
50
48
|
],
|
|
49
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
50
|
+
"editor.formatOnSave": true,
|
|
51
|
+
"editor.tabSize": 2,
|
|
52
|
+
},
|
|
53
|
+
"[xml]": {
|
|
54
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
55
|
+
"editor.formatOnSave": true,
|
|
51
56
|
"editor.tabSize": 2,
|
|
52
57
|
},
|
|
53
58
|
}
|
|
@@ -12,6 +12,7 @@ cd "$DIR"
|
|
|
12
12
|
|
|
13
13
|
# Step 1 - Use Prettier to check formatting
|
|
14
14
|
npx prettier --check "src/**/*.ts"
|
|
15
|
+
npx prettier --check "mod/**/*.xml"
|
|
15
16
|
|
|
16
17
|
# Step 2 - Use ESLint to lint the TypeScript
|
|
17
18
|
# Since all ESLint errors are set to warnings,
|
|
@@ -23,7 +24,7 @@ npx eslint --max-warnings 0 src
|
|
|
23
24
|
npx cspell --no-progress --no-summary "src/**/*.ts"
|
|
24
25
|
npx cspell --no-progress --no-summary "mod/metadata.xml"
|
|
25
26
|
|
|
26
|
-
# Step 4 -
|
|
27
|
+
# Step 4 - Use xmllint to lint XML files
|
|
27
28
|
# (and skip this step if xmllint is not currently installed for whatever reason)
|
|
28
29
|
if ! command -v xmllint &> /dev/null; then
|
|
29
30
|
find "$DIR/mod" -name "*.xml" -print0 | xargs -0 xmllint --noout
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.16",
|
|
4
4
|
"description": "A command line tool for managing Isaac mods written in TypeScript",
|
|
5
5
|
"homepage": "https://isaacscript.github.io/",
|
|
6
6
|
"bugs": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"isaacscript": "./dist/src/main.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@zamiell/typescript-to-lua": "^1.4.
|
|
19
|
+
"@zamiell/typescript-to-lua": "^1.4.2",
|
|
20
20
|
"chalk": "4.1.2",
|
|
21
21
|
"command-exists": "^1.2.9",
|
|
22
22
|
"dotenv": "^16.0.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"isaacscript-tsconfig": "^1.1.8",
|
|
26
26
|
"jsonc-parser": "^3.0.0",
|
|
27
27
|
"moment": "^2.29.1",
|
|
28
|
-
"npm-check-updates": "^12.5.
|
|
28
|
+
"npm-check-updates": "^12.5.2",
|
|
29
29
|
"prompt": "^1.2.2",
|
|
30
30
|
"source-map": "^0.7.3",
|
|
31
31
|
"source-map-support": "^0.5.21",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@types/prompt": "^1.1.2",
|
|
44
44
|
"@types/source-map-support": "^0.5.4",
|
|
45
45
|
"@types/update-notifier": "^5.1.0",
|
|
46
|
-
"@types/yargs": "^17.0.
|
|
47
|
-
"isaacscript-lint": "^1.0.
|
|
46
|
+
"@types/yargs": "^17.0.9",
|
|
47
|
+
"isaacscript-lint": "^1.0.87"
|
|
48
48
|
}
|
|
49
49
|
}
|