Skip to content

Commit

Permalink
chore: server dev scripts (#9445)
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed Dec 31, 2024
1 parent 8877321 commit 9c119e6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/developing-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ Now you should be able to start developing affine with server enabled.

```sh
# available at http://localhost:5555
yarn prisma studio
yarn affine server prisma studio
```
3 changes: 2 additions & 1 deletion packages/backend/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test:copilot": "ava \"tests/**/copilot-*.spec.ts\"",
"test:coverage": "c8 ava --concurrency 1 --serial",
"test:copilot:coverage": "c8 ava --timeout=5m \"tests/**/copilot-*.spec.ts\"",
"data-migration": "cross-env NODE_ENV=script node ./src/data/index.ts",
"data-migration": "cross-env NODE_ENV=script r ./src/data/index.ts",
"predeploy": "yarn prisma migrate deploy && NODE_ENV=script node --import ./scripts/register.js ./dist/data/index.js run",
"postinstall": "prisma generate"
},
Expand Down Expand Up @@ -91,6 +91,7 @@
},
"devDependencies": {
"@affine-test/kit": "workspace:*",
"@affine-tools/cli": "workspace:*",
"@affine/server-native": "workspace:*",
"@nestjs/testing": "^10.4.15",
"@types/cookie-parser": "^1.4.8",
Expand Down
6 changes: 5 additions & 1 deletion tools/utils/src/workspace.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,11 @@ export const PackageList = [
{
location: 'packages/backend/server',
name: '@affine/server',
workspaceDependencies: ['tests/kit', 'packages/backend/native'],
workspaceDependencies: [
'tests/kit',
'tools/cli',
'packages/backend/native',
],
},
{
location: 'packages/common/debug',
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ __metadata:
resolution: "@affine/server@workspace:packages/backend/server"
dependencies:
"@affine-test/kit": "workspace:*"
"@affine-tools/cli": "workspace:*"
"@affine/server-native": "workspace:*"
"@apollo/server": "npm:^4.11.2"
"@aws-sdk/client-s3": "npm:^3.709.0"
Expand Down

0 comments on commit 9c119e6

Please sign in to comment.