diff --git a/apps/game-utils/package.json b/apps/game-utils/package.json index 176c3d80..39720757 100644 --- a/apps/game-utils/package.json +++ b/apps/game-utils/package.json @@ -10,10 +10,14 @@ "typecheck": "tsc -p jsconfig.json --noEmit" }, "dependencies": { - "@tabulous/types": "workspace:*", "deepmerge": "^4.3.1" }, "devDependencies": { + "@tabulous/types": "workspace:*", "ajv": "^8.12.0" - } + }, + "files": [ + "src/", + "package.json" + ] } diff --git a/apps/server/package.json b/apps/server/package.json index 5f30f52b..48be4f6e 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -39,6 +39,7 @@ }, "files": [ "src/", - "migrations/" + "migrations/", + "package.json" ] } diff --git a/hosting/build.sh b/hosting/build.sh index e3414bcc..d18ae741 100755 --- a/hosting/build.sh +++ b/hosting/build.sh @@ -17,7 +17,7 @@ cp .nvmrc dist/ rm -rf node_modules apps/*/node_modules pnpm -F server --ignore-scripts --prod deploy dist/server cd dist/server -tar --create --file ../server.tar.gz -z node_modules/ src/ migrations/ package.json +tar --create --file ../server.tar.gz -z * cd ../.. rm -rd dist/server @@ -25,8 +25,9 @@ rm -rd dist/server rm -rf node_modules apps/*/node_modules pnpm -F game-utils --ignore-scripts --prod deploy dist/game-utils cd dist/game-utils -tar --create --file ../../dist/game-utils.tar.gz -z node_modules/ src/ package.json +tar --create --file ../../dist/game-utils.tar.gz -z * cd ../.. +rm -rd dist/game-utils # build games cd apps/games diff --git a/package.json b/package.json index 2ccfce5c..3548ccab 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "repository": { "url": "https://github.com/feugy/tabulous" }, - "packageManager": "pnpm@8.5.1", + "packageManager": "pnpm@8.8.0", "scripts": { "dev:cli": "pnpm -F cli test:dev", "dev:server": "pnpm -F server test:dev", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8495961e..1fffa5b9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -121,13 +121,13 @@ importers: apps/game-utils: dependencies: - '@tabulous/types': - specifier: workspace:* - version: link:../types deepmerge: specifier: ^4.3.1 version: 4.3.1 devDependencies: + '@tabulous/types': + specifier: workspace:* + version: link:../types ajv: specifier: ^8.12.0 version: 8.12.0