Skip to content

Commit

Permalink
Update pack.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Sep 17, 2024
1 parent 6cea67f commit 45dc8fc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ts/pack.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
// src/pack.ts

import { Pipeline } from './core/Pipeline';
import { loadConfig } from './config';
import { ConfigLoader } from './core/ConfigLoader'; // Updated import path for ConfigLoader

/**
* The main function initializes the pipeline with the loaded configuration
* and starts the pipeline execution.
*/
async function main() {
try {
// Load the configuration from the YAML file
const config = loadConfig();
// Initialize the ConfigLoader and load the configuration from the YAML file
const configLoader = new ConfigLoader();
const config = configLoader.loadConfig();

// Create a new Pipeline instance with the loaded configuration
const pipeline = new Pipeline(config);
Expand All @@ -28,4 +29,4 @@ async function main() {
// Execute the main function if the script is run directly
if (require.main === module) {
main();
}
}

0 comments on commit 45dc8fc

Please sign in to comment.