migrate to npm

This commit is contained in:
Alie 2024-12-01 13:42:05 +01:00
parent 688dfc0e35
commit d19a9cdc2c
6 changed files with 3026 additions and 2507 deletions

View File

@ -1,9 +1,9 @@
FROM oven/bun:1 AS install
FROM node:23-alpine AS install
RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile
COPY package*.json /temp/prod/
RUN cd /temp/prod && npm install --frozen-lockfile
COPY . /temp/prod/
RUN cd /temp/prod && bun run build
RUN cd /temp/prod && npm run build
FROM nginx AS release
COPY --from=install /temp/prod/dist /usr/share/nginx/html

BIN
bun.lockb

Binary file not shown.

View File

@ -1,7 +0,0 @@
[test]
preload = './happydom.ts'
[install.lockfile]
# whether to save a non-Bun lockfile alongside bun.lockb
# only "yarn" is supported
print = "yarn"

3021
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "docker compose down -v && docker compose watch",
"build": "bunx --bun tsc && bunx --bun vite build",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
},
"dependencies": {

2495
yarn.lock

File diff suppressed because it is too large Load Diff