feat: 각 패키지에 타입 체크 스크립트 추가 및 빌드 스크립트 수정
This commit is contained in:
@@ -7,7 +7,8 @@
|
|||||||
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/game-api",
|
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/game-api",
|
||||||
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/game-api --watch",
|
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/game-api --watch",
|
||||||
"lint": "node -e \"console.log('lint not configured')\"",
|
"lint": "node -e \"console.log('lint not configured')\"",
|
||||||
"test": "node -e \"console.log('test not configured')\""
|
"test": "node -e \"console.log('test not configured')\"",
|
||||||
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tsdown": "^0.18.3"
|
"tsdown": "^0.18.3"
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/game-engine",
|
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/game-engine",
|
||||||
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/game-engine --watch",
|
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/game-engine --watch",
|
||||||
"lint": "node -e \"console.log('lint not configured')\"",
|
"lint": "node -e \"console.log('lint not configured')\"",
|
||||||
"test": "vitest run --config vitest.config.ts"
|
"test": "vitest run --config vitest.config.ts",
|
||||||
|
"typecheck": "tsc -p tsconfig.build.json --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sammo-ts/common": "workspace:*",
|
"@sammo-ts/common": "workspace:*",
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": "../..",
|
||||||
|
"composite": false
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src",
|
||||||
|
"../../packages/common/src",
|
||||||
|
"../../packages/logic/src"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -7,6 +7,7 @@
|
|||||||
"build": "tsc -p tsconfig.json",
|
"build": "tsc -p tsconfig.json",
|
||||||
"dev": "node -e \"console.log('dev not configured')\"",
|
"dev": "node -e \"console.log('dev not configured')\"",
|
||||||
"lint": "node -e \"console.log('lint not configured')\"",
|
"lint": "node -e \"console.log('lint not configured')\"",
|
||||||
"test": "node -e \"console.log('test not configured')\""
|
"test": "node -e \"console.log('test not configured')\"",
|
||||||
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/gateway-api",
|
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/gateway-api",
|
||||||
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/gateway-api --watch",
|
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/gateway-api --watch",
|
||||||
"lint": "node -e \"console.log('lint not configured')\"",
|
"lint": "node -e \"console.log('lint not configured')\"",
|
||||||
"test": "node -e \"console.log('test not configured')\""
|
"test": "node -e \"console.log('test not configured')\"",
|
||||||
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tsdown": "^0.18.3"
|
"tsdown": "^0.18.3"
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
"build": "tsc -p tsconfig.json",
|
"build": "tsc -p tsconfig.json",
|
||||||
"dev": "node -e \"console.log('dev not configured')\"",
|
"dev": "node -e \"console.log('dev not configured')\"",
|
||||||
"lint": "node -e \"console.log('lint not configured')\"",
|
"lint": "node -e \"console.log('lint not configured')\"",
|
||||||
"test": "node -e \"console.log('test not configured')\""
|
"test": "node -e \"console.log('test not configured')\"",
|
||||||
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -6,7 +6,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "pnpm -r lint",
|
"lint": "pnpm -r lint",
|
||||||
"test": "pnpm -r test",
|
"test": "pnpm -r test",
|
||||||
"build": "pnpm -r build",
|
"build": "pnpm -r typecheck && pnpm -r build",
|
||||||
|
"typecheck": "pnpm -r typecheck",
|
||||||
"dev": "pnpm -r dev",
|
"dev": "pnpm -r dev",
|
||||||
"build:server": "pnpm --filter ./tools/build-scripts build:server --"
|
"build:server": "pnpm --filter ./tools/build-scripts build:server --"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/common",
|
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/common",
|
||||||
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/common --watch",
|
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/common --watch",
|
||||||
"lint": "node -e \"console.log('lint not configured')\"",
|
"lint": "node -e \"console.log('lint not configured')\"",
|
||||||
"test": "vitest run --config vitest.config.ts"
|
"test": "vitest run --config vitest.config.ts",
|
||||||
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"js-sha512": "^0.9.0"
|
"js-sha512": "^0.9.0"
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/infra",
|
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/infra",
|
||||||
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/infra --watch",
|
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/infra --watch",
|
||||||
"lint": "node -e \"console.log('lint not configured')\"",
|
"lint": "node -e \"console.log('lint not configured')\"",
|
||||||
"test": "node -e \"console.log('test not configured')\""
|
"test": "node -e \"console.log('test not configured')\"",
|
||||||
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prisma/client": "^5.18.0",
|
"@prisma/client": "^5.18.0",
|
||||||
|
|||||||
@@ -15,7 +15,8 @@
|
|||||||
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/logic",
|
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/logic",
|
||||||
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/logic --watch",
|
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/logic --watch",
|
||||||
"lint": "node -e \"console.log('lint not configured')\"",
|
"lint": "node -e \"console.log('lint not configured')\"",
|
||||||
"test": "vitest run --config vitest.config.ts"
|
"test": "vitest run --config vitest.config.ts",
|
||||||
|
"typecheck": "tsc -p tsconfig.build.json --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sammo-ts/common": "workspace:*",
|
"@sammo-ts/common": "workspace:*",
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
{
|
{
|
||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"paths": {}
|
"rootDir": "../..",
|
||||||
|
"composite": false
|
||||||
},
|
},
|
||||||
"references": [
|
"include": [
|
||||||
{ "path": "../common" }
|
"src",
|
||||||
|
"../common/src"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"dev": "node -e \"console.log('dev not configured')\"",
|
"dev": "node -e \"console.log('dev not configured')\"",
|
||||||
"lint": "node -e \"console.log('lint not configured')\"",
|
"lint": "node -e \"console.log('lint not configured')\"",
|
||||||
"test": "node -e \"console.log('test not configured')\"",
|
"test": "node -e \"console.log('test not configured')\"",
|
||||||
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
||||||
"build:server": "node ./build-server.mjs"
|
"build:server": "node ./build-server.mjs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user