Skip to content

Commit 189d64f

Browse files
committed
chore: run license header checks from root
1 parent 20fd673 commit 189d64f

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

app/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@
3434
"install-app:setup": "yarn install && yarn build:deps && cd ios && bundle install && bundle exec pod install && cd ..",
3535
"ios": "yarn build:deps && react-native run-ios --scheme OpenPassport",
3636
"ios:fastlane-debug": "yarn reinstall && bundle exec fastlane --verbose ios internal_test",
37-
"lint": "yarn lint:headers && eslint .",
38-
"lint:fix": "yarn lint:headers:fix && eslint --fix .",
39-
"lint:headers": "node ../scripts/check-duplicate-headers.cjs && node ../scripts/check-license-headers.mjs --check",
40-
"lint:headers:fix": "node ../scripts/check-duplicate-headers.cjs && node ../scripts/check-license-headers.mjs --fix",
37+
"lint": "eslint .",
38+
"lint:fix": "eslint --fix .",
4139
"mobile-deploy": "node scripts/mobile-deploy-confirm.cjs both",
4240
"mobile-deploy:android": "node scripts/mobile-deploy-confirm.cjs android",
4341
"mobile-deploy:ios": "node scripts/mobile-deploy-confirm.cjs ios",

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"format:root": "prettier --parser markdown --write *.md scripts/**/*.md && prettier --parser yaml --write .*.{yml,yaml} --single-quote false && prettier --write scripts/**/*.{js,mjs,ts} && prettier --parser json --write scripts/**/*.json",
1919
"gitleaks": "gitleaks protect --staged --redact --config=.gitleaks.toml",
2020
"postinstall": "patch-package",
21-
"lint": "yarn workspaces foreach --parallel -i --all --exclude self-workspace-root run lint",
21+
"lint": "yarn lint:headers && yarn workspaces foreach --parallel -i --all --exclude self-workspace-root run lint",
22+
"lint:headers": "node scripts/check-duplicate-headers.cjs app && node scripts/check-license-headers.mjs app --check && node scripts/check-duplicate-headers.cjs packages/mobile-sdk-alpha && node scripts/check-license-headers.mjs packages/mobile-sdk-alpha --check",
23+
"lint:headers:fix": "node scripts/check-duplicate-headers.cjs app && node scripts/check-license-headers.mjs app --fix && node scripts/check-duplicate-headers.cjs packages/mobile-sdk-alpha && node scripts/check-license-headers.mjs packages/mobile-sdk-alpha --fix",
2224
"prepare": "husky",
2325
"sort-package-jsons": "find . -name 'package.json' -not -path './node_modules/*' -not -path './*/node_modules/*' | xargs npx sort-package-json",
2426
"test": "yarn workspaces foreach --parallel -i --all run test",

packages/mobile-sdk-alpha/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@
3737
"fmt": "prettier --check .",
3838
"fmt:fix": "prettier --write .",
3939
"format": "yarn nice",
40-
"lint": "yarn lint:headers && eslint .",
41-
"lint:fix": "yarn lint:headers:fix && eslint --fix .",
42-
"lint:headers": "node ../../scripts/check-duplicate-headers.cjs && node ../../scripts/check-license-headers.mjs --check",
43-
"lint:headers:fix": "node ../../scripts/check-duplicate-headers.cjs && node ../../scripts/check-license-headers.mjs --fix",
40+
"lint": "eslint .",
41+
"lint:fix": "eslint --fix .",
4442
"nice": "yarn lint:fix && yarn fmt:fix",
4543
"prepublishOnly": "npm run build && npm run typecheck && npm run validate:exports && npm run validate:pkg",
4644
"report:exports": "node ./scripts/report-exports.mjs",

0 commit comments

Comments
 (0)