Skip to content

Commit

Permalink
fix: linter issue with typescript-eslint 8.18
Browse files Browse the repository at this point in the history
  • Loading branch information
fpaul-1A committed Dec 18, 2024
1 parent 8de7221 commit acb451a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@o3r/core/builders/lib-build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
const libBuildOptions = ['target', 'skipJasmineFixtureWorkaround'];

export default createBuilder<LibraryBuilderSchema>(createBuilderWithMetricsIfInstalled(async (options, context): Promise<BuilderOutput> => {
const specifiedRoot = context.target?.project && (await context.getProjectMetadata(context.target.project)).root?.toString();
const specifiedRoot = context.target?.project && (await context.getProjectMetadata(context.target.project)).root as string;
const ROOT_PATH = specifiedRoot ? path.resolve(context.workspaceRoot, specifiedRoot) : context.currentDirectory;
const SRC_PATH = path.resolve(ROOT_PATH, 'src');
const SRC_PACKAGE_JSON = path.resolve(SRC_PATH, 'package.json');
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/builders/run-script/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import type {
export default createBuilder<RunScriptBuilderSchema>(createBuilderWithMetricsIfInstalled(async (options, context): Promise<BuilderOutput> => {
context.reportRunning();
context.reportProgress(1, 1, `Running ${options.script} !!!`);
const specifiedRoot = context.target?.project && (await context.getProjectMetadata(context.target.project)).root?.toString();
const specifiedRoot = context.target?.project && (await context.getProjectMetadata(context.target.project)).root as string;
const projectRoot = specifiedRoot ? resolve(context.workspaceRoot, specifiedRoot) : context.currentDirectory;

const angularJsonPath = join(context.workspaceRoot, 'angular.json');
Expand Down

0 comments on commit acb451a

Please sign in to comment.