From 81655f2924487fe81cb233d692b2e1bec5844187 Mon Sep 17 00:00:00 2001 From: dschom Date: Wed, 22 Apr 2026 18:57:23 -0700 Subject: [PATCH] chore(profile): replace esbuild with tsc/ts-node in libs/profile 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 libs/profile. --- libs/profile/client/package.json | 6 +----- libs/profile/client/project.json | 11 +++++++++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/libs/profile/client/package.json b/libs/profile/client/package.json index b0b290dfe74..93ed58cc369 100644 --- a/libs/profile/client/package.json +++ b/libs/profile/client/package.json @@ -1,8 +1,4 @@ { "name": "@fxa/profile/client", - "version": "0.0.1", - "dependencies": {}, - "type": "commonjs", - "main": "./index.cjs", - "private": true + "version": "0.0.1" } diff --git a/libs/profile/client/project.json b/libs/profile/client/project.json index d2f189825bf..bd7c0843a7f 100644 --- a/libs/profile/client/project.json +++ b/libs/profile/client/project.json @@ -6,14 +6,21 @@ "tags": [], "targets": { "build": { - "executor": "@nx/esbuild:esbuild", + "dependsOn": ["build-ts"], + "executor": "nx:run-commands", + "options": { + "command": "echo Build complete" + } + }, + "build-ts": { + "executor": "@nx/js:tsc", "outputs": ["{options.outputPath}"], "options": { "outputPath": "dist/libs/profile/client", "main": "libs/profile/client/src/index.ts", "tsConfig": "libs/profile/client/tsconfig.lib.json", "assets": ["libs/profile/client/*.md"], - "declaration": true + "generatePackageJson": true } }, "test-unit": {