Skip to content

Commit

Permalink
prettier: run prettier on the modified generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
Platonn committed Dec 20, 2024
1 parent cbce210 commit ad66885
Show file tree
Hide file tree
Showing 34 changed files with 67 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const asmCustomer360TranslationChunksConfig = extractTranslationChunksConfig(en);
export const asmCustomer360TranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as asmCustomer360TranslationsCs } from './cs/index';
export { de as asmCustomer360TranslationsDe } from './de/index';
Expand Down
3 changes: 2 additions & 1 deletion feature-libs/cart/base/assets/translations/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const cartBaseTranslationChunksConfig = extractTranslationChunksConfig(en);
export const cartBaseTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as cartBaseTranslationsCs } from './cs/index';
export { de as cartBaseTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const importExportTranslationChunksConfig = extractTranslationChunksConfig(en);
export const importExportTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as importExportTranslationsCs } from './cs/index';
export { de as importExportTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const quickOrderTranslationChunksConfig = extractTranslationChunksConfig(en);
export const quickOrderTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as quickOrderTranslationsCs } from './cs/index';
export { de as quickOrderTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const savedCartTranslationChunksConfig = extractTranslationChunksConfig(en);
export const savedCartTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as savedCartTranslationsCs } from './cs/index';
export { de as savedCartTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const wishListTranslationChunksConfig = extractTranslationChunksConfig(en);
export const wishListTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as wishListTranslationsCs } from './cs/index';
export { de as wishListTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const checkoutB2BTranslationChunksConfig = extractTranslationChunksConfig(en);
export const checkoutB2BTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as checkoutB2BTranslationsCs } from './cs/index';
export { de as checkoutB2BTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const checkoutTranslationChunksConfig = extractTranslationChunksConfig(en);
export const checkoutTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as checkoutTranslationsCs } from './cs/index';
export { de as checkoutTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const checkoutScheduledReplenishmentTranslationChunksConfig = extractTranslationChunksConfig(en);
export const checkoutScheduledReplenishmentTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as checkoutScheduledReplenishmentTranslationsCs } from './cs/index';
export { de as checkoutScheduledReplenishmentTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const customerTicketingTranslationChunksConfig = extractTranslationChunksConfig(en);
export const customerTicketingTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as customerTicketingTranslationsCs } from './cs/index';
export { de as customerTicketingTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const estimatedDeliveryDateTranslationChunksConfig = extractTranslationChunksConfig(en);
export const estimatedDeliveryDateTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as estimatedDeliveryDateTranslationsCs } from './cs/index';
export { de as estimatedDeliveryDateTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const accountSummaryTranslationChunksConfig = extractTranslationChunksConfig(en);
export const accountSummaryTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as accountSummaryTranslationsCs } from './cs/index';
export { de as accountSummaryTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const organizationTranslationChunksConfig = extractTranslationChunksConfig(en);
export const organizationTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as organizationTranslationsCs } from './cs/index';
export { de as organizationTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const orderApprovalTranslationChunksConfig = extractTranslationChunksConfig(en);
export const orderApprovalTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as orderApprovalTranslationsCs } from './cs/index';
export { de as orderApprovalTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const unitOrderTranslationChunksConfig = extractTranslationChunksConfig(en);
export const unitOrderTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as unitOrderTranslationsCs } from './cs/index';
export { de as unitOrderTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const organizationUserRegistrationTranslationChunksConfig = extractTranslationChunksConfig(en);
export const organizationUserRegistrationTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as organizationUserRegistrationTranslationsCs } from './cs/index';
export { de as organizationUserRegistrationTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const pdfInvoicesTranslationChunksConfig = extractTranslationChunksConfig(en);
export const pdfInvoicesTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as pdfInvoicesTranslationsCs } from './cs/index';
export { de as pdfInvoicesTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const pickupInStoreTranslationChunksConfig = extractTranslationChunksConfig(en);
export const pickupInStoreTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as pickupInStoreTranslationsCs } from './cs/index';
export { de as pickupInStoreTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const configuratorTranslationChunksConfig = extractTranslationChunksConfig(en);
export const configuratorTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as configuratorTranslationsCs } from './cs/index';
export { de as configuratorTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const multiDimensionalSelectorTranslationChunksConfig = extractTranslationChunksConfig(en);
export const multiDimensionalSelectorTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as multiDimensionalSelectorTranslationsCs } from './cs/index';
export { de as multiDimensionalSelectorTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const bulkPricingTranslationChunksConfig = extractTranslationChunksConfig(en);
export const bulkPricingTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as bulkPricingTranslationsCs } from './cs/index';
export { de as bulkPricingTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const futureStockTranslationChunksConfig = extractTranslationChunksConfig(en);
export const futureStockTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as futureStockTranslationsCs } from './cs/index';
export { de as futureStockTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const productImageZoomTranslationChunksConfig = extractTranslationChunksConfig(en);
export const productImageZoomTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as productImageZoomTranslationsCs } from './cs/index';
export { de as productImageZoomTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const productVariantsTranslationChunksConfig = extractTranslationChunksConfig(en);
export const productVariantsTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as productVariantsTranslationsCs } from './cs/index';
export { de as productVariantsTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const requestedDeliveryDateTranslationChunksConfig = extractTranslationChunksConfig(en);
export const requestedDeliveryDateTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as requestedDeliveryDateTranslationsCs } from './cs/index';
export { de as requestedDeliveryDateTranslationsDe } from './de/index';
Expand Down
3 changes: 2 additions & 1 deletion feature-libs/storefinder/assets/translations/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const storeFinderTranslationChunksConfig = extractTranslationChunksConfig(en);
export const storeFinderTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as storeFinderTranslationsCs } from './cs/index';
export { de as storeFinderTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const userAccountTranslationChunksConfig = extractTranslationChunksConfig(en);
export const userAccountTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as userAccountTranslationsCs } from './cs/index';
export { de as userAccountTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const userProfileTranslationChunksConfig = extractTranslationChunksConfig(en);
export const userProfileTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as userProfileTranslationsCs } from './cs/index';
export { de as userProfileTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const cpqquoteTranslationChunksConfig = extractTranslationChunksConfig(en);
export const cpqquoteTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as cpqquoteTranslationsCs } from './cs/index';
export { de as cpqquoteTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const epdVisualizationTranslationChunksConfig = extractTranslationChunksConfig(en);
export const epdVisualizationTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as epdVisualizationTranslationsCs } from './cs/index';
export { de as epdVisualizationTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const opfCheckoutTranslationChunksConfig = extractTranslationChunksConfig(en);
export const opfCheckoutTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as opfCheckoutTranslationsCs } from './cs/index';
export { de as opfCheckoutTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const opfPaymentTranslationChunksConfig = extractTranslationChunksConfig(en);
export const opfPaymentTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as opfPaymentTranslationsCs } from './cs/index';
export { de as opfPaymentTranslationsDe } from './de/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { en } from './en/index';
import { extractTranslationChunksConfig } from '@spartacus/core';
export const s4ServiceTranslationChunksConfig = extractTranslationChunksConfig(en);
export const s4ServiceTranslationChunksConfig =
extractTranslationChunksConfig(en);

export { cs as s4ServiceTranslationsCs } from './cs/index';
export { de as s4ServiceTranslationsDe } from './de/index';
Expand Down
5 changes: 1 addition & 4 deletions scripts/i18n/generate-translations-ts-barrels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,11 @@ async function main(): Promise<void> {
if (allModifiedFiles.length > 0) {
console.log('\nRunning prettier on modified files...');
const { exec } = require('child_process');
// const filePaths = allModifiedFiles.join(',');

try {
await new Promise((resolve, reject) => {
exec(
// `prettier --config ./.prettierrc --write --list-different "${filePaths}"`
// `npm run prettier:fix`,
'echo "done"',
`prettier --config ./.prettierrc --write --list-different '**/assets/{,src/}translations/**/*.ts'`,
(error: Error | null) => {
if (error) {
reject(error);
Expand Down

0 comments on commit ad66885

Please sign in to comment.