isaacscript 3.17.9 → 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.
- package/dist/commands/monitor/monitor.js +2 -2
- package/file-templates/dynamic/package.mod.json +1 -1
- package/file-templates/dynamic/src/main-dev.ts +1 -3
- package/file-templates/static/scripts/tsconfig.json +2 -0
- package/file-templates/static-ts/tsconfig.json +2 -0
- package/package.json +2 -2
- package/plugins/tsconfig.json +2 -0
- package/schemas/tsconfig-isaacscript-schema.json +5 -1
- package/schemas/tsconfig-strict-schema.json +17 -0
|
@@ -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
|
|
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
|
|
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
|
}
|
|
@@ -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.
|
|
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.
|
|
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",
|
package/plugins/tsconfig.json
CHANGED
|
@@ -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
|
+
}
|