Skip to content

Commit 723d1ae

Browse files
authored
fix: convert URL to path before doing path ops (#1290)
1 parent d2bc54a commit 723d1ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/utils/convertBehavior.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ import { isString } from '@salesforce/ts-types';
2424
export type ComponentSetAndPackageDirPath = { packageDirPath: string; cs: ComponentSet };
2525

2626
// TODO: there could be a cleaner way to read this
27-
const PRESET_DIR = fileURLToPath(
28-
join(import.meta.resolve('@salesforce/source-deploy-retrieve'), '..', 'registry', 'presets')
27+
const PRESET_DIR = join(
28+
fileURLToPath(import.meta.resolve('@salesforce/source-deploy-retrieve')),
29+
'..',
30+
'registry',
31+
'presets'
2932
);
3033
export const PRESETS_PROP = 'sourceBehaviorOptions';
3134
export const PRESET_CHOICES = [...presetMap.keys()];

0 commit comments

Comments
 (0)