isaacscript 3.17.8 → 3.18.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.
@@ -111,7 +111,7 @@ function validatePackageJSONNormalDependencies(packageJSON, args) {
111
111
  if (!dependenciesArray.includes(dependency)) {
112
112
  const packageManager = getPackageManagerUsedForExistingProject(args);
113
113
  const addCommand = getPackageManagerAddCommand(packageManager, dependency);
114
- fatalError(`${chalk.red(`IsaacScript projects require a dependency of "${dependency}" in the "${PACKAGE_JSON}" file. You can add it with the following command:`)} ${chalk.green(addCommand)}`);
114
+ fatalError(`${chalk.red(`IsaacScript projects require a "dependencies" of "${dependency}" in the "${PACKAGE_JSON}" file. You can add it with the following command:`)} ${chalk.green(addCommand)}`);
115
115
  }
116
116
  }
117
117
  }
@@ -122,7 +122,7 @@ function validatePackageJSONDevDependencies(packageJSON, args) {
122
122
  if (!devDependenciesArray.includes(devDependency)) {
123
123
  const packageManager = getPackageManagerUsedForExistingProject(args);
124
124
  const addDevCommand = getPackageManagerAddDevCommand(packageManager, devDependency);
125
- fatalError(`${chalk.red(`IsaacScript projects require a development dependency of "${devDependency}" in the "${PACKAGE_JSON}" file. You can add it with the following command:`)} ${chalk.green(addDevCommand)}`);
125
+ fatalError(`${chalk.red(`IsaacScript projects require a "devDependencies" of "${devDependency}" in the "${PACKAGE_JSON}" file. You can add it with the following command:`)} ${chalk.green(addDevCommand)}`);
126
126
  }
127
127
  }
128
128
  }
@@ -9,8 +9,8 @@
9
9
  "build": "tstl",
10
10
  "lint": "tsx ./scripts/lint.ts",
11
11
  "nuke": "isaacscript nuke",
12
- "start": "isaacscript monitor",
13
12
  "publish": "isaacscript publish",
13
+ "start": "isaacscript monitor",
14
14
  "update": "isaacscript update"
15
15
  },
16
16
  "dependencies": {
@@ -26,6 +26,7 @@
26
26
  "devDependencies": {
27
27
  "@types/node": "^0.0.1",
28
28
  "isaacscript": "^0.0.1",
29
+ "isaacscript-common-node": "^0.0.1",
29
30
  "isaacscript-lint": "^0.0.1",
30
31
  "isaacscript-tsconfig": "^0.0.1",
31
32
  "tsx": "^0.0.1",
@@ -9,9 +9,7 @@ import {
9
9
 
10
10
  const MOD_NAME = "test-mod";
11
11
 
12
- main();
13
-
14
- function main() {
12
+ export function main() {
15
13
  const modVanilla = RegisterMod(MOD_NAME, 1);
16
14
  const features = [
17
15
  ISCFeature.FADE_IN_REMOVER,
@@ -1,5 +1,7 @@
1
1
  // A TypeScript configuration file, used by project scripts.
2
2
  {
3
+ "$schema": "https://raw.githubusercontent.com/IsaacScript/isaacscript/main/packages/isaacscript-cli/schemas/tsconfig-strict-schema.json",
4
+
3
5
  // We extend the IsaacScript config for Node.js:
4
6
  // https://github.com/IsaacScript/isaacscript/blob/main/packages/isaacscript-tsconfig/tsconfig.node.json
5
7
  "extends": "isaacscript-tsconfig/tsconfig.node.json",
@@ -1,3 +1,5 @@
1
1
  main();
2
2
 
3
- function main() {}
3
+ function main() {
4
+ console.log("Hello world.");
5
+ }
@@ -1,5 +1,7 @@
1
1
  // The configuration file for TypeScript.
2
2
  {
3
+ "$schema": "https://raw.githubusercontent.com/IsaacScript/isaacscript/main/packages/isaacscript-cli/schemas/tsconfig-strict-schema.json",
4
+
3
5
  // We extend the IsaacScript config for Node.js:
4
6
  // https://github.com/IsaacScript/isaacscript/blob/main/packages/isaacscript-tsconfig/tsconfig.node.json
5
7
  "extends": "isaacscript-tsconfig/tsconfig.node.json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript",
3
- "version": "3.17.8",
3
+ "version": "3.18.0",
4
4
  "description": "A command line tool for managing Isaac mods written in TypeScript.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -48,7 +48,7 @@
48
48
  "chalk": "^5.3.0",
49
49
  "command-exists": "^1.2.9",
50
50
  "figlet": "^1.7.0",
51
- "isaacscript-common-node": "^1.0.8",
51
+ "isaacscript-common-node": "^1.1.1",
52
52
  "isaacscript-common-ts": "^11.3.1",
53
53
  "jsonc-parser": "^3.2.0",
54
54
  "klaw-sync": "^6.0.0",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "$schema": "https://raw.githubusercontent.com/IsaacScript/isaacscript/main/packages/isaacscript-cli/schemas/tsconfig-strict-schema.json",
3
+
2
4
  "extends": "../../isaacscript-tsconfig/tsconfig.node.json",
3
5
 
4
6
  "compilerOptions": {
@@ -8,6 +8,9 @@
8
8
  }
9
9
  ],
10
10
  "properties": {
11
+ "$schema": {
12
+ "type": "string"
13
+ },
11
14
  "isaacscript": {
12
15
  "allOf": [
13
16
  {
@@ -16,5 +19,6 @@
16
19
  ]
17
20
  }
18
21
  },
19
- "allowTrailingCommas": true
22
+ "allowTrailingCommas": true,
23
+ "unevaluatedProperties": false
20
24
  }
@@ -0,0 +1,17 @@
1
+ {
2
+ "title": "tsconfig.json with IsaacScript",
3
+ "description": "JSON schema for the TypeScript compiler's configuration file. Unlike the one that is built-in to VSCode, this one does not allow additional properties.",
4
+ "$schema": "http://json-schema.org/draft-07/schema",
5
+ "allOf": [
6
+ {
7
+ "$ref": "https://json.schemastore.org/tsconfig"
8
+ }
9
+ ],
10
+ "properties": {
11
+ "$schema": {
12
+ "type": "string"
13
+ }
14
+ },
15
+ "allowTrailingCommas": true,
16
+ "unevaluatedProperties": false
17
+ }