From fd1c122cd48ad926487fbaf6583f16c4d974e5ab Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 2 Sep 2025 19:29:38 +0300 Subject: [PATCH] chore(dx/apps): build db-compare & dump-db --- apps/db-compare/package.json | 61 ++-------------------------------- apps/dump-db/package.json | 63 ++---------------------------------- 2 files changed, 6 insertions(+), 118 deletions(-) diff --git a/apps/db-compare/package.json b/apps/db-compare/package.json index 370ae38a6..3bea74336 100644 --- a/apps/db-compare/package.json +++ b/apps/db-compare/package.json @@ -9,63 +9,8 @@ "sqlite": "5.1.1", "sqlite3": "5.1.7" }, - "nx": { - "name": "db-compare", - "targets": { - "build": { - "executor": "@nx/esbuild:esbuild", - "outputs": [ - "{options.outputPath}" - ], - "defaultConfiguration": "production", - "options": { - "platform": "node", - "outputPath": "apps/db-compare/dist", - "format": [ - "cjs" - ], - "bundle": false, - "main": "apps/db-compare/src/compare.ts", - "tsConfig": "apps/db-compare/tsconfig.app.json", - "assets": [], - "esbuildOptions": { - "sourcemap": true, - "outExtension": { - ".js": ".js" - } - } - }, - "configurations": { - "development": {}, - "production": { - "esbuildOptions": { - "sourcemap": false, - "outExtension": { - ".js": ".js" - } - } - } - } - }, - "serve": { - "executor": "@nx/js:node", - "defaultConfiguration": "development", - "dependsOn": [ - "build" - ], - "options": { - "buildTarget": "db-compare:build", - "runBuildTargetDependencies": false - }, - "configurations": { - "development": { - "buildTarget": "db-compare:build:development" - }, - "production": { - "buildTarget": "db-compare:build:production" - } - } - } - } + "scripts": { + "dev": "tsx src/compare.ts", + "build": "esbuild --platform=node --format=cjs --outdir=dist src/compare.ts" } } diff --git a/apps/dump-db/package.json b/apps/dump-db/package.json index b134ded67..623dad60c 100644 --- a/apps/dump-db/package.json +++ b/apps/dump-db/package.json @@ -15,65 +15,8 @@ "@types/mime-types": "^3.0.0", "@types/yargs": "^17.0.33" }, - "nx": { - "name": "dump-db", - "targets": { - "build": { - "executor": "@nx/esbuild:esbuild", - "outputs": [ - "{options.outputPath}" - ], - "defaultConfiguration": "production", - "options": { - "platform": "node", - "outputPath": "apps/dump-db/dist", - "format": [ - "cjs" - ], - "bundle": false, - "main": "apps/dump-db/src/main.ts", - "tsConfig": "apps/dump-db/tsconfig.app.json", - "assets": [ - "apps/dump-db/src/assets" - ], - "esbuildOptions": { - "sourcemap": true, - "outExtension": { - ".js": ".js" - } - } - }, - "configurations": { - "development": {}, - "production": { - "esbuildOptions": { - "sourcemap": false, - "outExtension": { - ".js": ".js" - } - } - } - } - }, - "serve": { - "executor": "@nx/js:node", - "defaultConfiguration": "development", - "dependsOn": [ - "build" - ], - "options": { - "buildTarget": "dump-db:build", - "runBuildTargetDependencies": false - }, - "configurations": { - "development": { - "buildTarget": "dump-db:build:development" - }, - "production": { - "buildTarget": "dump-db:build:production" - } - } - } - } + "scripts": { + "dev": "tsx src/main.ts", + "build": "esbuild --platform=node --format=cjs --outdir=dist src/main.ts" } }