mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 09:59:41 -05:00
sharp makes the attachment thumbnails. Every bundle except amd64 is made from the amd64 Linux bundle, and npm installed only @img/sharp-linux-x64 there. Reading the published v12.32 zips showed that every other bundle carried that one package and nothing it could load: arm64, ppc64le, s390x, riscv64, i386, armhf, armv7, armv6, mac-arm64 and mac-x64, as well as the Docker images and snaps built from them. Thumbnails fell back to the full-size image, and nothing failed. releases/windows-native-packages.mjs becomes platform-native-packages.mjs, <bundle> <win32|linux|darwin> <arch>. It removes the packages npm would not install on that target (os, cpu, and on Linux libc), downloads @img/sharp-<platform>-<arch> and its own libvips at the versions pinned, checks each against the registry's sha512, and checks every native addon's header for the target. sharp publishes nothing native for Linux i386 or loong64, so there it uses @img/sharp-wasm32. That package is now a root optional dependency in package.json, at sharp's own range. It was run under Node 26 with no native package: it made a 512 px WebP thumbnail and a GIF. check-addon-arch.mjs now reads ELF (with byte order) and Mach-O (including universal binaries) as well as PE, and follows npm's libc rule on Linux. The script now runs in build-amd64, build-arm64 (in its arm64 container), both macOS jobs, all three Windows jobs, and build-extra-arches through install-node-for-arch.sh. There it runs with the target node's own process.arch, so armv6/armv7/armhf are arm, ppc64le is ppc64 and i386 is ia32. build-release-bundle.sh runs it for the local machine. Against the published v12.32 zips, given their native addons, it added the right sharp and libvips for all eleven Linux and macOS bundles, kept wasm32 for i386, and passed every bcrypt, argon2 and sharp binary. Checked the other way, the s390x bundle was refused as ppc64. tests/platformNativePackages.test.cjs covers the script with a mocked registry (libvips, wasm fallback, wrong CPU, tampered tarball, path traversal). tests/sharpEveryPlatform.test.cjs requires every job that makes a bundle zip to run it for its own target, after the prune and before the zip, and the wasm32 dependency to stay at sharp's version. Thanks to xet7 !
141 lines
4.8 KiB
JSON
141 lines
4.8 KiB
JSON
{
|
|
"name": "wekan",
|
|
"version": "v12.31.0",
|
|
"description": "Open-Source kanban",
|
|
"private": true,
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/wekan/wekan.git"
|
|
},
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/wekan/wekan/issues"
|
|
},
|
|
"homepage": "https://wekan.fi",
|
|
"meteor": {
|
|
"mainModule": {
|
|
"client": "client/main.js",
|
|
"server": "server/main.js"
|
|
},
|
|
"testModule": {
|
|
"client": "client/lib/tests/index.js",
|
|
"server": "server/lib/tests/index.js"
|
|
},
|
|
"modern": true
|
|
},
|
|
"scripts": {
|
|
"test": "EMAIL_RECEIPT_SWEEP_INTERVAL_MS=1000 WRITABLE_PATH=${WRITABLE_PATH:-..} meteor test --full-app --once --driver-package meteortesting:mocha",
|
|
"test:unit:node": "node tests/run-node-suites.cjs",
|
|
"test:unit:all": "npm run test:unit:node",
|
|
"test:watch": "WRITABLE_PATH=${WRITABLE_PATH:-..} meteor test --full-app --driver-package meteortesting:mocha",
|
|
"test:e2e": "node tests/e2e/list-regressions.js",
|
|
"test:playwright": "cd tests/playwright && npm install && npx playwright test",
|
|
"test:playwright:ui": "cd tests/playwright && npx playwright test --ui",
|
|
"test:playwright:all": "cd tests/playwright && WEKAN_PLAYWRIGHT_ALL=1 npx playwright test --project=chromium --project=firefox --project=webkit",
|
|
"test:playwright:report": "cd tests/playwright && npx playwright show-report",
|
|
"playwright:install": "cd tests/playwright && npx playwright install --with-deps",
|
|
"postinstall": "node scripts/patch-yargs-dirname.cjs && node scripts/patch-pdfkit-entry.cjs && node scripts/patch-meteor-node-stubs-pbkdf2.cjs"
|
|
},
|
|
"devDependencies": {
|
|
"@meteorjs/rspack": "^3.0.0-rc.0",
|
|
"@rsdoctor/rspack-plugin": "^1.6.4",
|
|
"@rspack/cli": "^2.2.7",
|
|
"@rspack/core": "^2.2.7",
|
|
"@rspack/dev-server": "^2.2.1",
|
|
"@swc/core": "^1.16.2",
|
|
"@typescript-eslint/eslint-plugin": "^8.71.0",
|
|
"@typescript-eslint/parser": "^8.71.0",
|
|
"chai": "^6.3.0",
|
|
"chai-as-promised": "^8.0.2",
|
|
"css-loader": "^7.1.4",
|
|
"enhanced-resolve": "5.26.0",
|
|
"mongodb": "^7.7.0",
|
|
"puppeteer": "^25.9.0",
|
|
"sinon": "^22.1.0",
|
|
"sinon-chai": "^4.0.1",
|
|
"style-loader": "^4.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "3.1147.0",
|
|
"@aws-sdk/lib-storage": "~3.1147.0",
|
|
"@azure/storage-blob": "^12.33.0",
|
|
"@babel/parser": "^8.0.4",
|
|
"@babel/runtime": "^8.0.0",
|
|
"@fastify/busboy": "^3.2.2",
|
|
"@google-cloud/storage": "^8.0.1",
|
|
"@meteorjs/reify": "^0.25.4",
|
|
"@node-saml/node-saml": "^5.1.0",
|
|
"@rwap/jquery-ui-touch-punch": "^1.0.11",
|
|
"@swc/helpers": "^0.5.23",
|
|
"@textcomplete/contenteditable": "^0.1.13",
|
|
"@textcomplete/core": "^0.1.13",
|
|
"@textcomplete/textarea": "^0.1.13",
|
|
"@tweedegolf/sab-adapter-amazon-s3": "^3.0.4",
|
|
"@tweedegolf/sab-adapter-azure-blob": "^3.0.2",
|
|
"@tweedegolf/sab-adapter-google-cloud": "^3.0.2",
|
|
"@wekan/office-open-xml-viewer": "file:npm-packages/office-open-xml-viewer",
|
|
"@wekanteam/capnp-es": "file:npm-packages/capnp-es",
|
|
"@wekanteam/dragscroll": "file:npm-packages/dragscroll",
|
|
"@wekanteam/exceljs": "file:npm-packages/exceljs",
|
|
"@wekanteam/html-to-markdown": "file:npm-packages/html-to-markdown",
|
|
"@wekanteam/meteor-globals": "file:npm-packages/meteor-globals",
|
|
"@wekanteam/meteor-reactive-cache": "file:npm-packages/meteor-reactive-cache",
|
|
"archiver": "^8.0.0",
|
|
"autosize": "^6.0.1",
|
|
"blockly": "13.3.0",
|
|
"bson": "^7.3.1",
|
|
"chart.js": "^4.5.1",
|
|
"dhtmlx-gantt": "^10.0.3",
|
|
"dompurify": "^3.4.16",
|
|
"escape-string-regexp": "^5.0.0",
|
|
"fflate": "^0.8.3",
|
|
"file-type": "^22.1.1",
|
|
"filesize": "^11.0.22",
|
|
"frappe-gantt": "^1.2.2",
|
|
"glob": "^13.0.6",
|
|
"highlight.js": "^11.12.0",
|
|
"hotkeys-js": "^4.0.8",
|
|
"htmlparser2": "^12.0.0",
|
|
"i18next": "^26.4.1",
|
|
"i18next-sprintf-postprocessor": "^0.2.2",
|
|
"jquery": "^4.0.0",
|
|
"jquery-ui": "^1.14.2",
|
|
"limax": "^4.2.3",
|
|
"markdown-it": "^15.0.2",
|
|
"markdown-it-emoji": "^3.0.0",
|
|
"markdown-it-math": "^6.0.0",
|
|
"meteor-accounts-t9n": "^2.6.0",
|
|
"meteor-node-stubs": "^1.2.30",
|
|
"papaparse": "^5.5.4",
|
|
"pbkdf2": "^3.1.7",
|
|
"pdfjs-dist": "~6.2.108",
|
|
"pdfkit": "^0.20.2",
|
|
"pretty-ms": "^9.3.1",
|
|
"sanitize-html": "2.18.0",
|
|
"sharp": "^0.35.5",
|
|
"temml": "^0.13.3",
|
|
"underscore": "^1.13.8",
|
|
"unzipper": "^0.12.5",
|
|
"wasmagic": "1.0.11"
|
|
},
|
|
"overrides": {
|
|
"sourcemap-codec": "npm:@jridgewell/sourcemap-codec@^1.4.15",
|
|
"elliptic": "^6.6.1",
|
|
"archiver-utils": {
|
|
"glob": "$glob"
|
|
},
|
|
"uuid": "^14.0.0",
|
|
"webpack-dev-server": "^5.2.6",
|
|
"http-proxy-middleware": "^2.0.10",
|
|
"express": {
|
|
"qs": "6.16.0",
|
|
"body-parser": {
|
|
"qs": "6.16.0"
|
|
}
|
|
}
|
|
},
|
|
"optionalDependencies": {
|
|
"@img/sharp-wasm32": "^0.35.5"
|
|
}
|
|
}
|