@event-chat/micro-dev-config 0.0.5 → 0.0.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.6](https://github.com/cgfeel/zf-micro-app/compare/micro-dev-config@v0.0.5...micro-dev-config@v0.0.6) (2026-07-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * add ts-load ([cccf527](https://github.com/cgfeel/zf-micro-app/commit/cccf527ce3b837d862a9d9da799c7ed14f4bace7))
9
+ * add ts-load ([f8e0c86](https://github.com/cgfeel/zf-micro-app/commit/f8e0c86285a58c5341275beb3f8a9ffdadeeaee9))
10
+
3
11
  ## [0.0.5](https://github.com/cgfeel/zf-micro-app/compare/micro-dev-config@v0.0.4...micro-dev-config@v0.0.5) (2026-07-08)
4
12
 
5
13
 
package/dist/index.js CHANGED
@@ -1,28 +1,28 @@
1
- import serve from "./commands/serve.js";
2
1
  import build from "./commands/build.js";
2
+ import serve from "./commands/serve.js";
3
3
  const args = process.argv.slice(2);
4
4
  const command = args[0];
5
5
  async function main() {
6
6
  switch (command) {
7
- case "serve":
8
- await serve(args.slice(1));
9
- break;
10
7
  case "build":
11
8
  await build(args.slice(1));
12
9
  break;
10
+ case "serve":
11
+ await serve(args.slice(1));
12
+ break;
13
13
  default:
14
14
  console.log(`
15
15
  micro-cli
16
16
 
17
17
  Usage:
18
18
 
19
- micro-cli server
20
19
  micro-cli build
20
+ micro-cli serve
21
21
 
22
22
  Commands:
23
23
 
24
- start Start webpack dev server
25
24
  build Build production bundle
25
+ serve Start webpack dev server
26
26
 
27
27
  `);
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@event-chat/micro-dev-config",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "统一微前端开发环境",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,6 +22,7 @@
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
24
  "prettier": "^3.7.4",
25
+ "ts-loader": "^9.5.1",
25
26
  "typescript": "^5.9.3",
26
27
  "webpack": "^5.91.0",
27
28
  "webpack-cli": "^5.1.4",
package/src/index.ts CHANGED
@@ -1,30 +1,30 @@
1
- import serve from "./commands/serve.ts";
2
1
  import build from "./commands/build.ts";
2
+ import serve from "./commands/serve.ts";
3
3
 
4
4
  const args = process.argv.slice(2);
5
5
  const command = args[0];
6
6
 
7
7
  async function main() {
8
8
  switch(command) {
9
- case "serve":
10
- await serve(args.slice(1));
11
- break;
12
9
  case "build":
13
10
  await build(args.slice(1));
14
11
  break;
12
+ case "serve":
13
+ await serve(args.slice(1));
14
+ break;
15
15
  default:
16
16
  console.log(`
17
17
  micro-cli
18
18
 
19
19
  Usage:
20
20
 
21
- micro-cli server
22
21
  micro-cli build
22
+ micro-cli serve
23
23
 
24
24
  Commands:
25
25
 
26
- start Start webpack dev server
27
26
  build Build production bundle
27
+ serve Start webpack dev server
28
28
 
29
29
  `);
30
30
  }