# Refactor workflow–logic function interaction ## Why Workflow code steps and standalone logic functions shared the same build layer and DB layer, which blurred two use cases: code steps belong to a workflow version; standalone functions are deployable units. That made workflow code steps harder to own and evolve. ## Goal Treat code steps as **workflow-owned**: build and run them in workflow context, and expose workflow-scoped APIs so the editor can load, test, and save code step source without going through the generic logic-function layer.
60 lines
1.7 KiB
JSON
60 lines
1.7 KiB
JSON
{
|
|
"$schema": "https://json.schemastore.org/nest-cli",
|
|
"collection": "@nestjs/schematics",
|
|
"sourceRoot": "src",
|
|
"watchOptions": {
|
|
"ignored": [
|
|
"**/node_modules/**",
|
|
"**/dist/**",
|
|
"**/.git/**",
|
|
"**/.nx/**",
|
|
"**/.local-storage/**"
|
|
]
|
|
},
|
|
"compilerOptions": {
|
|
"builder": "swc",
|
|
"typeCheck": false,
|
|
"watchAssets": true,
|
|
"assets": [
|
|
{
|
|
"include": "modules/workflow/workflow-builder/workflow-version-step/code-step/constants/seed-project/**",
|
|
"outDir": "dist/assets"
|
|
},
|
|
{
|
|
"include": "engine/core-modules/logic-function/logic-function-source-builder/constants/seed-project/**",
|
|
"outDir": "dist/assets"
|
|
},
|
|
{
|
|
"include": "engine/core-modules/logic-function/logic-function-drivers/layers/*/package.json",
|
|
"outDir": "dist/assets"
|
|
},
|
|
{
|
|
"include": "engine/core-modules/logic-function/logic-function-drivers/layers/*/yarn.lock",
|
|
"outDir": "dist/assets"
|
|
},
|
|
{
|
|
"include": "engine/core-modules/logic-function/logic-function-drivers/layers/engine/**",
|
|
"outDir": "dist/assets"
|
|
},
|
|
{
|
|
"include": "engine/core-modules/logic-function/logic-function-drivers/constants/executor/index.mjs",
|
|
"outDir": "dist/assets"
|
|
},
|
|
{
|
|
"include": "database/clickHouse/migrations/*.sql",
|
|
"outDir": "dist"
|
|
},
|
|
{
|
|
"include": "engine/workspace-manager/dev-seeder/data/sample-files/**",
|
|
"outDir": "dist/assets"
|
|
},
|
|
{
|
|
"include": "engine/core-modules/application/constants/default-package-files/**",
|
|
"outDir": "dist/assets"
|
|
}
|
|
]
|
|
},
|
|
"monorepo": false,
|
|
"root": "src"
|
|
}
|