isaacscript 4.0.1 → 4.2.0

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.
@@ -39,12 +39,10 @@ jobs:
39
39
  #discord:
40
40
  # name: Discord Failure Notification
41
41
  # needs: [build, lint]
42
- # if: always() # This is needed to always run this job, even if the other jobs fail.
42
+ # if: failure()
43
43
  # runs-on: ubuntu-latest
44
44
  # steps:
45
- # - uses: technote-space/workflow-conclusion-action@v3
46
- # - if: env.WORKFLOW_CONCLUSION != 'success' && env.WORKFLOW_CONCLUSION != 'cancelled'
47
- # uses: sarisia/actions-status-discord@v1
45
+ # - uses: sarisia/actions-status-discord@v1
48
46
  # with:
49
47
  # webhook: ${{ secrets.DISCORD_WEBHOOK }}
50
48
  # status: ${{ env.WORKFLOW_CONCLUSION }}
@@ -1,9 +1,7 @@
1
1
  import { $, $s, commandExists, lintScript } from "isaacscript-common-node";
2
2
 
3
3
  await lintScript(async () => {
4
- const promises: Array<Promise<unknown>> = [];
5
-
6
- promises.push(
4
+ const promises = [
7
5
  // Use Prettier to check formatting.
8
6
  // - "--log-level=warn" makes it only output errors.
9
7
  $`prettier --log-level=warn --check .`,
@@ -25,7 +23,7 @@ await lintScript(async () => {
25
23
 
26
24
  // Check for unused CSpell words.
27
25
  $`cspell-check-unused-words`,
28
- );
26
+ ];
29
27
 
30
28
  if (commandExists("python")) {
31
29
  $s`pip install isaac-xml-validator --upgrade --quiet`;
@@ -1,9 +1,7 @@
1
1
  import { $, lintScript } from "isaacscript-common-node";
2
2
 
3
3
  await lintScript(async () => {
4
- const promises: Array<Promise<unknown>> = [];
5
-
6
- promises.push(
4
+ const promises = [
7
5
  // Use Prettier to check formatting.
8
6
  // - "--log-level=warn" makes it only output errors.
9
7
  $`prettier --log-level=warn --check .`,
@@ -24,7 +22,7 @@ await lintScript(async () => {
24
22
 
25
23
  // Check for unused CSpell words.
26
24
  $`cspell-check-unused-words`,
27
- );
25
+ ];
28
26
 
29
27
  await Promise.all(promises);
30
28
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript",
3
- "version": "4.0.1",
3
+ "version": "4.2.0",
4
4
  "description": "A command line tool for managing Isaac mods written in TypeScript.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -49,7 +49,7 @@
49
49
  "chalk": "^5.3.0",
50
50
  "commander": "^12.0.0",
51
51
  "figlet": "^1.7.0",
52
- "isaacscript-common-node": "^3.0.0",
52
+ "isaacscript-common-node": "^3.0.1",
53
53
  "isaacscript-common-ts": "^16.1.0",
54
54
  "jsonc-parser": "^3.2.1",
55
55
  "klaw-sync": "^6.0.0",