Add performance update when creating npm package
blackfalcon opened this issue · comments
Is your feature request related to a problem? Please describe.
Currently, we are copying JSON resources from the ./src dir to the ./dist dir for the package. Currently, we are shipping all this content with each npm release.
total 96
drwxr-xr-x 13 dalesande staff 416 Aug 24 15:30 ./
drwxr-xr-x 24 dalesande staff 768 Aug 24 15:30 ../
drwxr-xr-x 10 dalesande staff 320 Aug 24 15:30 .github/
drwxr-xr-x 3 dalesande staff 96 Aug 24 15:30 .husky/
-rw-r--r-- 1 dalesande staff 21092 Oct 26 1985 CHANGELOG.md
-rw-r--r-- 1 dalesande staff 11357 Oct 26 1985 LICENSE
-rw-r--r-- 1 dalesande staff 113 Oct 26 1985 NOTICE
-rw-r--r-- 1 dalesande staff 4006 Oct 26 1985 README.md
drwxr-xr-x 18 dalesande staff 576 Aug 24 15:30 dist/
drwxr-xr-x 6 dalesande staff 192 Aug 24 15:30 docs/
-rw-r--r-- 1 dalesande staff 2373 Oct 26 1985 package.json
drwxr-xr-x 3 dalesande staff 96 Aug 24 15:30 packageScripts/
drwxr-xr-x 3 dalesande staff 96 Aug 24 15:30 templates/
This command is no longer needed either
Line 35 in c4017db
Describe the solution you'd like
Update the .npmignore to allow the ./src dir to be included in the npm package and then only the processed resources are located in the ./dist dir. We should have something like the following:
drwxr-xr-x 13 dalesande staff 416 Aug 24 15:30 ./
drwxr-xr-x 24 dalesande staff 768 Aug 24 15:30 ../
-rw-r--r-- 1 dalesande staff 11357 Oct 26 1985 LICENSE
-rw-r--r-- 1 dalesande staff 4006 Oct 26 1985 README.md
drwxr-xr-x 18 dalesande staff 576 Aug 24 15:30 dist/
drwxr-xr-x 4 dalesande staff 128 Aug 21 16:41 src/
-rw-r--r-- 1 dalesande staff 2373 Oct 26 1985 package.json
Describe alternatives you've considered
n/a
Additional context
This issue will be considered complete once the project has been better optimized to reduce the unnecessary duplication, movement, and delivery of unnecessary resources.