From 49ae7db689a5d47755aa09e60538b96a9b8fcc2a Mon Sep 17 00:00:00 2001 From: dschom Date: Wed, 22 Apr 2026 18:57:36 -0700 Subject: [PATCH] chore(auth-client): replace esbuild with tsc/ts-node in packages/fxa-auth-client Because: - We want to test & develop with what we deploy. This commit: - Part of the esbuild -> tsc/ts-node migration (split of a6d1a55ae4, PR mozilla/fxa#20390). - Scope: files under packages/fxa-auth-client. --- packages/fxa-auth-client/package.json | 6 ++---- yarn.lock | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/fxa-auth-client/package.json b/packages/fxa-auth-client/package.json index fe653836d46..c0cbe7822ef 100644 --- a/packages/fxa-auth-client/package.json +++ b/packages/fxa-auth-client/package.json @@ -38,9 +38,9 @@ "build-ts": "tsc --build tsconfig.browser.json && tsc --build tsconfig.cjs.json && tsc --build", "clean": "rimraf dist", "compile": "yarn build-ts", - "test": "mocha -r esbuild-register test/*", + "test": "TS_NODE_PROJECT=tsconfig.cjs.json mocha -r ts-node/register/transpile-only test/*", "format": "prettier --write --config ../../_dev/.prettierrc '**'", - "test-unit": "MOCHA_FILE=../../artifacts/tests/$npm_package_name/fxa-auth-client-mocha-unit-results.xml mocha -r esbuild-register test/*", + "test-unit": "TS_NODE_PROJECT=tsconfig.cjs.json MOCHA_FILE=../../artifacts/tests/$npm_package_name/fxa-auth-client-mocha-unit-results.xml mocha -r ts-node/register/transpile-only test/*", "test-integration": "echo No integration tests present for $npm_package_name" }, "author": "", @@ -51,8 +51,6 @@ "@types/mocha": "^10", "@types/node": "^22.13.5", "@types/prettier": "^2", - "esbuild": "^0.17.15", - "esbuild-register": "^3.5.0", "eslint": "^8.38.0", "eslint-config-react-app": "^7.0.1", "fast-text-encoding": "^1.0.4", diff --git a/yarn.lock b/yarn.lock index fff8989e50e..740d725ad86 100644 --- a/yarn.lock +++ b/yarn.lock @@ -31783,8 +31783,6 @@ __metadata: "@types/mocha": "npm:^10" "@types/node": "npm:^22.13.5" "@types/prettier": "npm:^2" - esbuild: "npm:^0.17.15" - esbuild-register: "npm:^3.5.0" eslint: "npm:^8.38.0" eslint-config-react-app: "npm:^7.0.1" fast-text-encoding: "npm:^1.0.4"