@michijs/dev-server 0.8.9 → 0.8.11

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/bin/cli.js CHANGED
@@ -3,7 +3,6 @@ import yargs from "yargs";
3
3
  import { Timer } from "./classes/Timer.js";
4
4
  import { hideBin } from "yargs/helpers";
5
5
  import { packageJson } from "./utils/packageJson.js";
6
- import { config } from "./config/config.js";
7
6
  const version = packageJson.version;
8
7
  export async function cli() {
9
8
  console.log(` ${coloredString(`Running dev server version ${version}.`)}`);
@@ -58,6 +57,7 @@ export async function cli() {
58
57
  : args.dist || args.testTsc
59
58
  ? "DISTRIBUTION"
60
59
  : "DEVELOPMENT");
60
+ const { config } = await import("./config/config.js");
61
61
  const generateAssets = args.generateAssets === ""
62
62
  ? `${config.public.path}/assets/icon.svg`
63
63
  : args.generateAssets;
@@ -38,7 +38,7 @@ function getFullConfig(filePath) {
38
38
  const config = readConfigFile(filePath);
39
39
  if (config.extends) {
40
40
  const parentConfigPath = path.resolve(path.dirname(filePath), config.extends.startsWith("@")
41
- ? `node_modules/${config.extends}`
41
+ ? `node_modules/${config.extends.endsWith(".json") ? config.extends : `${config.extends}.json`}`
42
42
  : config.extends);
43
43
  const parentConfig = getFullConfig(parentConfigPath);
44
44
  return mergeConfigs(parentConfig, config);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@michijs/dev-server",
3
3
  "license": "MIT",
4
- "version": "0.8.9",
4
+ "version": "0.8.11",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/michijs/dev-server.git"
@@ -29,7 +29,7 @@
29
29
  "link": "bunx concurrently bun:dist-w bun:bun-link"
30
30
  },
31
31
  "devDependencies": {
32
- "@michijs/shared-configs": "0.0.26",
32
+ "@michijs/shared-configs": "0.0.30",
33
33
  "@michijs/tsconfig": "0.0.5",
34
34
  "@types/node": "24.3.0",
35
35
  "@types/yargs": "17.0.33",