From cfcc987fd3cb6b4e80b0576bbf226922b42e3ba0 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 28 Jan 2024 22:07:27 -0500 Subject: [PATCH] Fixing up version and others. --- .babelrc | 2 +- Dockerfile | 5 +++-- deploy.sh | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.babelrc b/.babelrc index b96976f8..fbfb0025 100644 --- a/.babelrc +++ b/.babelrc @@ -15,6 +15,6 @@ "plugins": [ "@babel/plugin-transform-runtime", ["babel-plugin-inferno", { "imports": true }], - ["@babel/plugin-proposal-class-properties", { "loose": true }] + ["@babel/plugin-transform-class-properties", { "loose": true }] ] } diff --git a/Dockerfile b/Dockerfile index b98ac5da..bab44af3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ ENV npm_config_target_libc=musl # Cache deps COPY package.json pnpm-lock.yaml ./ -RUN pnpm i --production --prefer-offline +RUN pnpm i # Build COPY generate_translations.js \ tsconfig.json \ @@ -31,7 +31,8 @@ COPY .git .git # Set UI version RUN echo "export const VERSION = '$(git describe --tag)';" > "src/shared/version.ts" -RUN pnpm i --production --prefer-offline +RUN pnpm i +RUN pnpm prebuild:prod RUN pnpm build:prod RUN rm -rf ./node_modules/import-sort-parser-typescript diff --git a/deploy.sh b/deploy.sh index ddc68af5..0ae56a9e 100755 --- a/deploy.sh +++ b/deploy.sh @@ -9,7 +9,7 @@ new_tag="$1" # sudo docker push dessalines/lemmy-ui:$new_tag # Upgrade version -npm version $new_tag +pnpm version $new_tag git push git tag $new_tag