1
0
Fork 0

feat(build): include compiled src in image

This commit is contained in:
Sean Sube 2022-04-24 17:51:37 -05:00
parent 90a7ba1cfe
commit 38e349a628
3 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,7 @@ COPY yarn.lock /salty-dog/yarn.lock
RUN yarn install --production
# copy chunks, largest to smallest (entrypoint)
COPY out/src/ /salty-dog/out/src/
COPY out/bundle/ /salty-dog/out/bundle/
# set up as global cli tool

View File

@ -19,6 +19,7 @@ COPY yarn.lock /salty-dog/yarn.lock
RUN yarn install --production
# copy build
COPY out/src/ /salty-dog/out/src/
COPY out/bundle/ /salty-dog/out/bundle/
# set up as global cli tool

View File

@ -28,7 +28,8 @@
"test": "test"
},
"exports": {
"app": "./out/src/app.js"
"./app": "./out/src/app.js",
"./bundle": "./out/bundle/index.cjs"
},
"scripts": {
"build": "make",