migrate to npm
This commit is contained in:
parent
688dfc0e35
commit
d19a9cdc2c
|
@ -1,9 +1,9 @@
|
||||||
FROM oven/bun:1 AS install
|
FROM node:23-alpine AS install
|
||||||
RUN mkdir -p /temp/prod
|
RUN mkdir -p /temp/prod
|
||||||
COPY package.json bun.lockb /temp/prod/
|
COPY package*.json /temp/prod/
|
||||||
RUN cd /temp/prod && bun install --frozen-lockfile
|
RUN cd /temp/prod && npm install --frozen-lockfile
|
||||||
COPY . /temp/prod/
|
COPY . /temp/prod/
|
||||||
RUN cd /temp/prod && bun run build
|
RUN cd /temp/prod && npm run build
|
||||||
|
|
||||||
FROM nginx AS release
|
FROM nginx AS release
|
||||||
COPY --from=install /temp/prod/dist /usr/share/nginx/html
|
COPY --from=install /temp/prod/dist /usr/share/nginx/html
|
||||||
|
|
|
@ -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"
|
|
File diff suppressed because it is too large
Load Diff
|
@ -5,7 +5,7 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "docker compose down -v && docker compose watch",
|
"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"
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue