Skip to content

Build your personal knowledge base with Trilium Notes

chore(dx/apps): build db-compare & dump-db

Elian Doranfd1c122cd48a
diff --git a/apps/db-compare/package.json b/apps/db-compare/package.json
index 370ae38a67..3bea743360 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 b134ded670..623dad60ca 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"
}
}