Skip to content

Commit 4c48c84

Browse files
idelvallcursoragent
andcommitted
build: add Earthfile with a dist target (mirrors lunar plugin build)
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 6ca63b7 commit 4c48c84

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Earthfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
VERSION 0.8
2+
FROM node:25-alpine3.21
3+
4+
deps:
5+
WORKDIR /json
6+
COPY package.json package-lock.json tsconfig.json ./
7+
RUN --mount=type=cache,target=/root/.npm npm ci
8+
COPY --dir .config .
9+
10+
src:
11+
FROM +deps
12+
COPY LICENSE CHANGELOG.md ./
13+
COPY --dir src .
14+
15+
dist:
16+
FROM +src
17+
RUN npm run build
18+
SAVE ARTIFACT dist AS LOCAL dist

0 commit comments

Comments
 (0)