Skip to content

Commit

Permalink
Fix wrong component versions after major update
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenEschauzier committed Sep 11, 2023
1 parent 7e4f802 commit 67cd5e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/jbr/lib/task/ExperimentLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type { Experiment } from '../experiment/Experiment';
import type { ExperimentHandler } from '../experiment/ExperimentHandler';
import type { HookHandler } from '../hook/HookHandler';
import type { IExperimentPaths } from './ITaskContext';
const pJson = require('../../package.json');

/**
* Loads and instantiates an experiment by config.
Expand All @@ -22,8 +23,8 @@ export class ExperimentLoader {
public static readonly COMBINATIONS_NAME = 'jbr-combinations.json';
public static readonly PACKAGEJSON_NAME = 'package.json';
public static readonly PREPAREDMARKER_PATH = [ 'generated', '.prepared' ];
public static readonly IRI_EXPERIMENT_HANDLER = `https://linkedsoftwaredependencies.org/bundles/npm/jbr/^2.0.0/components/experiment/ExperimentHandler.jsonld#ExperimentHandler`;
public static readonly IRI_HOOK_HANDLER = `https://linkedsoftwaredependencies.org/bundles/npm/jbr/^2.0.0/components/hook/HookHandler.jsonld#HookHandler`;
public static readonly IRI_EXPERIMENT_HANDLER = `https://linkedsoftwaredependencies.org/bundles/npm/jbr/^${pJson.version}/components/experiment/ExperimentHandler.jsonld#ExperimentHandler`;
public static readonly IRI_HOOK_HANDLER = `https://linkedsoftwaredependencies.org/bundles/npm/jbr/^${pJson.version}/components/hook/HookHandler.jsonld#HookHandler`;

private readonly componentsManager: ComponentsManager<any>;

Expand Down

0 comments on commit 67cd5e5

Please sign in to comment.