mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
refactor(commons): switch to esbuild
This commit is contained in:
parent
1893686e66
commit
114607f762
@ -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"
|
||||
},
|
||||
"dependencies": {
|
||||
"@swc/helpers": "~0.5.11"
|
||||
"configurations": {
|
||||
"development": {
|
||||
"minify": false
|
||||
},
|
||||
"production": {
|
||||
"minify": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user