Skip to content
Snippets Groups Projects
Commit a1f6a65f authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

pnpm in scripts

parent d5d8552d
No related branches found
No related tags found
1 merge request!334Draft: pnpm
......@@ -85,8 +85,8 @@ test:
- export SALT=$TEST_SALT
- export ELASTICSEARCH_NODE=http://elasticsearch:9200
script:
- npm i
- npm run test:cov
- pnpm i
- pnpm run test:cov
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
artifacts:
when: always
......
......@@ -9,7 +9,7 @@ COPY package*.json ./
RUN chgrp -R 0 /app && chmod -R g+rwX /app
RUN npm install --silent
RUN pnpm install --silent
# Bundle app source
COPY tsconfig.build.json .
......@@ -17,8 +17,8 @@ COPY tsconfig.json .
COPY src src
COPY scripts scripts
RUN npm run build
RUN pnpm run build
CMD npm run start:prod
CMD pnpm run start:prod
EXPOSE 3000
......@@ -65,7 +65,7 @@ rm mongo_clean_users.js
cd $CWD
if [ "$DB_NAME" = "ram" ]; then
cp $DUMP_DIR/.migrate .migrate
if [ "$TARGET_CONTAINER_NAME" = "resin-db" ]; then npm run migrate:up; fi
if [ "$TARGET_CONTAINER_NAME" = "resin-db" ]; then pnpm run migrate:up; fi
fi
docker exec $TARGET_CONTAINER_NAME rm -rf /dump/temp/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment