Skip to content

Commit 78182e1

Browse files
committed
chore: upgrade pnpm setup
fix: backend build script fix: backend build script fix: backend build script fix: backend build script fix: backend build script fix: backend build script
1 parent 09d37be commit 78182e1

File tree

11 files changed

+27
-7
lines changed

11 files changed

+27
-7
lines changed

.github/workflows/cd-publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fetch-depth: 0
2121

2222
- name: Setup pnpm
23-
uses: pnpm/action-setup@v3
23+
uses: pnpm/action-setup@v4
2424

2525
- name: Setup Node
2626
uses: actions/setup-node@v4

.github/workflows/cd-registries.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242

4343
- name: Setup pnpm
44-
uses: pnpm/action-setup@v3
44+
uses: pnpm/action-setup@v4
4545

4646
- name: Setup Node
4747
uses: actions/setup-node@v4

.github/workflows/ci-checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222

2323
- name: Setup pnpm
24-
uses: pnpm/action-setup@v3
24+
uses: pnpm/action-setup@v4
2525

2626
- name: Setup Node
2727
uses: actions/setup-node@v4

.github/workflows/ci-version.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: actions/checkout@v4
1515

1616
- name: Setup pnpm
17-
uses: pnpm/action-setup@v3
17+
uses: pnpm/action-setup@v4
1818

1919
- name: Setup Node
2020
uses: actions/setup-node@v4

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
inject-workspace-packages=true

apps/backend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ RUN apk add --no-cache dumb-init curl postgresql17-client
33
ENV NODE_ENV=production
44
ENV PORT=3000
55
WORKDIR /usr/src/app
6-
COPY dist/ .
6+
COPY dist/deploy/ .
77
RUN chown -R node:node .
88
USER node
99
EXPOSE 3000
1010
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
1111
CMD curl --head --fail http://localhost:3000/health || exit 1
12-
CMD ["dumb-init", "node", "src/main.js"]
12+
CMD ["dumb-init", "node", "dist/src/main.js"]

apps/backend/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
"description": "",
77
"author": "openscript GmbH",
88
"license": "MIT",
9+
"files": [
10+
"dist"
11+
],
912
"scripts": {
1013
"build": "nest build",
11-
"postbuild": "pnpm install --prod --filter . --modules-dir dist/node_modules_temp && cp -rL dist/node_modules_temp dist/node_modules && rm -rf dist/node_modules_temp",
14+
"postbuild": "pnpm deploy --prod --filter @quassel/backend dist/deploy",
1215
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
1316
"start": "nest start",
1417
"dev": "nest start --watch --preserveWatchOutput",

libs/ui/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
},
1919
"./style.css": "./dist/style.css"
2020
},
21+
"files": [
22+
"dist"
23+
],
2124
"scripts": {
2225
"dev": "nx run-many -t build:dev --output-style stream-without-prefixes",
2326
"build": "vite build --minify",

libs/utils/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"require": "./dist/index.cjs"
1717
}
1818
},
19+
"files": [
20+
"dist"
21+
],
1922
"scripts": {
2023
"dev": "nx run-many -t build:dev --output-style stream-without-prefixes",
2124
"build": "vite build --minify",

libs/utils/vite.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ export default defineConfig({
99
entry: "src/index.ts",
1010
name: packageJson.name,
1111
},
12+
rollupOptions: {
13+
output: {
14+
globals: {
15+
dayjs: "dayjs",
16+
"dayjs/plugin/utc.js": "dayjsPluginUtc",
17+
"dayjs/plugin/customParseFormat.js": "dayjsPluginCustomParseFormat",
18+
},
19+
},
20+
},
1221
},
1322
plugins: [dts({ entryRoot: "src", tsconfigPath: "tsconfig.json" })],
1423
});

pnpm-lock.yaml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)