39 lines
942 B
JSON
39 lines
942 B
JSON
{
|
|
"name": "@budibase/worker",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/esbuild:esbuild",
|
|
"outputs": ["{options.outputPath}"],
|
|
"options": {
|
|
"main": "packages/worker/src/index.ts",
|
|
"outputPath": "packages/worker/dist",
|
|
"outputFileName": "index.js",
|
|
"tsConfig": "packages/worker/tsconfig.build.json",
|
|
"assets": [
|
|
{
|
|
"glob": "**/*.hbs",
|
|
"input": "packages/worker/src/constants/templates",
|
|
"output": "."
|
|
}
|
|
],
|
|
"format": ["cjs"],
|
|
"esbuildOptions": {
|
|
"outExtension": {
|
|
".js": ".js"
|
|
}
|
|
},
|
|
"generatePackageJson": true
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"minify": false
|
|
},
|
|
"production": {
|
|
"minify": true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|