Skip to content

Build your personal knowledge base with Trilium Notes

refactor(commons): switch to esbuild

Elian Doran114607f7621f
diff --git a/packages/commons/package.json b/packages/commons/package.json
index 09312903b8..045e8902e9 100644
--- a/packages/commons/package.json
+++ b/packages/commons/package.json
@@ -27,21 +27,31 @@
"sourceRoot": "packages/commons/src",
"targets": {
"build": {
- "executor": "@nx/js:swc",
+ "executor": "@nx/esbuild:esbuild",
"outputs": [
"{options.outputPath}"
],
+ "defaultConfiguration": "production",
"options": {
- "outputPath": "packages/commons/dist",
"main": "packages/commons/src/index.ts",
+ "outputPath": "packages/commons/dist",
+ "outputFileName": "main.js",
"tsConfig": "packages/commons/tsconfig.lib.json",
- "skipTypeCheck": true,
- "stripLeadingPaths": true
+ "platform": "node",
+ "format": [
+ "esm"
+ ],
+ "declarationRootDir": "packages/commons/src"
+ },
+ "configurations": {
+ "development": {
+ "minify": false
+ },
+ "production": {
+ "minify": true
+ }
}
}
}
- },
- "dependencies": {
- "@swc/helpers": "~0.5.11"
}
-}
\ No newline at end of file
+}