@galacean/cli 2.0.0-alpha.2 → 2.0.0-alpha.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.
@@ -97680,10 +97680,7 @@ var init_schema5 = __esm({
97680
97680
  message: "colliderType \u4E0E componentType \u4E0D\u4E00\u81F4"
97681
97681
  });
97682
97682
  }
97683
- }).transform(({ colliderType, componentType, ...rest }) => ({
97684
- ...rest,
97685
- componentType: componentType ?? colliderType ?? "StaticCollider"
97686
- })).describe("\u6DFB\u52A0\u78B0\u649E\u5668\u7EC4\u4EF6\u7684\u53C2\u6570");
97683
+ }).describe("\u6DFB\u52A0\u78B0\u649E\u5668\u7EC4\u4EF6\u7684\u53C2\u6570");
97687
97684
  colliderUpdateInputSchema = external_exports.object({
97688
97685
  entityId: external_exports.string().describe("\u76EE\u6807\u5B9E\u4F53 ID"),
97689
97686
  componentType: colliderComponentTypeEnum.optional().describe("\u78B0\u649E\u5668\u7EC4\u4EF6\u7C7B\u578B\uFF08\u7528\u4E8E\u5B9A\u4F4D\u7EC4\u4EF6\uFF09"),
@@ -97974,7 +97971,7 @@ var init_collider_add = __esm({
97974
97971
  if (!entityModel) {
97975
97972
  throw new EditorAPIError("ENTITY_NOT_FOUND", params.entityId);
97976
97973
  }
97977
- const componentType = params.componentType ?? "StaticCollider";
97974
+ const componentType = params.componentType ?? params.colliderType ?? "StaticCollider";
97978
97975
  const shapeType = params.shapeType;
97979
97976
  const existingComp = ctx.query.findComponent(params.entityId, componentType);
97980
97977
  let existingShapes = [];
@@ -157274,7 +157271,7 @@ function readCliVersionFromPackageJson() {
157274
157271
  const parsed = JSON.parse(raw);
157275
157272
  return typeof parsed.version === "string" && parsed.version.length > 0 ? parsed.version : "0.0.0";
157276
157273
  }
157277
- var CLI_VERSION = "2.0.0-alpha.2".length > 0 ? "2.0.0-alpha.2" : readCliVersionFromPackageJson();
157274
+ var CLI_VERSION = "2.0.0-alpha.3".length > 0 ? "2.0.0-alpha.3" : readCliVersionFromPackageJson();
157278
157275
 
157279
157276
  // src/cli.ts
157280
157277
  init_config();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/cli",
3
- "version": "2.0.0-alpha.2",
3
+ "version": "2.0.0-alpha.3",
4
4
  "main": "dist/cli.bundle.cjs",
5
5
  "bin": {
6
6
  "galacean": "bin/galacean.js"