diff --git a/programs/cli/cli.ts b/programs/cli/cli.ts index ab99ec96..4762dc5c 100755 --- a/programs/cli/cli.ts +++ b/programs/cli/cli.ts @@ -15,14 +15,17 @@ import { extensionStart, type StartOptions, extensionBuild, - type BuildOptions - // extensionPreview + type BuildOptions, + // extensionPreview, + type FileConfig } from 'extension-develop' import * as messages from './cli-lib/messages' import type {BrowsersSupported} from './types' import checkUpdates from './check-updates' import packageJson from './package.json' +export {type FileConfig} + // Before all, check for updates. checkUpdates(packageJson) diff --git a/programs/develop/plugin-browsers/run-firefox/firefox/create-profile.ts b/programs/develop/plugin-browsers/run-firefox/firefox/create-profile.ts index 624737f3..9b0b72ab 100644 --- a/programs/develop/plugin-browsers/run-firefox/firefox/create-profile.ts +++ b/programs/develop/plugin-browsers/run-firefox/firefox/create-profile.ts @@ -82,15 +82,15 @@ export function createUserDataDir( const preferences = firefoxMasterPreferences - const userPreferences = JSON.stringify({...preferences, ...configPreferences}) + const userPreferences = {...preferences, ...configPreferences} if (fs.existsSync(dataDir)) { - profile = getProfile(browser, dataDir, preferences || {}) + profile = getProfile(browser, dataDir, userPreferences) } else { addProgressBar(messages.creatingUserProfile(browser), () => {}) fs.mkdirSync(dataDir, {recursive: true}) - profile = createProfile(dataDir, preferences || {}) + profile = createProfile(dataDir, userPreferences) } return profile