@axium/server 0.7.2 → 0.7.3

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.
Files changed (2) hide show
  1. package/dist/config.js +2 -2
  2. package/package.json +1 -1
package/dist/config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-unsafe-assignment */
2
2
  import { levelText } from 'logzen';
3
3
  import { readFileSync, writeFileSync } from 'node:fs';
4
- import { dirname, join } from 'node:path/posix';
4
+ import { dirname, join, resolve } from 'node:path/posix';
5
5
  import { deepAssign } from 'utilium';
6
6
  import * as z from 'zod';
7
7
  import { findDir, logger, output } from './io.js';
@@ -102,7 +102,7 @@ export async function loadConfig(path, options = {}) {
102
102
  for (const include of file.include ?? [])
103
103
  await loadConfig(join(dirname(path), include), { optional: true });
104
104
  for (const plugin of file.plugins ?? [])
105
- await loadPlugin(plugin);
105
+ await loadPlugin(plugin.startsWith('.') ? resolve(dirname(path), plugin) : plugin);
106
106
  }
107
107
  export async function loadDefaultConfigs() {
108
108
  await loadConfig(findConfigPath(true), { optional: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/server",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
5
5
  "funding": {
6
6
  "type": "individual",