The @scalar package we use to offer a REST api playground is quite heavy (3k files compared to the 15k existing) and is not pre-build in the npm package, which is not unusual. This is increasing the memory need during vite build. I'm increasing the RAM available for vite build. Long term I recommend using a CDN here as this is not really a React component so we won't benefit from any reactivity anyway. Exaclty like we have done for FrontApp support chat integration <img width="1058" alt="image" src="https://github.com/user-attachments/assets/5412c6c1-7434-4b19-b9ac-e89f1cb614f3" />
63 lines
1.9 KiB
JSON
63 lines
1.9 KiB
JSON
{
|
|
"name": "twenty-front",
|
|
"version": "0.44.0-canary",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true NODE_OPTIONS=--max-old-space-size=4500 npx vite build && sh ./scripts/inject-runtime-env.sh",
|
|
"build:sourcemaps": "VITE_BUILD_SOURCEMAP=true VITE_DISABLE_TYPESCRIPT_CHECKER=true VITE_DISABLE_ESLINT_CHECKER=true NODE_OPTIONS=--max-old-space-size=7000 npx vite build && sh ./scripts/inject-runtime-env.sh",
|
|
"start:prod": "NODE_ENV=production npx vite --host",
|
|
"tsup": "npx tsup"
|
|
},
|
|
"engines": {
|
|
"node": "^18.17.1",
|
|
"npm": "please-use-yarn",
|
|
"yarn": "^4.0.2"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"msw": {
|
|
"workerDirectory": "public"
|
|
},
|
|
"dependencies": {
|
|
"@blocknote/xl-docx-exporter": "^0.22.0",
|
|
"@blocknote/xl-pdf-exporter": "^0.22.0",
|
|
"@cyntler/react-doc-viewer": "^1.17.0",
|
|
"@lingui/detect-locale": "^5.2.0",
|
|
"@nivo/calendar": "^0.87.0",
|
|
"@nivo/core": "^0.87.0",
|
|
"@nivo/line": "^0.87.0",
|
|
"@react-pdf/renderer": "^4.1.6",
|
|
"@scalar/api-reference-react": "^0.4.36",
|
|
"@tiptap/core": "^2.10.4",
|
|
"@tiptap/extension-document": "^2.10.4",
|
|
"@tiptap/extension-hard-break": "^2.10.4",
|
|
"@tiptap/extension-history": "^2.10.4",
|
|
"@tiptap/extension-paragraph": "^2.10.4",
|
|
"@tiptap/extension-placeholder": "^2.10.4",
|
|
"@tiptap/extension-text": "^2.10.4",
|
|
"@tiptap/extension-text-style": "^2.10.4",
|
|
"@tiptap/react": "^2.10.4",
|
|
"@xyflow/react": "^12.4.2",
|
|
"buffer": "^6.0.3",
|
|
"docx": "^9.1.0",
|
|
"file-saver": "^2.0.5",
|
|
"recoil-sync": "^0.2.0",
|
|
"transliteration": "^2.3.5",
|
|
"twenty-shared": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@types/file-saver": "^2"
|
|
}
|
|
}
|