Skip to content

Commit

Permalink
chore(compass-preferences-model): split preferences and schema defini…
Browse files Browse the repository at this point in the history
…tions (#5367)

chore: split preferences and schema definitions
  • Loading branch information
himanshusinghs authored Jan 22, 2024
1 parent 6e609c5 commit b57a0d0
Show file tree
Hide file tree
Showing 10 changed files with 909 additions and 889 deletions.
6 changes: 4 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions packages/compass-preferences-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
"@mongodb-js/compass-user-data": "^0.1.14",
"@mongodb-js/compass-logging": "^1.2.11",
"@mongodb-js/compass-user-data": "^0.1.14",
"bson": "^6.2.0",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"yargs-parser": "^21.1.1"
"yargs-parser": "^21.1.1",
"zod": "^3.22.3"
},
"devDependencies": {
"@mongodb-js/compass-user-data": "^0.1.14",
Expand Down
6 changes: 3 additions & 3 deletions packages/compass-preferences-model/src/global-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import yaml from 'js-yaml';
import type { Options as YargsOptions } from 'yargs-parser';
import yargsParser from 'yargs-parser';
import { kebabCase } from 'lodash';
import type { AllPreferences } from './preferences';
import { allPreferencesProps } from './preferences';
import type { z } from '@mongodb-js/compass-user-data';
import type { AllPreferences } from './preferences-schema';
import { allPreferencesProps } from './preferences-schema';
import type { z } from 'zod';

import { createLoggerAndTelemetry } from '@mongodb-js/compass-logging';
const { log, mongoLogId } = createLoggerAndTelemetry('COMPASS-PREFERENCES');
Expand Down
8 changes: 4 additions & 4 deletions packages/compass-preferences-model/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export type { THEMES } from './preferences';
export { getSettingDescription } from './preferences';
export type { THEMES } from './preferences-schema';
export { getSettingDescription } from './preferences-schema';
export { featureFlags } from './feature-flags';

import type {
UserPreferences,
UserConfigurablePreferences,
PreferenceStateInformation,
AllPreferences,
Preferences,
} from './preferences';
} from './preferences-schema';
import type { Preferences } from './preferences';
export type {
UserPreferences,
UserConfigurablePreferences,
Expand Down
Loading

0 comments on commit b57a0d0

Please sign in to comment.