Skip to content

Commit

Permalink
fix: export
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed Oct 26, 2022
1 parent 919e7bd commit a4238ac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .changeset/smart-ants-wash.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
'@commercetools-frontend/mc-scripts': patch
---

Sanitize SVG icon only when comparing diffs, as the icon is sanitized in the API. Expose the `sanitizeSvg` logic from the `@commercetools-frontend/application-config/ssr` entry point.
Sanitize SVG icon only when comparing diffs, as the icon is sanitized in the API. Expose the `sanitizeSvg` logic from the `@commercetools-frontend/application-config`.
1 change: 1 addition & 0 deletions packages/application-config/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export { default as processConfig } from './process-config';
export { getConfigPath } from './load-config';
export { default as sanitizeSvg } from './sanitize-svg';
export * from './constants';
export * from './errors';
export * from './types';
1 change: 0 additions & 1 deletion packages/application-config/src/ssr.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './formatters';
export { default as sanitizeSvg } from './sanitize-svg';
6 changes: 4 additions & 2 deletions packages/mc-scripts/src/utils/get-config-diff.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import chalk from 'chalk';
import type { CustomApplicationData } from '@commercetools-frontend/application-config';
import { sanitizeSvg } from '@commercetools-frontend/application-config/ssr';
import {
sanitizeSvg,
type CustomApplicationData,
} from '@commercetools-frontend/application-config';

// Since not all terminal supports colors, to make things more consistent for testing purposes,
// during tests the color used is appended before the string instead of coloring it.
Expand Down

0 comments on commit a4238ac

Please sign in to comment.