diff --git a/projectBundler/projectBundler.go b/projectBundler/projectBundler.go index 46eda38..cd5982c 100644 --- a/projectBundler/projectBundler.go +++ b/projectBundler/projectBundler.go @@ -187,8 +187,9 @@ func (*KindeProject[TWorkflowSettings, TPageSettings]) readProjectConfiguration( func (kw *KindeWorkflow[TSettings]) bundleAndIntrospect(ctx context.Context) { workflowBuilder := bundler.NewWorkflowBundler(bundler.BundlerOptions[TSettings]{ - WorkingFolder: kw.WorkflowRootDirectory, - EntryPoints: kw.EntryPoints, + WorkingFolder: kw.WorkflowRootDirectory, + EntryPoints: kw.EntryPoints, + IntrospectionExport: "workflowSettings", }) bundlerResult := workflowBuilder.Bundle(ctx) kw.Bundle = bundlerResult @@ -196,8 +197,9 @@ func (kw *KindeWorkflow[TSettings]) bundleAndIntrospect(ctx context.Context) { func (kw *KindePage[TSettings]) bundleAndIntrospect(ctx context.Context) { workflowBuilder := bundler.NewWorkflowBundler(bundler.BundlerOptions[TSettings]{ - WorkingFolder: kw.RootDirectory, - EntryPoints: kw.EntryPoints, + WorkingFolder: kw.RootDirectory, + EntryPoints: kw.EntryPoints, + IntrospectionExport: "pageSettings", }) bundlerResult := workflowBuilder.Bundle(ctx) kw.Bundle = bundlerResult diff --git a/workflowBundler/workflowBundler.go b/workflowBundler/workflowBundler.go index 70b456f..d9d128d 100644 --- a/workflowBundler/workflowBundler.go +++ b/workflowBundler/workflowBundler.go @@ -50,9 +50,6 @@ type ( ) func NewWorkflowBundler[TSettings any](options BundlerOptions[TSettings]) WorkflowBundler[TSettings] { - if options.IntrospectionExport == "" { - options.IntrospectionExport = "workflowSettings" - } return &builder[TSettings]{ bundleOptions: options, } diff --git a/workflowBundler/workflowBundler_test.go b/workflowBundler/workflowBundler_test.go index 84f804e..d333020 100644 --- a/workflowBundler/workflowBundler_test.go +++ b/workflowBundler/workflowBundler_test.go @@ -21,8 +21,9 @@ func Test_WorkflowBundler(t *testing.T) { pluginSetupWasCalled := false workflowBuilder := NewWorkflowBundler[workflowSettings](BundlerOptions[workflowSettings]{ - WorkingFolder: workflowPath, - EntryPoints: []string{"tokensWorkflow.ts"}, + WorkingFolder: workflowPath, + EntryPoints: []string{"tokensWorkflow.ts"}, + IntrospectionExport: "workflowSettings", OnDiscovered: func(bundle *BundlerResult[workflowSettings]) { bundle.Errors = append(bundle.Errors, "ID is required") },