File tree Expand file tree Collapse file tree 10 files changed +24
-23
lines changed
dad-jokes-cli/src/macro-node-simple
resolver/src/resolver/resolve-dependencies Expand file tree Collapse file tree 10 files changed +24
-23
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const node: MacroNode<number> = {
37
37
} ,
38
38
editorConfig : {
39
39
type : "custom" ,
40
- editorComponentBundlePath : "../../../ dist/Duplicate.js" ,
40
+ editorComponentBundlePath : "../../dist/Duplicate.js" ,
41
41
} ,
42
42
defaultData : 2 ,
43
43
} ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const node: MacroNode<any> = {
21
21
} ,
22
22
editorConfig : {
23
23
type : "custom" ,
24
- editorComponentBundlePath : "../../../ dist/InlineValue.js" ,
24
+ editorComponentBundlePath : "../../dist/InlineValue.js" ,
25
25
} ,
26
26
defaultData : "" ,
27
27
} ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const node: MacroNode<number> = {
37
37
displayNameBuilder : ( times ) => `Duplicate x ${ times } ` ,
38
38
editorConfig : {
39
39
type : "custom" ,
40
- editorComponentBundlePath : "../../../ dist/Duplicate.js" ,
40
+ editorComponentBundlePath : "../../dist/Duplicate.js" ,
41
41
} ,
42
42
defaultData : 2 ,
43
43
} ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const node: MacroNode<any> = {
21
21
displayNameBuilder : ( ) => `Emit Value` ,
22
22
editorConfig : {
23
23
type : "custom" ,
24
- editorComponentBundlePath : "../../../ dist/InlineValue.js" ,
24
+ editorComponentBundlePath : "../../dist/InlineValue.js" ,
25
25
} ,
26
26
defaultData : "" ,
27
27
} ;
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ export function macroNodeToDefinition<T>(
23
23
} ;
24
24
const editorComponentPath = join (
25
25
importPath ,
26
- macro . editorConfig . editorComponentBundlePath
26
+ ".." ,
27
+ macro . editorConfig . editorComponentBundlePath ,
27
28
) ;
28
29
29
30
try {
Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ export interface ConditionalConfig {
29
29
propertyPath : string ;
30
30
condition : { type : ConditionType ; data ?: string } ;
31
31
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 } ;
34
34
trueValue :
35
- | { type : "value" | "compareTo" }
36
- | { type : "expression" ; data : string } ;
35
+ | { type : "value" | "compareTo" }
36
+ | { type : "expression" ; data : string } ;
37
37
falseValue :
38
- | { type : "value" | "compareTo" }
39
- | { type : "expression" ; data : string } ;
38
+ | { type : "value" | "compareTo" }
39
+ | { type : "expression" ; data : string } ;
40
40
}
41
41
42
42
function conditionalConfigToDisplayName ( config : ConditionalConfig ) {
@@ -185,7 +185,7 @@ export const Conditional: MacroNode<ConditionalConfig> = {
185
185
} ,
186
186
editorConfig : {
187
187
type : "custom" ,
188
- editorComponentBundlePath : "../../../ dist/ui/Conditional.js" ,
188
+ editorComponentBundlePath : "../../dist/ui/Conditional.js" ,
189
189
} ,
190
190
} ;
191
191
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ export interface SwitchConfig {
8
8
outputExpression : string ;
9
9
} [ ] ;
10
10
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
+ } ;
18
18
}
19
19
20
20
export const Switch : MacroNode < SwitchConfig > = {
@@ -108,6 +108,6 @@ export const Switch: MacroNode<SwitchConfig> = {
108
108
} ,
109
109
editorConfig : {
110
110
type : "custom" ,
111
- editorComponentBundlePath : "../../../ dist/ui/Switch.js" ,
111
+ editorComponentBundlePath : "../../dist/ui/Switch.js" ,
112
112
} ,
113
113
} ;
Original file line number Diff line number Diff line change @@ -138,6 +138,6 @@ export const Collect: MacroNode<CollectConfig> = {
138
138
} ,
139
139
editorConfig : {
140
140
type : "custom" ,
141
- editorComponentBundlePath : "../../../../ dist/ui/Collect.js" ,
141
+ editorComponentBundlePath : "../../../dist/ui/Collect.js" ,
142
142
} ,
143
143
} ;
Original file line number Diff line number Diff line change @@ -47,6 +47,6 @@ export const CodeExpression: MacroNode<CodeExpressionConfig> = {
47
47
} ,
48
48
editorConfig : {
49
49
type : "custom" ,
50
- editorComponentBundlePath : "../../../ dist/ui/CodeExpression.js" ,
50
+ editorComponentBundlePath : "../../dist/ui/CodeExpression.js" ,
51
51
} ,
52
52
} ;
Original file line number Diff line number Diff line change @@ -42,6 +42,6 @@ export const InlineValue: MacroNode<InlineValueConfig> = {
42
42
} ,
43
43
editorConfig : {
44
44
type : "custom" ,
45
- editorComponentBundlePath : "../../../ dist/ui/InlineValue.js" ,
45
+ editorComponentBundlePath : "../../dist/ui/InlineValue.js" ,
46
46
} ,
47
47
} ;
You can’t perform that action at this time.
0 commit comments