Use yarn, remove manual type for package

This commit is contained in:
Max Isom 2020-12-03 16:08:07 -05:00
parent 577c976623
commit faa1dcd5ec
No known key found for this signature in database
GPG key ID: 25C9B1A7F6798880
3 changed files with 4 additions and 3990 deletions

View file

@ -8,20 +8,20 @@ WORKDIR /usr/app
COPY package* ./ COPY package* ./
# Install prod dependencies # Install prod dependencies
RUN npm i --only=prod RUN yarn install --prod
# Dependencies # Dependencies
FROM base AS dependencies FROM base AS dependencies
# Install dev dependencies # Install dev dependencies
RUN npm install RUN yarn install
# Build app # Build app
FROM dependencies AS builder FROM dependencies AS builder
COPY . . COPY . .
RUN npm run build RUN yarn build
# Only copy essentials # Only copy essentials
FROM base AS prod FROM base AS prod
@ -30,4 +30,4 @@ COPY --from=builder /usr/app/dist dist
ENV DATA_DIR /data ENV DATA_DIR /data
CMD ["npm", "run", "start"] CMD ["yarn", "start"]

3983
package-lock.json generated

File diff suppressed because it is too large Load diff

3
src/packages.d.ts vendored
View file

@ -1,3 +0,0 @@
declare module 'array-shuffle' {
export default function <T>(arr: T[]): T[];
}