|
6 | 6 | "tags": ["scope:publishable", "type:lib", "versioning:independent"], |
7 | 7 | "implicitDependencies": ["ast"], |
8 | 8 | "targets": { |
| 9 | + "build-worker-script": { |
| 10 | + "executor": "@nx/esbuild:esbuild", |
| 11 | + "dependsOn": ["^build"], |
| 12 | + "outputs": ["{options.outputPath}"], |
| 13 | + "options": { |
| 14 | + "outputPath": "libs/core/dist/src/adapters/worker-pool", |
| 15 | + "main": "libs/core/src/adapters/worker-pool/worker-script.ts", |
| 16 | + "tsConfig": "libs/core/tsconfig.lib.json", |
| 17 | + "format": ["cjs"], |
| 18 | + "declaration": false, |
| 19 | + "bundle": true, |
| 20 | + "thirdParty": false, |
| 21 | + "platform": "node", |
| 22 | + "esbuildOptions": { |
| 23 | + "outExtension": { ".js": ".js" }, |
| 24 | + "external": ["@enclave-vm/types", "@enclave-vm/ast", "acorn", "acorn-walk", "astring"] |
| 25 | + } |
| 26 | + } |
| 27 | + }, |
9 | 28 | "test-perf": { |
10 | 29 | "executor": "@nx/jest:jest", |
11 | 30 | "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], |
|
16 | 35 | }, |
17 | 36 | "build-cjs": { |
18 | 37 | "executor": "@nx/esbuild:esbuild", |
19 | | - "dependsOn": ["^build"], |
| 38 | + "dependsOn": ["^build", "build-worker-script"], |
20 | 39 | "outputs": ["{options.outputPath}"], |
21 | 40 | "options": { |
| 41 | + "deleteOutputPath": false, |
22 | 42 | "outputPath": "libs/core/dist", |
23 | 43 | "main": "libs/core/src/index.ts", |
24 | 44 | "tsConfig": "libs/core/tsconfig.lib.json", |
|
0 commit comments