chore: fix lint and add lint to CI job (#79)
This commit is contained in:
@@ -14,6 +14,7 @@ workflows:
|
|||||||
override-ci-command: yarn install --frozen-lockfile --ignore-engines
|
override-ci-command: yarn install --frozen-lockfile --ignore-engines
|
||||||
test-steps:
|
test-steps:
|
||||||
- run: yarn build
|
- run: yarn build
|
||||||
|
- run: yarn lint
|
||||||
- run: yarn test
|
- run: yarn test
|
||||||
use-test-steps: true
|
use-test-steps: true
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc && tsc -p tsconfig.esm.json",
|
"build": "tsc && tsc -p tsconfig.esm.json",
|
||||||
"lint": "prettier --check \"src/**/*.ts\"",
|
"lint": "prettier --check \"src/**/*.ts\"",
|
||||||
|
"prettier:write": "prettier --write \"src/**/*.ts\"",
|
||||||
"prepublishOnly": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
"test": "exit 0",
|
"test": "exit 0",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ const MACHO_MAGIC = new Set([
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
const MACHO_UNIVERSAL_MAGIC = new Set([
|
const MACHO_UNIVERSAL_MAGIC = new Set([
|
||||||
// universal
|
// universal
|
||||||
0xcafebabe,
|
0xcafebabe,
|
||||||
0xbebafeca,
|
0xbebafeca,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
export const detectAsarMode = async (appPath: string) => {
|
export const detectAsarMode = async (appPath: string) => {
|
||||||
@@ -153,7 +153,10 @@ export const mergeASARs = async ({
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MACHO_UNIVERSAL_MAGIC.has(x64Content.readUInt32LE(0)) && MACHO_UNIVERSAL_MAGIC.has(arm64Content.readUInt32LE(0))) {
|
if (
|
||||||
|
MACHO_UNIVERSAL_MAGIC.has(x64Content.readUInt32LE(0)) &&
|
||||||
|
MACHO_UNIVERSAL_MAGIC.has(arm64Content.readUInt32LE(0))
|
||||||
|
) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user