Open celedoniogarcia opened 1 month ago
Implement an update-package endpoint that accepts zipped TypeScript (TS) packages.
Unzip the contents of the zipped package and verify the file structure:
tsconfig.json
package.json
*.ts
Store the files in a temporary location.
Verify the package:
Compare contents:
Begin the “de-bloating” process:
webpack
.js
terser
Repackage the optimized files:
Store and version the package:
Similar Process to Upload Packages Features
Implement an update-package endpoint that accepts zipped TypeScript (TS) packages.
Unzip the contents of the zipped package and verify the file structure:
tsconfig.json
,package.json
,*.ts
files are present.Store the files in a temporary location.
Verify the package:
Compare contents:
Begin the “de-bloating” process:
webpack
to tree-shake the compiled.js
files.terser
to minimize the compiled.js
files.Repackage the optimized files:
Store and version the package: