{
"name": "@cocalc/next",
"version": "0.103.5",
"description": "CoCalc's nextjs server",
"main": "lib/init.js",
"exports": {
"./init": "./lib/init.js",
"./lib/*": "./dist/lib/*.js",
"./lib/share": "./dist/lib/share/*.js"
},
"files": [
".next/*",
"styles/*",
"public/*",
"pages/*",
"lib/*",
"dist/*",
"components/*",
"README.md",
"package.json",
"tsconfig.json",
"tsconfig-dist.json",
"next-env.d.ts",
"next.config.js"
],
"scripts": {
"preinstall": "npx only-allow pnpm",
"build": "pnpm patch-openapi && pnpm exec next telemetry disable && rm -rf .next && pnpm build-dev && NODE_OPTIONS='--max_old_space_size=8000' next build && pnpm generate-openapi",
"build-dev": "pnpm patch-openapi && pnpm exec next telemetry disable && rm -rf dist && pnpm software && ../node_modules/.bin/tsc --build tsconfig-dist.json && pnpm generate-openapi",
"ts-build": "../node_modules/.bin/tsc --build tsconfig-dist.json",
"tsc": "../node_modules/.bin/tsc --build tsconfig-dist.json -w --pretty --preserveWatchOutput ",
"software": "bash ./software-inventory/setup.sh",
"build-deps": "cd ../backend && pnpm build && cd ../util && pnpm build",
"build-project": "pnpm build-deps && npx next telemetry disable && pnpm build-dev && NODE_OPTIONS='--max_old_space_size=8000' BASE_PATH=/$COCALC_PROJECT_ID/port/5000 next build",
"clean": "rm -rf node_modules .next dist software-inventory/*.json lib/software-inventory/*.json",
"start": "unset PGHOST; pnpm exec next start",
"start-project": "unset PGHOST PGUSER COCALC_ROOT; export PORT=5000 BASE_PATH=/$COCALC_PROJECT_ID/port/5000; echo https://cocalc.com$BASE_PATH; pnpm start",
"test": "NODE_ENV='dev' pnpm exec jest && NODE_ENV='production' pnpm exec jest ./lib/api/framework.test.ts",
"depcheck": "pnpx depcheck --ignores @openapitools/openapi-generator-cli,eslint-config-next,locales,components,lib,public,pages,software-inventory,pg",
"prepublishOnly": "pnpm test",
"patch-openapi": "sed '/^interface NrfOasData {/s/^interface/export interface/' node_modules/next-rest-framework/dist/index.d.ts > node_modules/next-rest-framework/dist/index.d.ts.temp && mv node_modules/next-rest-framework/dist/index.d.ts.temp node_modules/next-rest-framework/dist/index.d.ts",
"generate-openapi": "cd dist && rm -f public && ln -sf ../public public && NODE_ENV='dev' NODE_PATH=`pwd` npx next-rest-framework generate",
"validate-openapi": "cd dist && rm -f public && ln -sf ../public public && NODE_ENV='dev' NODE_PATH=`pwd` npx next-rest-framework validate",
"i18n:upload": "bash ./locales/upload.sh",
"i18n:download": "bash ./locales/download.sh"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sagemathinc/cocalc.git"
},
"author": "SageMath, Inc.",
"license": "SEE LICENSE IN LICENSE.md",
"bugs": {
"url": "https://github.com/sagemathinc/cocalc/issues"
},
"homepage": "https://github.com/sagemathinc/cocalc/tree/master/src/packages/next",
"private": false,
"dependencies": {
"@ant-design/icons": "^6.0.0",
"@ant-design/v5-patch-for-react-19": "^1.0.3",
"@cocalc/backend": "workspace:*",
"@cocalc/cdn": "workspace:*",
"@cocalc/database": "workspace:*",
"@cocalc/frontend": "workspace:*",
"@cocalc/server": "workspace:*",
"@cocalc/util": "workspace:*",
"@openapitools/openapi-generator-cli": "^2.19.1",
"@vscode/vscode-languagedetection": "^1.0.22",
"antd": "^5.24.7",
"antd-img-crop": "^4.21.0",
"awaiting": "^3.0.0",
"base-64": "^1.0.0",
"basic-auth": "^2.0.1",
"csv-stringify": "^6.3.0",
"dayjs": "^1.11.11",
"express": "^4.21.2",
"lodash": "^4.17.21",
"lru-cache": "^7.18.3",
"ms": "2.1.2",
"next": "15.3.4",
"next-rest-framework": "6.0.0-beta.4",
"next-translate": "^2.6.2",
"password-hash": "^1.2.2",
"pg": "^8.7.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-google-recaptcha-v3": "^1.9.7",
"react-intl": "^7.1.11",
"serve-index": "^1.9.1",
"timeago-react": "^3.0.4",
"use-async-effect": "^2.2.7",
"uuid": "^8.3.2",
"xmlbuilder2": "^3.0.2",
"zod": "^3.23.5"
},
"devDependencies": {
"@ant-design/cssinjs": "^1.23.0",
"@types/express": "^4.17.21",
"@types/node": "^18.16.14",
"@types/react": "^19.1.8",
"@uiw/react-textarea-code-editor": "^3.1.1",
"next-rspack": "^15.3.4",
"node-mocks-http": "^1.14.1",
"react-test-renderer": "^19.1.0"
},
"pnpm": {
"overrides": {
"@types/react": "19.1.8"
}
}
}