Skip to content

Commit

Permalink
fix(ci): avoid literal as const package exports due to etl error
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Nov 5, 2024
1 parent 49310e8 commit 3c0d251
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/sanity/src/core/releases/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import {type LocaleResourceBundle} from '../../i18n'
*
* @public
*/
export const releasesLocaleNamespace = 'releases' as const
// api extractor take issues with 'as const' for literals
// eslint-disable-next-line @typescript-eslint/prefer-as-const
export const releasesLocaleNamespace: 'releases' = 'releases'

/**
* The default locale release for the releases tool, which is US English.
Expand Down
8 changes: 6 additions & 2 deletions packages/sanity/src/core/releases/store/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export const RELEASE_DOCUMENT_TYPE = 'system.release' as const
// api extractor take issues with 'as const' for literals
// eslint-disable-next-line @typescript-eslint/prefer-as-const
export const RELEASE_DOCUMENT_TYPE: 'system.release' = 'system.release'
export const RELEASE_DOCUMENTS_PATH = '_.releases'

export const RELEASE_METADATA_TMP_DOC_TYPE = 'system-tmp.release' as const
// api extractor take issues with 'as const' for literals
// eslint-disable-next-line @typescript-eslint/prefer-as-const
export const RELEASE_METADATA_TMP_DOC_TYPE: 'system-tmp.release' = 'system-tmp.release'
export const RELEASE_METADATA_TMP_DOC_PATH = 'system-tmp-releases'

0 comments on commit 3c0d251

Please sign in to comment.