diff --git a/Dockerfile.alpine b/Dockerfile.alpine index da4e437..58ddc3f 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -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 diff --git a/Dockerfile.stretch b/Dockerfile.stretch index 64506aa..b779f6f 100644 --- a/Dockerfile.stretch +++ b/Dockerfile.stretch @@ -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 diff --git a/package.json b/package.json index b905978..5f80a0f 100644 --- a/package.json +++ b/package.json @@ -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",