Skip to content

Commit

Permalink
🌱 Refactor dist npm script
Browse files Browse the repository at this point in the history
Change the copy package used to generate the `dist/`
folder after building to use `copy-files-from-to`.

The package change allows us to have a configuration
file with multiple includes and excludes to make sure
we copy only exactly what is needed when the `dist/`
folder is built.  The contents of the `dist/` folder
is what is copied into the runtime container.  It
should be as light as possible.

Signed-off-by: Scott J Dickerson <[email protected]>
  • Loading branch information
sjd78 committed Aug 27, 2024
1 parent 775c1b7 commit 6aafb12
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 173 deletions.
15 changes: 15 additions & 0 deletions copy-dist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"copyFiles": [
{
"from": [
"LICENSE",
"entrypoint.sh",
"**/package.json",
"*/dist/**/*",
"!hack/**/*",
"!**/node_modules/**/*"
],
"to": "dist/"
}
]
}
Loading

0 comments on commit 6aafb12

Please sign in to comment.