Files
twenty/packages/twenty-shared/package.json
T
Paul RastoinandGitHub 5476164a28 Expect node 24.5.0 (#13734)
Unless I'm mistaken the project does not run with node `24.0.0`
Switching to node `24.5.0` ( as defined in vscode node runtime
requirements in https://github.com/twentyhq/twenty/pull/13730 ) seems to
fix the issue
```ts
Successfully compiled: 2897 files with swc (188.32ms)
(node:77006) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
(Use `node --trace-deprecation ...` to show where the warning was created)
Watching for file changes.

/Users/paulrastoin/ws/twenty/node_modules/buffer-equal-constant-time/index.js:37
var origSlowBufEqual = SlowBuffer.prototype.equal;
                                  ^
TypeError: Cannot read properties of undefined (reading 'prototype')
```

Updating engines so local constraint suggest a functional node version
2025-08-07 16:22:28 +00:00

54 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": "^24.5.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",
"@types/handlebars": "^4.1.0",
"babel-plugin-module-resolver": "^5.0.2",
"glob": "^11.0.1",
"tsx": "^4.19.3"
},
"dependencies": {
"@sniptt/guards": "^0.2.0",
"handlebars": "^4.7.8",
"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"
]
}