From 5a4e9295c59d7e8b5f57c9f3f2aba3bc2f40e83b Mon Sep 17 00:00:00 2001 From: octocorvus Date: Tue, 18 Apr 2023 11:59:54 +0000 Subject: [PATCH] get Pako via package manager Also add support for updating Pako files in dist/vendor during build step. --- package.json | 5 +++-- yarn.lock | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d677fce..0b68f2d 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "author": "Danny Lin ", "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", @@ -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.*" diff --git a/yarn.lock b/yarn.lock index fb6cd19..6c3203a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"