Skip to content

Commit

Permalink
fix: linter issue with typescript-eslint 8.18 (#2619)
Browse files Browse the repository at this point in the history
## Proposed change

<!--
Please include a summary of the changes and the related issue.
Please also include relevant motivation and context.
-->

## Related issues

<!--
Please make sure to follow the [contribution
guidelines](https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md)
-->

*- No issue associated -*

<!-- * 🐛 Fix #issue -->
<!-- * 🐛 Fix resolves #issue -->
<!-- * 🚀 Feature #issue -->
<!-- * 🚀 Feature resolves #issue -->
<!-- * :octocat: Pull Request #issue -->
  • Loading branch information
fpaul-1A authored Dec 18, 2024
2 parents 5edde0f + acb451a commit b131702
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 b131702

Please sign in to comment.