Rename file to .js
This commit is contained in:
parent
3d7af9b2a3
commit
2ce968fcfc
|
@ -16,8 +16,8 @@
|
|||
"build": "cd ../.. && nx build @budibase/worker",
|
||||
"check:types": "tsc -p tsconfig.build.json --noEmit",
|
||||
"build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",
|
||||
"run:docker": "node dist/index.cjs",
|
||||
"debug": "yarn build && node --expose-gc --inspect=9223 dist/index.cjs",
|
||||
"run:docker": "node dist/index.js",
|
||||
"debug": "yarn build && node --expose-gc --inspect=9223 dist/index.js",
|
||||
"run:docker:cluster": "pm2-runtime start pm2.config.js",
|
||||
"predocker": "yarn build",
|
||||
"build:docker": "yarn predocker && docker build . -t worker-service --label version=$BUDIBASE_RELEASE_VERSION",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
script: "./dist/index.cjs",
|
||||
script: "./dist/index.js",
|
||||
instances: "max",
|
||||
exec_mode: "cluster",
|
||||
},
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
"build": {
|
||||
"executor": "@nx/esbuild:esbuild",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"defaultConfiguration": "production",
|
||||
"options": {
|
||||
"main": "packages/worker/src/index.ts",
|
||||
"outputPath": "packages/worker/dist",
|
||||
|
@ -18,7 +17,12 @@
|
|||
"output": "."
|
||||
}
|
||||
],
|
||||
"format": ["cjs"]
|
||||
"format": ["cjs"],
|
||||
"esbuildOptions": {
|
||||
"outExtension": {
|
||||
".js": ".js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"configurations": {
|
||||
"development": {
|
||||
|
|
Loading…
Reference in New Issue