@xrystal/core 3.7.6 → 3.7.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Yusuf Yasir KAYGUSUZ",
3
3
  "name": "@xrystal/core",
4
- "version": "3.7.6",
4
+ "version": "3.7.7",
5
5
  "description": "Project core for xrystal",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -2,6 +2,7 @@ import SystemService from '../system/index';
2
2
  export default class ConfigsService {
3
3
  private config;
4
4
  protected _systemService: SystemService;
5
+ publicFolderName: string;
5
6
  load: ({ tmp, systemService }: {
6
7
  tmp: any;
7
8
  systemService: SystemService;
@@ -1,14 +1,17 @@
1
+ import path from 'node:path';
1
2
  export default class ConfigsService {
2
3
  config = {};
3
4
  _systemService;
5
+ publicFolderName = 'public';
4
6
  load = ({ tmp, systemService }) => {
5
7
  this._systemService = systemService;
6
8
  const rawConfigs = tmp?.configs || tmp?.configs || {};
7
9
  this.config = {
8
10
  rootFolderPath: rawConfigs.rootFolderPath || 'x',
9
11
  projectName: tmp.project.name,
10
- port: process.env.PORT || rawConfigs.port || 3000,
11
12
  serviceName: rawConfigs.service,
13
+ port: process.env.PORT || rawConfigs.port || 3000,
14
+ systemStaticFolderPath: path.resolve(rawConfigs.rootFolderPath, this.publicFolderName),
12
15
  env: process.env.NODE_ENV,
13
16
  ...rawConfigs
14
17
  };