Skip to content

Commit 4941c2c

Browse files
committed
Lint lockfile
1 parent a4412b1 commit 4941c2c

File tree

4 files changed

+202
-4
lines changed

4 files changed

+202
-4
lines changed

.github/workflows/branch-build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
with:
1616
node-version: 20
1717
- run: yarn --frozen-lockfile
18+
- run: yarn lint:lockfile
1819
- run: yarn lint:check
1920
- run: yarn build
2021
- run: yarn test

.github/workflows/npm-publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
with:
1717
node-version: 20
1818
- run: yarn --frozen-lockfile
19+
- run: yarn lint:lockfile
1920
- run: yarn lint:check
2021
- run: yarn build
2122
- run: yarn test

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@
2525
"prepare": "yarn build",
2626
"build": "rm -rf ./dist; tsc",
2727
"lint:check": "eslint . --ext .ts",
28+
"lint:lockfile": "lockfile-lint --path yarn.lock",
2829
"lint": "yarn lint:check --fix",
2930
"test": "jest"
3031
},
32+
"lockfile-lint": {
33+
"allowed-hosts": [
34+
"npm"
35+
]
36+
},
3137
"devDependencies": {
3238
"@types/jest": "^26.0.14",
3339
"@types/node": "^14.11.2",
@@ -42,6 +48,7 @@
4248
"eslint-plugin-prettier": "^3.1.4",
4349
"eslint-plugin-simple-import-sort": "^5.0.3",
4450
"jest": "^26.4.2",
51+
"lockfile-lint": "^4.12.1",
4552
"prettier": "^2.1.2",
4653
"strip-color": "^0.1.0",
4754
"ts-jest": "^26.4.1",

0 commit comments

Comments
 (0)