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.
- package/dist/commands/init/createProject.js +1 -1
- package/dist/commands/monitor/monitor.js +2 -2
- package/dist/main.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
|
@@ -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
|
|
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
|
}
|
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
|
|
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
|
|
120
|
+
console.log("Successfully reinstalled dependencies from npm.");
|
|
121
121
|
break;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -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.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
|
|
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",
|
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
|
+
}
|