isaacscript 2.0.9 → 2.0.10
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "A command line tool for managing Isaac mods written in TypeScript",
|
|
5
5
|
"homepage": "https://isaacscript.github.io/",
|
|
6
6
|
"bugs": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@types/source-map-support": "^0.5.4",
|
|
52
52
|
"@types/update-notifier": "^5.1.0",
|
|
53
53
|
"@types/yargs": "^17.0.10",
|
|
54
|
-
"isaacscript-lint": "^1.0.
|
|
54
|
+
"isaacscript-lint": "^1.0.159",
|
|
55
55
|
"isaacscript-spell": "^1.0.3"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -34,10 +34,12 @@ const path_1 = __importDefault(require("path"));
|
|
|
34
34
|
const constants_1 = require("../../constants");
|
|
35
35
|
const file = __importStar(require("../../file"));
|
|
36
36
|
const utils_1 = require("../../utils");
|
|
37
|
+
const constants_2 = require("./constants");
|
|
37
38
|
const copyWatcherMod_1 = require("./copyWatcherMod");
|
|
38
39
|
const notifyGame = __importStar(require("./notifyGame"));
|
|
39
40
|
const spawnSaveDatWriter_1 = require("./spawnSaveDatWriter");
|
|
40
41
|
const touchWatcherSaveDatFiles_1 = require("./touchWatcherSaveDatFiles");
|
|
42
|
+
let compilationStartTime = new Date();
|
|
41
43
|
function monitor(argv, config) {
|
|
42
44
|
const verbose = argv["verbose"] === true;
|
|
43
45
|
// If they specified some command-line flags, override the values found in the config file.
|
|
@@ -115,11 +117,15 @@ function spawnTSTLWatcher() {
|
|
|
115
117
|
notifyGame.msg(newMsg);
|
|
116
118
|
}
|
|
117
119
|
else if (msg.includes("File change detected. Starting incremental compilation...")) {
|
|
120
|
+
compilationStartTime = new Date();
|
|
118
121
|
const newMsg = "TypeScript change detected. Compiling...";
|
|
119
122
|
notifyGame.msg(newMsg);
|
|
120
123
|
}
|
|
121
124
|
else if (msg.includes("Found 0 errors. Watching for file changes.")) {
|
|
122
|
-
const
|
|
125
|
+
const compilationFinishTime = new Date();
|
|
126
|
+
const elapsedTimeMilliseconds = compilationFinishTime.getTime() - compilationStartTime.getTime();
|
|
127
|
+
const elapsedTimeSeconds = elapsedTimeMilliseconds / 1000;
|
|
128
|
+
const newMsg = `${constants_2.COMPILATION_SUCCESSFUL} (in ${elapsedTimeSeconds} seconds)`;
|
|
123
129
|
notifyGame.msg(newMsg);
|
|
124
130
|
}
|
|
125
131
|
else {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ping = exports.command = exports.msg = void 0;
|
|
7
7
|
const chalk_1 = __importDefault(require("chalk"));
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
|
+
const constants_1 = require("./constants");
|
|
9
10
|
const spawnSaveDatWriter_1 = require("./spawnSaveDatWriter");
|
|
10
11
|
function msg(data) {
|
|
11
12
|
const formattedData = data
|
|
@@ -34,7 +35,7 @@ function msg(data) {
|
|
|
34
35
|
exports.msg = msg;
|
|
35
36
|
function printMsgToStandardOut(data) {
|
|
36
37
|
let coloredData = data;
|
|
37
|
-
if (data.
|
|
38
|
+
if (data.includes(constants_1.COMPILATION_SUCCESSFUL) !== null) {
|
|
38
39
|
coloredData = chalk_1.default.green(data);
|
|
39
40
|
}
|
|
40
41
|
else if (data.match(/error/g) !== null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "A command line tool for managing Isaac mods written in TypeScript",
|
|
5
5
|
"homepage": "https://isaacscript.github.io/",
|
|
6
6
|
"bugs": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@types/source-map-support": "^0.5.4",
|
|
52
52
|
"@types/update-notifier": "^5.1.0",
|
|
53
53
|
"@types/yargs": "^17.0.10",
|
|
54
|
-
"isaacscript-lint": "^1.0.
|
|
54
|
+
"isaacscript-lint": "^1.0.159",
|
|
55
55
|
"isaacscript-spell": "^1.0.3"
|
|
56
56
|
}
|
|
57
57
|
}
|