isaacscript 3.17.9 → 3.18.1

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.
@@ -17,7 +17,7 @@ export async function createProject(projectName, authorName, projectPath, create
17
17
  copyDynamicFiles(projectName, authorName, projectPath, packageManager, dev, typeScript);
18
18
  upgradeYarn(projectPath, packageManager, verbose);
19
19
  // There is no package manager lock files yet, so we have to pass "false" to this function.
20
- await updatePackageJSON(projectPath, false);
20
+ await updatePackageJSON(projectPath, false, true);
21
21
  installNodeModules(projectPath, skipInstall, packageManager, verbose);
22
22
  formatFiles(projectPath, packageManager, verbose);
23
23
  // Only make the initial commit once all of the files have been copied and formatted.
@@ -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
  }
package/dist/main.js CHANGED
@@ -111,13 +111,13 @@ async function handleCommands(command, args) {
111
111
  const hasNewDependencies = await updatePackageJSON(CWD);
112
112
  const msg = hasNewDependencies
113
113
  ? "Successfully installed new Node.js dependencies."
114
- : "There were no new Node.js dependency updates.";
114
+ : "There were no new dependency updates from npm.";
115
115
  console.log(msg);
116
116
  break;
117
117
  }
118
118
  case "nuke": {
119
119
  nukeDependencies(CWD);
120
- console.log("Successfully reinstalled Node.js dependencies.");
120
+ console.log("Successfully reinstalled dependencies from npm.");
121
121
  break;
122
122
  }
123
123
  }
@@ -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": {
@@ -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,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.9",
3
+ "version": "3.18.1",
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.2.0",
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
+ }