Files
twenty_crm/packages/twenty-shared/package.json
martmull 47386e92a3 22 branches 3 (#13181)
This PR does not produce any functional changes for our users. It
prepares the branches for workflows by:

- decommissioning `output` and `context` fields or `workflowRun` records
and use newly created `state` field from front-end and back-end
- use `stepStatus` computed by `back-end` in `front-end`
- add utils and types in `twenty-shared/workflow` (not completed, a
follow-up is scheduled
https://github.com/twentyhq/core-team-issues/issues/1211)
- add concurrency to `workflowQueue` message queue to avoid weird branch
execution when using forms in workflow branches
- add a WithLock decorator for better dev experience of
`CacheLockService.withLock` usage

Here is an example of such a workflow running (front branch display is
not yet done that's why it looks ugly) ->
https://discord.com/channels/1130383047699738754/1258024460238192691/1392897615171158098
2025-07-16 11:16:04 +02:00

52 lines
1.1 KiB
JSON

{
"name": "twenty-shared",
"main": "dist/twenty-shared.cjs.js",
"module": "dist/twenty-shared.esm.js",
"license": "AGPL-3.0",
"scripts": {
"build": "preconstruct build"
},
"engines": {
"node": "^22.12.0",
"npm": "please-use-yarn",
"yarn": "^4.0.2"
},
"devDependencies": {
"@babel/preset-env": "^7.26.9",
"@preconstruct/cli": "^2.8.12",
"@prettier/sync": "^0.5.2",
"@types/babel__preset-env": "^7",
"babel-plugin-module-resolver": "^5.0.2",
"glob": "^11.0.1",
"tsx": "^4.19.3"
},
"dependencies": {
"@sniptt/guards": "^0.2.0",
"libphonenumber-js": "^1.10.26",
"zod": "3.23.8"
},
"preconstruct": {
"tsconfig": "tsconfig.lib.json",
"entrypoints": [
"./index.ts",
"./constants/index.ts",
"./testing/index.ts",
"./translations/index.ts",
"./types/index.ts",
"./utils/index.ts",
"./workflow/index.ts",
"./workspace/index.ts"
]
},
"files": [
"dist",
"constants",
"testing",
"translations",
"types",
"utils",
"workflow",
"workspace"
]
}