Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
Signed-off-by: Kashish Mittal <[email protected]>
  • Loading branch information
04kash committed Oct 23, 2024
1 parent 83e0fca commit 81d704a
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { createWorkspace } from '../../lib/workspaces/createWorkspace';
import { ExitCodeError } from '../../lib/errors';
import { promisify } from 'util';
import { execFile } from 'child_process';
import semver from 'semver';

const replace = require('replace-in-file');

Expand Down Expand Up @@ -123,12 +122,12 @@ const fixSourceCodeReferences = async (options: {
for (const pkg of options.packagesToBeMoved) {
const oldConfigPath = path.join(
options.workspacePath,
pkg.packageJson.repository.directory,
(pkg.packageJson as any).repository?.directory,
'app-config.janus-idp.yaml',
);
const newConfigPath = path.join(
options.workspacePath,
pkg.packageJson.repository.directory,
(pkg.packageJson as any).repository?.directory,
'app-config.yaml',
);

Expand All @@ -147,7 +146,7 @@ const fixSourceCodeReferences = async (options: {
// Update janus references in catalog-info.yaml
const catalogInfoPath = path.join(
options.workspacePath,
pkg.packageJson.repository.directory,
(pkg.packageJson as any).repository?.directory,
'catalog-info.yaml',
);

Expand All @@ -164,7 +163,7 @@ const fixSourceCodeReferences = async (options: {
// Update janus references in .prettierrc.js
const prettierConfigPath = path.join(
options.workspacePath,
pkg.packageJson.repository.directory,
(pkg.packageJson as any).repository?.directory,
'.prettierrc.js',
);

Expand Down

0 comments on commit 81d704a

Please sign in to comment.