pg-mvc-service 2.0.26 → 2.0.27

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.
@@ -56,7 +56,7 @@ const runCron = (dir, logCallback) => __awaiter(void 0, void 0, void 0, function
56
56
  continue;
57
57
  }
58
58
  const filePath = path_1.default.join(dir, file);
59
- const module = yield Promise.resolve(`${`./${filePath.replace('src/', '').replace('.ts', '')}`}`).then(s => __importStar(require(s)));
59
+ const module = yield Promise.resolve(`${filePath}`).then(s => __importStar(require(s)));
60
60
  const cronClass = module.default;
61
61
  const cronInstance = new cronClass();
62
62
  cron.schedule(cronInstance.CronSchedule, () => __awaiter(void 0, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.0.26",
3
+ "version": "2.0.27",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {
@@ -11,7 +11,7 @@ export const runCron = async (dir: string, logCallback?: (ex: Error) => Promise<
11
11
  }
12
12
 
13
13
  const filePath = path.join(dir, file);
14
- const module = await import(`./${filePath.replace('src/', '').replace('.ts', '')}`);
14
+ const module = await import(filePath);
15
15
  const cronClass = module.default;
16
16
  const cronInstance: BaseCron = new cronClass();
17
17