mirror of
https://github.com/pezkuwichain/pezkuwi-extension.git
synced 2026-11-06 17:01:06 +00:00
The diff step rebuilds the extension from master-ff-src.zip (the source archive AMO reviews) and compares the result with our build. It had never worked, which the removed continue-on-error was hiding: - The source zip left out .yarn/releases (yarnPath points there, so yarn could not start in the unpacked source) and scripts/ (build:ff runs scripts/postbuild-cleanup.cjs). Both are now included. - diff.sh used `[ a || b ]`, which is not valid test syntax, and piped `diff -qr` into `sort`, so the check exited 0 whatever diff found. It now goes by diff's own exit status; with a file altered it fails. - With those fixed, the builds still differed: webpack inlined import.meta.url from @pezkuwi/* packageInfo.js as the absolute file:// path of the build machine, which also put our build directory into the published extension. DefinePlugin now gives it a fixed value; it is only shown in duplicate-version warnings. Also fail-fast: false on the matrix. Without continue-on-error, the first red step cancelled the others, so their results were lost. Checked locally with node_modules as locked: "Builds are identical".
94 lines
4.9 KiB
JSON
94 lines
4.9 KiB
JSON
{
|
|
"author": "Kurdistan Tech Institute <dev@pezkuwichain.io> & PezkuwiChain Team <team@pezkuwichain.io>",
|
|
"bugs": "https://github.com/pezkuwichain/pezkuwi-extension/issues",
|
|
"engines": {
|
|
"node": ">=18.14"
|
|
},
|
|
"homepage": "https://github.com/pezkuwichain/pezkuwi-extension#readme",
|
|
"license": "Apache-2.0",
|
|
"packageManager": "yarn@4.12.0",
|
|
"private": true,
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/pezkuwichain/pezkuwi-extension.git"
|
|
},
|
|
"sideEffects": false,
|
|
"type": "module",
|
|
"version": "0.62.24",
|
|
"versions": {
|
|
"git": "0.62.6",
|
|
"npm": "0.62.6"
|
|
},
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"build": "yarn build:chrome && yarn build:ff",
|
|
"build:before": "yarn build:i18n",
|
|
"build:chrome": "cp ./packages/extension/manifest_chrome.json ./packages/extension/manifest.json && pezkuwi-dev-build-ts && node scripts/postbuild-cleanup.cjs && yarn build:zip:chrome && yarn build:rollup",
|
|
"build:ff": "cp ./packages/extension/manifest_firefox.json ./packages/extension/manifest.json && pezkuwi-dev-build-ts && node scripts/postbuild-cleanup.cjs && yarn build:zip:ff && yarn build:rollup",
|
|
"build:i18n": "i18next-scanner --config i18next-scanner.config.cjs",
|
|
"build:release": "pezkuwi-ci-ghact-build",
|
|
"build:rollup": "pezkuwi-exec-rollup --config",
|
|
"build:zip": "yarn build:zip:chrome && yarn build:zip:ff",
|
|
"build:zip:chrome": "cp ./packages/extension/manifest_chrome.json ./packages/extension/manifest.json && cp ./packages/extension/manifest_chrome.json ./packages/extension/build/manifest.json && yarn build:zip:dst:chrome && yarn build:zip:src:chrome",
|
|
"build:zip:dst:chrome": "rm -rf ./master-chrome-build.zip && cd packages/extension/build && zip -r -FS ../../../master-chrome-build.zip .",
|
|
"build:zip:dst:ff": "rm -rf ./master-ff-build.zip && cd packages/extension/build && zip -r -FS ../../../master-ff-build.zip .",
|
|
"build:zip:ff": "cp ./packages/extension/manifest_firefox.json ./packages/extension/manifest.json && cp ./packages/extension/manifest_firefox.json ./packages/extension/build/manifest.json && yarn build:zip:dst:ff && yarn build:zip:src:ff",
|
|
"build:zip:src:chrome": "rm -rf ./master-chrome-src.zip && zip -r -x '*build/*' -x '*node_modules*' -FS ./master-chrome-src.zip packages .editorconfig eslint.config.js rollup.config.js CHANGELOG.md CONTRIBUTING.md i18next-scanner.config.cjs LICENSE package.json README.md tsconfig.json yarn.lock .yarnrc.yml tsconfig.base.json tsconfig.build.json tsconfig.eslint.json tsconfig.webpack.json .yarn/releases scripts",
|
|
"build:zip:src:ff": "rm -rf ./master-ff-src.zip && zip -r -x '*build/*' -x '*node_modules*' -FS ./master-ff-src.zip packages .editorconfig eslint.config.js rollup.config.js CHANGELOG.md CONTRIBUTING.md i18next-scanner.config.cjs LICENSE package.json README.md tsconfig.json yarn.lock .yarnrc.yml tsconfig.base.json tsconfig.build.json tsconfig.eslint.json tsconfig.webpack.json .yarn/releases scripts",
|
|
"clean": "pezkuwi-dev-clean-build",
|
|
"diff": "rm -rf ff-diff && sh ./scripts/diff.sh",
|
|
"lint": "pezkuwi-dev-run-lint",
|
|
"lint:extension": "npx web-ext lint --source-dir ./packages/extension/build",
|
|
"pezkuwi-exec-webpack": "pezkuwi-exec-webpack",
|
|
"postinstall": "echo ok",
|
|
"test": "EXTENSION_PREFIX='test' pezkuwi-dev-run-test --loader ./packages/extension-mocks/src/loader-empty.js --env browser ^:.spec.tsx",
|
|
"test:one": "EXTENSION_PREFIX='test' pezkuwi-dev-run-test --env browser"
|
|
},
|
|
"devDependencies": {
|
|
"@pezkuwi/dev": "^0.85.7",
|
|
"@types/node": "^20.10.5",
|
|
"eslint-scope": "^5.1.1",
|
|
"i18next-scanner": "^4.4.0",
|
|
"rollup": "^4.55.1",
|
|
"sinon-chrome": "^3.0.1",
|
|
"webpack": "^5.90.0",
|
|
"webpack-cli": "^5.1.4"
|
|
},
|
|
"resolutions": {
|
|
"@pezkuwi/api": "^16.5.36",
|
|
"@pezkuwi/api-augment": "^16.5.36",
|
|
"@pezkuwi/api-base": "^16.5.36",
|
|
"@pezkuwi/api-derive": "^16.5.36",
|
|
"@pezkuwi/hw-ledger-transports": "^14.0.25",
|
|
"@pezkuwi/keyring": "^14.0.25",
|
|
"@pezkuwi/networks": "^14.0.25",
|
|
"@pezkuwi/rpc-augment": "^16.5.36",
|
|
"@pezkuwi/rpc-core": "^16.5.36",
|
|
"@pezkuwi/rpc-provider": "^16.5.36",
|
|
"@pezkuwi/types": "^16.5.36",
|
|
"@pezkuwi/types-augment": "^16.5.36",
|
|
"@pezkuwi/types-codec": "^16.5.36",
|
|
"@pezkuwi/types-create": "^16.5.36",
|
|
"@pezkuwi/types-known": "^16.5.36",
|
|
"@pezkuwi/types-support": "^16.5.36",
|
|
"@pezkuwi/ui-keyring": "^3.17.1",
|
|
"@pezkuwi/ui-shared": "^3.17.1",
|
|
"@pezkuwi/util": "^14.0.25",
|
|
"@pezkuwi/util-crypto": "^14.0.25",
|
|
"@pezkuwi/wasm-crypto": "^7.5.18",
|
|
"@pezkuwi/x-bigint": "^14.0.25",
|
|
"@pezkuwi/x-fetch": "^14.0.25",
|
|
"@pezkuwi/x-global": "^14.0.25",
|
|
"@pezkuwi/x-randomvalues": "^14.0.25",
|
|
"@pezkuwi/x-textdecoder": "^14.0.25",
|
|
"@pezkuwi/x-textencoder": "^14.0.25",
|
|
"@pezkuwi/x-ws": "^14.0.25",
|
|
"@types/react": "^18.3.3",
|
|
"@types/react-dom": "^18.3.0",
|
|
"safe-buffer": "^5.2.1",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|