fix(auth): include bin/ in build-ts script

Because:

- JS files in bin/ directory did not have TS aliases replaced with
  relative paths.

This commit:

- Include JS files in bin/ directory in tsconfig, so that it's picked up
  by tsc-alias during the build-ts script execution.

Closes #
This commit is contained in:
Reino Muhl 2024-11-06 18:29:53 -05:00
Родитель 3f695d67d6
Коммит df3bd250af
Не найден ключ, соответствующий данной подписи
2 изменённых файлов: 6 добавлений и 2 удалений

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

@ -14,7 +14,7 @@
"build-l10n": "nx l10n-merge && nx l10n-merge-test",
"build-css": "nx emails-scss",
"build-ts": "tsc --build && tsc-alias",
"build-finalize": "cp -R config public lib scripts bin dist/packages/fxa-auth-server",
"build-finalize": "cp -R config public lib scripts dist/packages/fxa-auth-server",
"build-storybook": "NODE_OPTIONS=--openssl-legacy-provider STORYBOOK_BUILD=true storybook build && yarn build-storybook-copy-locales && yarn build-storybook-copy-templates",
"build-storybook-copy-locales": "mkdir -p ./storybook-static/public/locales && cp -R ./public/locales ./storybook-static/public",
"build-storybook-copy-templates": "mkdir -p ./storybook-static/lib/senders/emails/templates && cp -R ./lib/senders/emails ./storybook-static/lib/senders",

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

@ -13,5 +13,9 @@
// about these explicit any
"noImplicitAny": false
},
"include": ["bin/**/*.ts", "lib/**/*.ts", "scripts/**/*.ts"]
"include": [
"bin/*", // Include bin so that it's included in `build-ts`, specifically for "tsc-alias".
"lib/**/*.ts",
"scripts/**/*.ts"
]
}