amxxpack 1.4.6 → 1.4.7
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/lib/builder/builder.js
CHANGED
|
@@ -515,28 +515,26 @@ var AmxxBuilder = /** @class */ (function () {
|
|
|
515
515
|
dest: pluginDest,
|
|
516
516
|
compiler: executablePath
|
|
517
517
|
};
|
|
518
|
-
_d = [[
|
|
518
|
+
_d = [__spreadArray([
|
|
519
519
|
path_1.default.join(this.projectConfig.compiler.dir, 'include')
|
|
520
|
-
]];
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
return [4 /*yield*/, globule_1.default.find(this.projectConfig.input.include)];
|
|
525
|
-
case 6: return [4 /*yield*/, _c.apply(void 0, [(_f.includeDir = __spreadArray.apply(void 0, _e.concat([_g.sent(), true])),
|
|
520
|
+
], this.projectConfig.include, true)];
|
|
521
|
+
_e = lodash_1.map;
|
|
522
|
+
return [4 /*yield*/, globule_1.default.find((0, lodash_1.map)(this.projectConfig.input.include, function (dir) { return path_1.default.join(dir, '**/'); }))];
|
|
523
|
+
case 5: return [4 /*yield*/, _c.apply(void 0, [(_f.includeDir = __spreadArray.apply(void 0, _d.concat([_e.apply(void 0, [_g.sent(), function (dir) { return path_1.default.resolve(dir); }]), true])),
|
|
526
524
|
_f)])];
|
|
527
|
-
case
|
|
525
|
+
case 6:
|
|
528
526
|
result = _g.sent();
|
|
529
|
-
if (!!compileOptions.noCache) return [3 /*break*/,
|
|
530
|
-
if (!!result.error) return [3 /*break*/,
|
|
527
|
+
if (!!compileOptions.noCache) return [3 /*break*/, 10];
|
|
528
|
+
if (!!result.error) return [3 /*break*/, 8];
|
|
531
529
|
return [4 /*yield*/, this.pluginCache.updatePlugin(srcPath, pluginDest)];
|
|
532
|
-
case
|
|
530
|
+
case 7:
|
|
533
531
|
_g.sent();
|
|
534
|
-
return [3 /*break*/,
|
|
535
|
-
case
|
|
536
|
-
case
|
|
532
|
+
return [3 /*break*/, 10];
|
|
533
|
+
case 8: return [4 /*yield*/, this.pluginCache.deletePlugin(srcPath)];
|
|
534
|
+
case 9:
|
|
537
535
|
_g.sent();
|
|
538
|
-
_g.label =
|
|
539
|
-
case
|
|
536
|
+
_g.label = 10;
|
|
537
|
+
case 10:
|
|
540
538
|
result.output.messages.forEach(function (message) {
|
|
541
539
|
var startLine = message.startLine, type = message.type, code = message.code, text = message.text, filename = message.filename;
|
|
542
540
|
var relativeFilePath = filename ? path_1.default.relative(process.cwd(), filename) : relateiveSrcPath;
|
package/lib/builder/constants.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ASSETS_PATH_PATTERN = exports.INCLUDE_PATH_PATTERN = exports.SCRIPTS_PATH_PATTERN = void 0;
|
|
4
4
|
exports.SCRIPTS_PATH_PATTERN = '**/*.sma';
|
|
5
|
-
exports.INCLUDE_PATH_PATTERN = '
|
|
5
|
+
exports.INCLUDE_PATH_PATTERN = '**/*.inc';
|
|
6
6
|
exports.ASSETS_PATH_PATTERN = '**/*.*';
|
package/lib/cli/controller.js
CHANGED
|
@@ -251,6 +251,7 @@ var Controller = /** @class */ (function () {
|
|
|
251
251
|
fs_1.default.promises.rm(config_1.default.cacheFile);
|
|
252
252
|
}
|
|
253
253
|
fs_1.default.promises.rm(config_1.default.downloadDir, { recursive: true, force: true });
|
|
254
|
+
logger_1.default.info("🧹 Cache cleaned!");
|
|
254
255
|
return [2 /*return*/];
|
|
255
256
|
});
|
|
256
257
|
});
|