chore(task6): complete turborepo migration verification

This commit is contained in:
2026-07-02 15:49:14 +08:00
parent e34e4dd6b6
commit e13de5fef4
7 changed files with 24 additions and 15 deletions

View File

@@ -1,12 +1,13 @@
{ {
"name": "@gongxue/admin", "name": "@gongxue/admin",
"private": true,
"version": "0.0.0", "version": "0.0.0",
"private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "tsc -b && vite build", "build": "tsc -b && vite build",
"lint": "oxlint --config ../../oxlint.config.ts", "lint": "oxlint --config ../../oxlint.config.ts",
"typecheck": "tsc -b --noEmit",
"format": "oxfmt", "format": "oxfmt",
"preview": "vite preview" "preview": "vite preview"
}, },
@@ -23,12 +24,12 @@
"tslib": "^2.8.1" "tslib": "^2.8.1"
}, },
"devDependencies": { "devDependencies": {
"@gongxue/typescript-config": "*",
"@types/node": "^24.12.2", "@types/node": "^24.12.2",
"@types/react": "^19.2.14", "@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.1", "@vitejs/plugin-react": "^6.0.1",
"typescript": "~6.0.2", "typescript": "~6.0.2",
"vite": "^8.0.9", "vite": "^8.0.9"
"@gongxue/typescript-config": "*"
} }
} }

View File

@@ -1,10 +1,10 @@
{ {
"name": "@gongxue/server", "name": "@gongxue/server",
"version": "0.0.1", "version": "0.0.1",
"description": "",
"author": "",
"private": true, "private": true,
"description": "",
"license": "UNLICENSED", "license": "UNLICENSED",
"author": "",
"scripts": { "scripts": {
"build": "nest build", "build": "nest build",
"format": "oxfmt", "format": "oxfmt",
@@ -13,6 +13,7 @@
"start:debug": "nest start --debug --watch", "start:debug": "nest start --debug --watch",
"start:prod": "node dist/main", "start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"typecheck": "tsc -p tsconfig.build.json --noEmit",
"test": "jest", "test": "jest",
"test:watch": "jest --watch", "test:watch": "jest --watch",
"test:cov": "jest --coverage", "test:cov": "jest --coverage",
@@ -47,6 +48,7 @@
"devDependencies": { "devDependencies": {
"@eslint/eslintrc": "^3.2.0", "@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.18.0", "@eslint/js": "^9.18.0",
"@gongxue/typescript-config": "*",
"@nestjs/cli": "^11.0.0", "@nestjs/cli": "^11.0.0",
"@nestjs/schematics": "^11.0.0", "@nestjs/schematics": "^11.0.0",
"@nestjs/testing": "^11.0.1", "@nestjs/testing": "^11.0.1",
@@ -68,24 +70,23 @@
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0", "tsconfig-paths": "^4.2.0",
"typescript": "~6.0.2", "typescript": "~6.0.2",
"typescript-eslint": "^8.20.0", "typescript-eslint": "^8.20.0"
"@gongxue/typescript-config": "*"
}, },
"jest": { "jest": {
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"moduleFileExtensions": [ "moduleFileExtensions": [
"js", "js",
"json", "json",
"ts" "ts"
], ],
"rootDir": "src", "rootDir": "src",
"testEnvironment": "node",
"testRegex": ".*\\.spec\\.ts$", "testRegex": ".*\\.spec\\.ts$",
"transform": { "transform": {
"^.+\\.(t|j)s$": "ts-jest" "^.+\\.(t|j)s$": "ts-jest"
}, }
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
} }
} }

1
apps/server/src/global.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
/// <reference types="multer" />

View File

@@ -1,4 +1,7 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "./src"
},
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"] "exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
} }

View File

@@ -2,6 +2,7 @@
"extends": "@gongxue/typescript-config/nestjs.json", "extends": "@gongxue/typescript-config/nestjs.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./dist", "outDir": "./dist",
"baseUrl": "./" "rootDir": "./",
"ignoreDeprecations": "6.0"
} }
} }

View File

@@ -1,6 +1,7 @@
{ {
"name": "gongxue-base", "name": "gongxue-base",
"private": true, "private": true,
"packageManager": "npm@11.12.1",
"workspaces": [ "workspaces": [
"apps/*", "apps/*",
"packages/*" "packages/*"

View File

@@ -15,6 +15,7 @@
"incremental": true, "incremental": true,
"noImplicitAny": false, "noImplicitAny": false,
"strictBindCallApply": false, "strictBindCallApply": false,
"noFallthroughCasesInSwitch": false "noFallthroughCasesInSwitch": false,
"strictPropertyInitialization": false
} }
} }