Skip to content

Commit 8e11fe8

Browse files
akim-mutoakim-muto
akim-muto
authored and
akim-muto
committed
resolving of ui bundle missed path by 1 level flydelabs#120
1 parent affaaa6 commit 8e11fe8

File tree

10 files changed

+24
-23
lines changed

10 files changed

+24
-23
lines changed

examples/custom-macro-nodes/src/Duplicate/Duplicate.flyde.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const node: MacroNode<number> = {
3737
},
3838
editorConfig: {
3939
type: "custom",
40-
editorComponentBundlePath: "../../../dist/Duplicate.js",
40+
editorComponentBundlePath: "../../dist/Duplicate.js",
4141
},
4242
defaultData: 2,
4343
};

examples/custom-macro-nodes/src/InlineValue/InlineValue.flyde.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const node: MacroNode<any> = {
2121
},
2222
editorConfig: {
2323
type: "custom",
24-
editorComponentBundlePath: "../../../dist/InlineValue.js",
24+
editorComponentBundlePath: "../../dist/InlineValue.js",
2525
},
2626
defaultData: "",
2727
};

examples/dad-jokes-cli/src/macro-node-simple/Duplicate.flyde.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const node: MacroNode<number> = {
3737
displayNameBuilder: (times) => `Duplicate x ${times}`,
3838
editorConfig: {
3939
type: "custom",
40-
editorComponentBundlePath: "../../../dist/Duplicate.js",
40+
editorComponentBundlePath: "../../dist/Duplicate.js",
4141
},
4242
defaultData: 2,
4343
};

examples/dad-jokes-cli/src/macro-node-simple/InlineValue.flyde.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const node: MacroNode<any> = {
2121
displayNameBuilder: () => `Emit Value`,
2222
editorConfig: {
2323
type: "custom",
24-
editorComponentBundlePath: "../../../dist/InlineValue.js",
24+
editorComponentBundlePath: "../../dist/InlineValue.js",
2525
},
2626
defaultData: "",
2727
};

resolver/src/resolver/resolve-dependencies/macro-node-to-definition.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export function macroNodeToDefinition<T>(
2323
};
2424
const editorComponentPath = join(
2525
importPath,
26-
macro.editorConfig.editorComponentBundlePath
26+
"..",
27+
macro.editorConfig.editorComponentBundlePath,
2728
);
2829

2930
try {

stdlib/src/ControlFlow/Conditional.flyde.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ export interface ConditionalConfig {
2929
propertyPath: string;
3030
condition: { type: ConditionType; data?: string };
3131
compareTo:
32-
| { mode: "static"; value: any; type: "number" | "string" | "json" }
33-
| { mode: "dynamic"; propertyPath: string };
32+
| { mode: "static"; value: any; type: "number" | "string" | "json" }
33+
| { mode: "dynamic"; propertyPath: string };
3434
trueValue:
35-
| { type: "value" | "compareTo" }
36-
| { type: "expression"; data: string };
35+
| { type: "value" | "compareTo" }
36+
| { type: "expression"; data: string };
3737
falseValue:
38-
| { type: "value" | "compareTo" }
39-
| { type: "expression"; data: string };
38+
| { type: "value" | "compareTo" }
39+
| { type: "expression"; data: string };
4040
}
4141

4242
function conditionalConfigToDisplayName(config: ConditionalConfig) {
@@ -185,7 +185,7 @@ export const Conditional: MacroNode<ConditionalConfig> = {
185185
},
186186
editorConfig: {
187187
type: "custom",
188-
editorComponentBundlePath: "../../../dist/ui/Conditional.js",
188+
editorComponentBundlePath: "../../dist/ui/Conditional.js",
189189
},
190190
};
191191

stdlib/src/ControlFlow/Switch.flyde.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ export interface SwitchConfig {
88
outputExpression: string;
99
}[];
1010
defaultCase:
11-
| {
12-
enabled: true;
13-
outputExpression: string;
14-
}
15-
| {
16-
enabled: false;
17-
};
11+
| {
12+
enabled: true;
13+
outputExpression: string;
14+
}
15+
| {
16+
enabled: false;
17+
};
1818
}
1919

2020
export const Switch: MacroNode<SwitchConfig> = {
@@ -108,6 +108,6 @@ export const Switch: MacroNode<SwitchConfig> = {
108108
},
109109
editorConfig: {
110110
type: "custom",
111-
editorComponentBundlePath: "../../../dist/ui/Switch.js",
111+
editorComponentBundlePath: "../../dist/ui/Switch.js",
112112
},
113113
};

stdlib/src/Lists/Collect/Collect.flyde.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,6 @@ export const Collect: MacroNode<CollectConfig> = {
138138
},
139139
editorConfig: {
140140
type: "custom",
141-
editorComponentBundlePath: "../../../../dist/ui/Collect.js",
141+
editorComponentBundlePath: "../../../dist/ui/Collect.js",
142142
},
143143
};

stdlib/src/Values/CodeExpression.flyde.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ export const CodeExpression: MacroNode<CodeExpressionConfig> = {
4747
},
4848
editorConfig: {
4949
type: "custom",
50-
editorComponentBundlePath: "../../../dist/ui/CodeExpression.js",
50+
editorComponentBundlePath: "../../dist/ui/CodeExpression.js",
5151
},
5252
};

stdlib/src/Values/InlineValue.flyde.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ export const InlineValue: MacroNode<InlineValueConfig> = {
4242
},
4343
editorConfig: {
4444
type: "custom",
45-
editorComponentBundlePath: "../../../dist/ui/InlineValue.js",
45+
editorComponentBundlePath: "../../dist/ui/InlineValue.js",
4646
},
4747
};

0 commit comments

Comments
 (0)