fix: removed really necessary locations (#312)

* fix: removed really necessary locations

* fix: use 'base' instead of 'output'
This commit is contained in:
JustEvil 2024-12-24 22:45:22 -06:00 committed by GitHub
parent db63352dea
commit a74452d0a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -434,14 +434,13 @@ export class BaseClient {
const locationsFullPaths: RC['locations'] = {
base: locations.base,
output: locations.output,
};
for (const i in locations) {
const key = i as keyof typeof locations;
const location = locations[key];
if (key in locationsFullPaths) continue;
if (typeof location === 'string') locationsFullPaths[key] = join(process.cwd(), locations.output, location);
if (typeof location === 'string') locationsFullPaths[key] = join(process.cwd(), locations.base, location);
else locationsFullPaths[key] = location as any;
}
@ -521,10 +520,8 @@ export interface StartOptions {
interface RCLocations extends ExtendedRCLocations {
base: string;
output: string;
commands?: string;
langs?: string;
templates?: string;
events?: string;
components?: string;
}