mbler 0.2.4-rc.4 → 0.2.4-rc.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/README.md CHANGED
@@ -2,11 +2,12 @@
2
2
 
3
3
  ### 介绍
4
4
 
5
- 一个Minecraft Addon的开发工具,功能包括
6
- - MCX DSL
7
- - Manfiest Generator
8
- - Bundle
9
- - Component build
5
+ 一个基于Rooldown的Minecraft Addon的开发工具,功能包括
6
+
7
+ - MCX DSL
8
+ - Manfiest Generator
9
+ - Bundle
10
+ - Component build
10
11
 
11
12
  ### 安装
12
13
 
@@ -15,7 +16,7 @@
15
16
  - Node.js 与 npm
16
17
  - Git
17
18
  - npm
18
- `npm install -g mbler`
19
+ `npm install -g mbler`
19
20
  安装成功后,你可以直接使用:
20
21
 
21
22
  ```bash
@@ -29,7 +30,7 @@ mbler -v
29
30
  mbler init
30
31
  ```
31
32
 
32
- ** 详细请看 : [文档](https://mbler-docs.ruanhor.dpdns.org/) **
33
+ 详细请看 : [文档](https://mbler-docs.ruanhor.dpdns.org/)
33
34
 
34
35
  ### 发布平台
35
36
 
@@ -37,4 +38,4 @@ mbler init
37
38
 
38
39
  ## 文档
39
40
 
40
- [中文](https://zh-mbler-docs.ruanhor.dpdns.org/) | [英文](https://mbler-docs.ruanhor.dpdns.org/)
41
+ [中文](https://zh-mbler-docs.ruanhor.dpdns.org/) | [English](./README_en.md) | [한국어](./README_ko.md) | [日本語](./README_ja.md)
package/client.d.ts ADDED
@@ -0,0 +1,17 @@
1
+ import type * as mcx from '@mbler/mcx-core'
2
+
3
+ declare module '*.png' {
4
+ export default mcx.PNGImageComponent
5
+ }
6
+ declare module '*.svg' {
7
+ export default mcx.SVGImageComponent
8
+ }
9
+ declare module '*.jpg' {
10
+ export default mcx.JPGImageComponent
11
+ }
12
+ declare module '*.jpeg' {
13
+ export default mcx.JPGImageComponent
14
+ }
15
+ declare module '*.gif' {
16
+ export default mcx.GIFImageComponent
17
+ }
package/dist/build.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as typescript from 'typescript';
2
2
  import { watch as watch$1 } from 'chokidar';
3
- import * as rollup from 'rollup';
4
- import { Plugin } from 'rollup';
3
+ import { Plugin, RolldownWatcher } from 'rolldown';
5
4
  import { LanguagePlugin } from '@volar/language-core';
6
5
 
7
6
  interface MblerConfigScript {
@@ -17,7 +16,7 @@ interface MblerConfigOutdir {
17
16
  }
18
17
  interface MblerBuildConfig {
19
18
  rollupPlugins: Plugin[];
20
- cache: "none" | "memory" | "file" | "filesystem" | "auto";
19
+ cache: 'none' | 'memory' | 'file' | 'filesystem' | 'auto';
21
20
  bundle: boolean;
22
21
  onEnd: (ctx: MblerConfigData) => void | Promise<void>;
23
22
  onStart: (ctx: MblerConfigData) => void | Promise<void>;
@@ -78,7 +77,7 @@ declare class Build {
78
77
  * Can be safely called even before `watch()` has been invoked.
79
78
  */
80
79
  getWatchers(): {
81
- rollup: rollup.RollupWatcher;
80
+ rollup: RolldownWatcher;
82
81
  chokidar: ReturnType<typeof watch$1>;
83
82
  } | null;
84
83
  /**