@galacean/cli 2.0.0-alpha.18 → 2.0.0-alpha.19
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/dist/cli.bundle.cjs +11 -2
- package/package.json +6 -6
package/dist/cli.bundle.cjs
CHANGED
|
@@ -91902,7 +91902,7 @@ function assetIdToVirtualPath(state, assetId) {
|
|
|
91902
91902
|
return dir + asset3.name;
|
|
91903
91903
|
}
|
|
91904
91904
|
function serializeSceneEntity(entity, state) {
|
|
91905
|
-
if (entity.isClone
|
|
91905
|
+
if (entity.isClone !== false && entity.instance?.assetId && state) {
|
|
91906
91906
|
const assetUrl = assetIdToVirtualPath(state, entity.instance.assetId);
|
|
91907
91907
|
if (assetUrl) {
|
|
91908
91908
|
const mods = buildPrefabInstanceTransformModifications(entity.transform, entity.modifications ?? []);
|
|
@@ -339179,6 +339179,14 @@ var init_EntityCommands = __esm({
|
|
|
339179
339179
|
});
|
|
339180
339180
|
changes.isLocked = props.isLocked;
|
|
339181
339181
|
}
|
|
339182
|
+
if (props.isClone !== void 0 && props.isClone !== entity.isClone) {
|
|
339183
|
+
ops2.push({
|
|
339184
|
+
op: entity.isClone === void 0 ? "add" : "replace",
|
|
339185
|
+
path: `/entities/${encodedEntityId}/isClone`,
|
|
339186
|
+
value: props.isClone
|
|
339187
|
+
});
|
|
339188
|
+
changes.isClone = props.isClone;
|
|
339189
|
+
}
|
|
339182
339190
|
if (props.instance !== void 0) {
|
|
339183
339191
|
if (props.instance === null && entity.instance !== void 0) {
|
|
339184
339192
|
ops2.push({ op: "remove", path: `/entities/${encodedEntityId}/instance` });
|
|
@@ -348275,6 +348283,7 @@ var init_HeadlessAssetProxy = __esm({
|
|
|
348275
348283
|
const existing = this.store.domainStore.state.entities[newRootId];
|
|
348276
348284
|
if (existing && !existing.instance) {
|
|
348277
348285
|
this.store.root.entityFacade.updateEntity(newRootId, {
|
|
348286
|
+
isClone: true,
|
|
348278
348287
|
instance: {
|
|
348279
348288
|
bindingId: "",
|
|
348280
348289
|
assetId: this.asset.id,
|
|
@@ -581544,7 +581553,7 @@ function readCliVersionFromPackageJson() {
|
|
|
581544
581553
|
const parsed = JSON.parse(raw);
|
|
581545
581554
|
return typeof parsed.version === "string" && parsed.version.length > 0 ? parsed.version : "0.0.0";
|
|
581546
581555
|
}
|
|
581547
|
-
var CLI_VERSION = "2.0.0-alpha.
|
|
581556
|
+
var CLI_VERSION = "2.0.0-alpha.19".length > 0 ? "2.0.0-alpha.19" : readCliVersionFromPackageJson();
|
|
581548
581557
|
|
|
581549
581558
|
// src/cli.ts
|
|
581550
581559
|
init_config();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/cli",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.19",
|
|
4
4
|
"main": "dist/cli.bundle.cjs",
|
|
5
5
|
"bin": {
|
|
6
6
|
"galacean": "bin/galacean.js"
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"@gltf-transform/extensions": "^4.1.0",
|
|
30
30
|
"@types/node": "^22.10.2",
|
|
31
31
|
"vitest": "^3.1.0",
|
|
32
|
-
"@editor/builder": "1.0.0",
|
|
33
32
|
"@editor/ai": "^1.0.0",
|
|
34
33
|
"@editor/asset-bundle-utils": "1.0.0",
|
|
34
|
+
"@editor/cli-viewport": "0.0.0",
|
|
35
35
|
"@editor/constants": "2.0.3",
|
|
36
|
-
"@editor/
|
|
37
|
-
"@editor/storage": "0.0.1",
|
|
36
|
+
"@editor/builder": "1.0.0",
|
|
38
37
|
"@editor/editor-api": "1.0.0",
|
|
38
|
+
"@editor/model": "2.0.3",
|
|
39
39
|
"@editor/vfs": "1.0.0",
|
|
40
|
-
"@
|
|
40
|
+
"@editor/storage": "0.0.1",
|
|
41
41
|
"@galacean/tools-ktx2-encoder": "1.5.0-alpha.0",
|
|
42
|
-
"@
|
|
42
|
+
"@galacean/tools-color-dilation": "1.5.0-alpha.0",
|
|
43
43
|
"tsconfig": "1.0.1",
|
|
44
44
|
"config": "1.0.1"
|
|
45
45
|
},
|