49 lines
1.2 KiB
JSON
49 lines
1.2 KiB
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": "."
|
|
}
|
|
],
|
|
"external": ["graphql/*", "deasync", "mock-aws-s3", "nock"],
|
|
"format": ["cjs"],
|
|
"esbuildOptions": {
|
|
"outExtension": {
|
|
".js": ".js"
|
|
},
|
|
"sourcemap": true
|
|
},
|
|
"minify": true,
|
|
"generatePackageJson": true,
|
|
"skipTypeCheck": true
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"skipTypeCheck": false,
|
|
"esbuildOptions": {
|
|
"sourcemap": false
|
|
}
|
|
}
|
|
},
|
|
"dependsOn": [
|
|
{
|
|
"projects": ["@budibase/types", "@budibase/string-templates"],
|
|
"target": "build"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|