Skip to content

Commit 5a4e929

Browse files
octocorvusthestinger
authored andcommitted
get Pako via package manager
Also add support for updating Pako files in dist/vendor during build step.
1 parent 2ca0b56 commit 5a4e929

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"author": "Danny Lin <[email protected]>",
88
"license": "MIT",
99
"dependencies": {
10-
"@zip.js/zip.js": "^2.7.6"
10+
"@zip.js/zip.js": "^2.7.6",
11+
"pako": "^2.1.0"
1112
},
1213
"devDependencies": {
1314
"@rollup/plugin-node-resolve": "^15.0.2",
@@ -22,7 +23,7 @@
2223
"typescript": "^5.0.4"
2324
},
2425
"scripts": {
25-
"build": "rollup -c && cp node_modules/@zip.js/zip.js/dist/z-worker-pako.js dist/vendor"
26+
"build": "rollup -c && cp node_modules/{@zip.js/zip.js/dist/z-worker-pako.js,pako/dist/pako_inflate.min.js} dist/vendor"
2627
},
2728
"files": [
2829
"dist/fastboot.*"

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,11 @@ p-locate@^5.0.0:
684684
dependencies:
685685
p-limit "^3.0.2"
686686

687+
pako@^2.1.0:
688+
version "2.1.0"
689+
resolved "https://registry.yarnpkg.com/pako/-/pako-2.1.0.tgz#266cc37f98c7d883545d11335c00fbd4062c9a86"
690+
integrity sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==
691+
687692
parent-module@^1.0.0:
688693
version "1.0.1"
689694
resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"

0 commit comments

Comments
 (0)