mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-08 01:08:43 +08:00
289da0f7b0
* sandbox-sync-agent * refactor: host pro as submodule * chore: checkpoint host pro restructure * refactor workspace test layout and startup init * chore: update next turbopack setup * chore: snapshot current work before actions fix * chore: update pro submodule * chore: point pro submodule url to upstream https * fix: Dockerfile * chore: update pro submodule * ci: support private pro submodule token and skip fork jobs * fix(ci): build sdk workspace deps before code-sandbox bundle * fix(app): exclude vitest configs from production typecheck * fix(app-image): build sdk packages before next build * fix(ci): align dockerfiles with workspace sdk build flow * chore(docker): upgrade node20 docker images to node24 * fix(ci): read admin coverage output path in pro test workflow * fix(app-image): include next-i18next config and locale assets * chore: update pro submodule * chore: do not specify branch for submodule * chore: remove most ts-nocheck sign * chore: update pro submodule * chore: remove sandbox-agent-sync package * chore: do not modify "pushData" file logic * fix: health check * chore: restore dev axios proxy state * fix: test-fastgpt report workflow * fix: use valid vitest coverage action inputs
74 lines
3.0 KiB
JSON
74 lines
3.0 KiB
JSON
{
|
|
"name": "fastgpt",
|
|
"version": "4.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev:app": "turbo run dev --filter=@fastgpt/app",
|
|
"dev:admin": "turbo run dev --filter=@fastgpt/admin",
|
|
"dev": "turbo run dev --filter=@fastgpt/app",
|
|
"prepare": "husky install",
|
|
"gen:theme-typings": "chakra-cli tokens packages/web/styles/theme.ts --out node_modules/.pnpm/node_modules/@chakra-ui/styled-system/dist/theming.types.d.ts",
|
|
"gen:deploy": "node deploy/init.mjs",
|
|
"postinstall": "pnpm gen:theme-typings",
|
|
"initIcon": "node ./scripts/icon/init.js && prettier --config \"./.prettierrc.js\" --write \"packages/web/components/common/Icon/constants.ts\"",
|
|
"previewIcon": "node ./scripts/icon/index.js",
|
|
"create:i18n": "node ./scripts/i18n/index.js",
|
|
"clean:unused:pro": "node --experimental-strip-types ./pro/scripts/cleanup-unused.ts",
|
|
"clean:unused:pro:write": "node --experimental-strip-types ./pro/scripts/cleanup-unused.ts --write",
|
|
"lint": "eslint \"**/*.{ts,tsx}\" --fix --ignore-path .eslintignore",
|
|
"test": "pnpm test:workspace",
|
|
"test:all": "pnpm test:workspace && pnpm test:vector",
|
|
"test:repo": "vitest run --config vitest.config.mts --coverage --passWithNoTests",
|
|
"test:workspace": "turbo run test --filter=@fastgpt/app --filter=@fastgpt/admin --filter=@fastgpt/global --filter=@fastgpt/service",
|
|
"test:app": "turbo run test --filter=@fastgpt/app",
|
|
"test:admin": "turbo run test --filter=@fastgpt/admin",
|
|
"test:global": "turbo run test --filter=@fastgpt/global",
|
|
"test:service": "turbo run test --filter=@fastgpt/service",
|
|
"test:service:integration": "turbo run test:integration --filter=@fastgpt/service",
|
|
"test:vector": "turbo run test:integration --filter=@fastgpt/service",
|
|
"build:sdks": "pnpm -r --filter @fastgpt-sdk/storage --filter @fastgpt-sdk/logger --filter @fastgpt-sdk/otel build",
|
|
"predev": "pnpm run build:sdks"
|
|
},
|
|
"devDependencies": {
|
|
"@chakra-ui/cli": "^2.4.1",
|
|
"@typescript-eslint/eslint-plugin": "catalog:",
|
|
"@typescript-eslint/parser": "catalog:",
|
|
"@vitest/coverage-v8": "catalog:",
|
|
"eslint": "catalog:",
|
|
"eslint-config-next": "catalog:",
|
|
"husky": "^8.0.3",
|
|
"i18next": "catalog:",
|
|
"js-yaml": "catalog:",
|
|
"lint-staged": "^13.3.0",
|
|
"mongodb-memory-server": "catalog:",
|
|
"next-i18next": "catalog:",
|
|
"prettier": "3.2.4",
|
|
"react-i18next": "catalog:",
|
|
"turbo": "2.9.6",
|
|
"typescript": "catalog:",
|
|
"vitest": "catalog:"
|
|
},
|
|
"lint-staged": {
|
|
"./document/**/**/*.mdx": [
|
|
"pnpm -C ./document run format-doc",
|
|
"pnpm -C ./document run initDocTime",
|
|
"pnpm -C ./document run initDocToc",
|
|
"pnpm -C ./document run checkDocRefs",
|
|
"pnpm -C ./document run removeInvalidImg",
|
|
"git add ."
|
|
],
|
|
"**/*.{ts,tsx}": [
|
|
"prettier --config ./.prettierrc.js --write",
|
|
"eslint --fix --ignore-path .eslintignore"
|
|
],
|
|
"**/*.scss": [
|
|
"prettier --config ./.prettierrc.js --write"
|
|
]
|
|
},
|
|
"engines": {
|
|
"node": ">=20",
|
|
"pnpm": "10.x"
|
|
},
|
|
"packageManager": "pnpm@10.33.2"
|
|
}
|