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.
@@ -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
- return [4 /*yield*/, globule_1.default.find(this.projectConfig.include)];
522
- case 5:
523
- _e = [__spreadArray.apply(void 0, _d.concat([_g.sent(), true]))];
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 7:
525
+ case 6:
528
526
  result = _g.sent();
529
- if (!!compileOptions.noCache) return [3 /*break*/, 11];
530
- if (!!result.error) return [3 /*break*/, 9];
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 8:
530
+ case 7:
533
531
  _g.sent();
534
- return [3 /*break*/, 11];
535
- case 9: return [4 /*yield*/, this.pluginCache.deletePlugin(srcPath)];
536
- case 10:
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 = 11;
539
- case 11:
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;
@@ -1,3 +1,3 @@
1
1
  export declare const SCRIPTS_PATH_PATTERN = "**/*.sma";
2
- export declare const INCLUDE_PATH_PATTERN = "*.inc";
2
+ export declare const INCLUDE_PATH_PATTERN = "**/*.inc";
3
3
  export declare const ASSETS_PATH_PATTERN = "**/*.*";
@@ -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 = '*.inc';
5
+ exports.INCLUDE_PATH_PATTERN = '**/*.inc';
6
6
  exports.ASSETS_PATH_PATTERN = '**/*.*';
@@ -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
  });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "amxxpack",
3
3
  "description": "AMXXPack",
4
4
  "author": "Hedgehog Fog",
5
- "version": "1.4.6",
5
+ "version": "1.4.7",
6
6
  "license": "MIT",
7
7
  "main": "lib/builder/index.js",
8
8
  "types": "lib/builder/index.d.ts",