fix(auth): replace ts alias with relative paths

Because:

* fxa-auth-server is failing to start up in build since TypeScript path
  aliases are still present in JavaScript files.

This commit:

* Replace ts path aliases in fxa-auth-server JS files, with relative
  paths.

Closes #
This commit is contained in:
Reino Muhl 2023-10-11 18:15:13 -04:00
Родитель afe3437807
Коммит 526605a091
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: C86660FCF998897A
5 изменённых файлов: 9 добавлений и 8 удалений

Просмотреть файл

@ -7,4 +7,4 @@
// The list below should be kept in sync with:
// https://github.com/mozilla/fxa/blob/main/libs/shared/l10n/src/lib/supportedLanguages.json
module.exports = require('@fxa/shared/l10n').supportedLanguages;
module.exports = require('../../../libs/shared/l10n/src').supportedLanguages;

Просмотреть файл

@ -7,10 +7,11 @@
const Joi = require('joi');
const createBackendServiceAPI = require('./backendService');
const { config } = require('../config');
const localizeTimestamp = require('@fxa/shared/l10n').localizeTimestamp({
supportedLanguages: config.get('i18n').supportedLanguages,
defaultLanguage: config.get('i18n').defaultLanguage,
});
const localizeTimestamp =
require('../../../libs/shared/l10n/src').localizeTimestamp({
supportedLanguages: config.get('i18n').supportedLanguages,
defaultLanguage: config.get('i18n').defaultLanguage,
});
const serviceName = 'customs';
module.exports = function (log, error, statsd) {

Просмотреть файл

@ -17,7 +17,7 @@ const {
const { productDetailsFromPlan } = require('fxa-shared').subscriptions.metadata;
const Renderer = require('./renderer').default;
const { NodeRendererBindings } = require('./renderer/bindings-node');
const { determineLocale } = require('@fxa/shared/l10n');
const { determineLocale } = require('../../../../libs/shared/l10n/src');
const TEMPLATE_VERSIONS = require('./emails/templates/_versions.json');

Просмотреть файл

@ -19,7 +19,7 @@ const { HEX_STRING } = require('./routes/validators');
const { configureSentry } = require('./sentry');
const { swaggerOptions } = require('../docs/swagger/swagger-options');
const { Account } = require('fxa-shared/db/models/auth');
const { determineLocale } = require('@fxa/shared/l10n');
const { determineLocale } = require('../../../libs/shared/l10n/src');
const {
reportValidationError,
} = require('fxa-shared/sentry/report-validation-error');

Просмотреть файл

@ -5,7 +5,7 @@
'use strict';
const leftpad = require('leftpad');
const { determineLocale } = require('@fxa/shared/l10n');
const { determineLocale } = require('../../../../libs/shared/l10n/src');
module.exports = class UserRecordNormalizer {
/**