Skip to content

Commit

Permalink
get Pako via package manager
Browse files Browse the repository at this point in the history
Also add support for updating Pako files in dist/vendor during build step.
  • Loading branch information
octocorvus authored and thestinger committed Apr 22, 2023
1 parent 2ca0b56 commit 5a4e929
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"author": "Danny Lin <[email protected]>",
"license": "MIT",
"dependencies": {
"@zip.js/zip.js": "^2.7.6"
"@zip.js/zip.js": "^2.7.6",
"pako": "^2.1.0"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.0.2",
Expand All @@ -22,7 +23,7 @@
"typescript": "^5.0.4"
},
"scripts": {
"build": "rollup -c && cp node_modules/@zip.js/zip.js/dist/z-worker-pako.js dist/vendor"
"build": "rollup -c && cp node_modules/{@zip.js/zip.js/dist/z-worker-pako.js,pako/dist/pako_inflate.min.js} dist/vendor"
},
"files": [
"dist/fastboot.*"
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,11 @@ p-locate@^5.0.0:
dependencies:
p-limit "^3.0.2"

pako@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/pako/-/pako-2.1.0.tgz#266cc37f98c7d883545d11335c00fbd4062c9a86"
integrity sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==

parent-module@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"
Expand Down

0 comments on commit 5a4e929

Please sign in to comment.