Files
twenty_crm/packages/twenty-shared/package.json
Etienne e8905be71a Import - Improve phone validation (#12901)
Context : 
- Phones import is a bit complex if not all subfields are provided.
- Phones subfield validation are absent or different from BE validation.

Solution : 
- Normalize callingCode and countryCode validation (BE/FE)
- Ease phone import if only phoneNumber is provided
2025-07-04 23:07:24 +02:00

50 lines
1.0 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",
"./workspace/index.ts"
]
},
"files": [
"dist",
"constants",
"testing",
"translations",
"types",
"utils",
"workspace"
]
}