Skip to content

A local-first personal finance app

Updating sync server package name to @actual-app/sync-server (#4370)

Michael Clark87779d31998f
diff --git a/package.json b/package.json
index 4d1d66729a..18ddbd1c81 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,7 @@
},
"scripts": {
"start": "yarn start:browser",
- "start:server": "yarn workspace actual-sync start",
+ "start:server": "yarn workspace @actual-app/sync-server start",
"start:desktop": "yarn rebuild-electron && npm-run-all --parallel 'start:desktop-*'",
"start:desktop-node": "yarn workspace loot-core watch:node",
"start:desktop-client": "yarn workspace @actual-app/web watch",
@@ -41,7 +41,7 @@
"rebuild-node": "yarn workspace loot-core rebuild",
"lint": "eslint . --max-warnings 0",
"lint:verbose": "DEBUG=eslint:cli-engine eslint . --max-warnings 0",
- "install:server": "yarn workspaces focus actual-sync --production",
+ "install:server": "yarn workspaces focus @actual-app/sync-server --production",
"typecheck": "yarn tsc && tsc-strict",
"jq": "./node_modules/node-jq/bin/jq",
"prepare": "husky"
diff --git a/packages/sync-server/docker/edge-alpine.Dockerfile b/packages/sync-server/docker/edge-alpine.Dockerfile
index 070ae8f65e..48a7fd6953 100644
--- a/packages/sync-server/docker/edge-alpine.Dockerfile
+++ b/packages/sync-server/docker/edge-alpine.Dockerfile
@@ -4,7 +4,7 @@ WORKDIR /app
COPY .yarn ./.yarn
COPY yarn.lock packages/sync-server/package.json .yarnrc.yml ./
RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi
-RUN yarn workspaces focus actual-sync --production
+RUN yarn workspaces focus @actual-app/sync-server --production
RUN if [ "$(uname -m)" = "armv7l" ]; then npm install bcrypt better-sqlite3 --build-from-source; fi
RUN mkdir /public
diff --git a/packages/sync-server/docker/edge-ubuntu.Dockerfile b/packages/sync-server/docker/edge-ubuntu.Dockerfile
index b0744a0954..18e009dad9 100644
--- a/packages/sync-server/docker/edge-ubuntu.Dockerfile
+++ b/packages/sync-server/docker/edge-ubuntu.Dockerfile
@@ -4,7 +4,7 @@ WORKDIR /app
COPY .yarn ./.yarn
COPY yarn.lock packages/sync-server/package.json .yarnrc.yml ./
RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi
-RUN yarn workspaces focus actual-sync --production
+RUN yarn workspaces focus @actual-app/sync-server --production
RUN mkdir /public
COPY artifacts.json /tmp/artifacts.json
diff --git a/packages/sync-server/docker/stable-alpine.Dockerfile b/packages/sync-server/docker/stable-alpine.Dockerfile
index 4fbf546ef5..0194d5ba69 100644
--- a/packages/sync-server/docker/stable-alpine.Dockerfile
+++ b/packages/sync-server/docker/stable-alpine.Dockerfile
@@ -4,7 +4,7 @@ WORKDIR /app
COPY .yarn ./.yarn
COPY yarn.lock packages/sync-server/package.json .yarnrc.yml ./
RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi
-RUN yarn workspaces focus actual-sync --production
+RUN yarn workspaces focus @actual-app/sync-server --production
RUN if [ "$(uname -m)" = "armv7l" ]; then npm install bcrypt better-sqlite3 --build-from-source; fi
FROM alpine:3.18 AS prod
diff --git a/packages/sync-server/docker/stable-ubuntu.Dockerfile b/packages/sync-server/docker/stable-ubuntu.Dockerfile
index a10d594476..01834a5102 100644
--- a/packages/sync-server/docker/stable-ubuntu.Dockerfile
+++ b/packages/sync-server/docker/stable-ubuntu.Dockerfile
@@ -4,7 +4,7 @@ WORKDIR /app
COPY .yarn ./.yarn
COPY yarn.lock packages/sync-server/package.json .yarnrc.yml ./
RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi
-RUN yarn workspaces focus actual-sync --production
+RUN yarn workspaces focus @actual-app/sync-server --production
FROM node:18-bookworm-slim AS prod
RUN apt-get update && apt-get install tini && apt-get clean -y && rm -rf /var/lib/apt/lists/*
diff --git a/packages/sync-server/package.json b/packages/sync-server/package.json
index e3532423b9..d5de6102a7 100644
--- a/packages/sync-server/package.json
+++ b/packages/sync-server/package.json
@@ -1,5 +1,5 @@
{
- "name": "actual-sync",
+ "name": "@actual-app/sync-server",
"version": "25.2.1",
"license": "MIT",
"description": "actual syncing server",
diff --git a/sync-server.Dockerfile b/sync-server.Dockerfile
index 9d83bf4052..eb17eeef7d 100644
--- a/sync-server.Dockerfile
+++ b/sync-server.Dockerfile
@@ -3,7 +3,7 @@ RUN apt-get update && apt-get install -y openssl
WORKDIR /app
COPY .yarn ./.yarn
COPY yarn.lock packages/sync-server/package.json .yarnrc.yml ./
-RUN yarn workspaces focus actual-sync --production
+RUN yarn workspaces focus @actual-app/sync-server --production
FROM node:18-bookworm-slim as prod
RUN apt-get update && apt-get install tini && apt-get clean -y && rm -rf /var/lib/apt/lists/*
diff --git a/upcoming-release-notes/4370.md b/upcoming-release-notes/4370.md
new file mode 100644
index 0000000000..f6b8476434
--- /dev/null
+++ b/upcoming-release-notes/4370.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [MikesGlitch]
+---
+
+Update package name of sync server to be consistent with the rest of the workspace
diff --git a/yarn.lock b/yarn.lock
index 925228ba6b..f8fb5e7d11 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -79,6 +79,50 @@ __metadata:
languageName: unknown
linkType: soft
+"@actual-app/sync-server@workspace:packages/sync-server":
+ version: 0.0.0-use.local
+ resolution: "@actual-app/sync-server@workspace:packages/sync-server"
+ dependencies:
+ "@actual-app/crdt": "npm:2.1.0"
+ "@actual-app/web": "npm:25.2.1"
+ "@babel/preset-typescript": "npm:^7.20.2"
+ "@types/bcrypt": "npm:^5.0.2"
+ "@types/better-sqlite3": "npm:^7.6.12"
+ "@types/cors": "npm:^2.8.13"
+ "@types/express": "npm:^4.17.17"
+ "@types/express-actuator": "npm:^1.8.0"
+ "@types/jest": "npm:^29.2.3"
+ "@types/node": "npm:^17.0.45"
+ "@types/supertest": "npm:^2.0.12"
+ "@types/uuid": "npm:^9.0.0"
+ "@typescript-eslint/eslint-plugin": "npm:^5.51.0"
+ "@typescript-eslint/parser": "npm:^5.51.0"
+ bcrypt: "npm:^5.1.1"
+ better-sqlite3: "npm:^11.7.0"
+ body-parser: "npm:^1.20.3"
+ cors: "npm:^2.8.5"
+ date-fns: "npm:^2.30.0"
+ debug: "npm:^4.3.4"
+ eslint: "npm:^8.33.0"
+ eslint-plugin-prettier: "npm:^4.2.1"
+ express: "npm:4.20.0"
+ express-actuator: "npm:1.8.4"
+ express-rate-limit: "npm:^6.7.0"
+ express-response-size: "npm:^0.0.3"
+ express-winston: "npm:^4.2.0"
+ jest: "npm:^29.3.1"
+ jws: "npm:^4.0.0"
+ migrate: "npm:^2.0.1"
+ nordigen-node: "npm:^1.4.0"
+ openid-client: "npm:^5.4.2"
+ prettier: "npm:^2.8.3"
+ supertest: "npm:^6.3.1"
+ typescript: "npm:^4.9.5"
+ uuid: "npm:^9.0.0"
+ winston: "npm:^3.14.2"
+ languageName: unknown
+ linkType: soft
+
"@actual-app/web@npm:25.2.1":
version: 25.2.1
resolution: "@actual-app/web@npm:25.2.1"
@@ -7485,50 +7529,6 @@ __metadata:
languageName: node
linkType: hard
-"actual-sync@workspace:packages/sync-server":
- version: 0.0.0-use.local
- resolution: "actual-sync@workspace:packages/sync-server"
- dependencies:
- "@actual-app/crdt": "npm:2.1.0"
- "@actual-app/web": "npm:25.2.1"
- "@babel/preset-typescript": "npm:^7.20.2"
- "@types/bcrypt": "npm:^5.0.2"
- "@types/better-sqlite3": "npm:^7.6.12"
- "@types/cors": "npm:^2.8.13"
- "@types/express": "npm:^4.17.17"
- "@types/express-actuator": "npm:^1.8.0"
- "@types/jest": "npm:^29.2.3"
- "@types/node": "npm:^17.0.45"
- "@types/supertest": "npm:^2.0.12"
- "@types/uuid": "npm:^9.0.0"
- "@typescript-eslint/eslint-plugin": "npm:^5.51.0"
- "@typescript-eslint/parser": "npm:^5.51.0"
- bcrypt: "npm:^5.1.1"
- better-sqlite3: "npm:^11.7.0"
- body-parser: "npm:^1.20.3"
- cors: "npm:^2.8.5"
- date-fns: "npm:^2.30.0"
- debug: "npm:^4.3.4"
- eslint: "npm:^8.33.0"
- eslint-plugin-prettier: "npm:^4.2.1"
- express: "npm:4.20.0"
- express-actuator: "npm:1.8.4"
- express-rate-limit: "npm:^6.7.0"
- express-response-size: "npm:^0.0.3"
- express-winston: "npm:^4.2.0"
- jest: "npm:^29.3.1"
- jws: "npm:^4.0.0"
- migrate: "npm:^2.0.1"
- nordigen-node: "npm:^1.4.0"
- openid-client: "npm:^5.4.2"
- prettier: "npm:^2.8.3"
- supertest: "npm:^6.3.1"
- typescript: "npm:^4.9.5"
- uuid: "npm:^9.0.0"
- winston: "npm:^3.14.2"
- languageName: unknown
- linkType: soft
-
"actual@workspace:.":
version: 0.0.0-use.local
resolution: "actual@workspace:."