Skip to content

Commit 622840d

Browse files
authored
ci: link lockfile (#3918)
* ci: link lockfile * yarn dedupe * f
1 parent e4d52cf commit 622840d

File tree

4 files changed

+43
-10
lines changed

4 files changed

+43
-10
lines changed

.ado/azure-pipelines.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ jobs:
2828
yarn prettier
2929
displayName: 'check prettier'
3030
31+
- script: |
32+
yarn align-deps
33+
displayName: 'run align-deps'
34+
35+
- script: |
36+
yarn lint-lockfile
37+
displayName: 'run lint-lockfile'
38+
3139
- script: |
3240
yarn buildci
3341
displayName: 'yarn buildci [test]'

lage.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
buildci: ['build', 'test', 'depcheck'],
77
bundle: ['build-tools', 'build'],
88
clean: [],
9-
depcheck: ['build-tools'],
9+
depcheck: ['build-tools', 'align-deps'],
1010
lint: ['build-tools'],
1111
prettier: ['build-tools'],
1212
['prettier-fix']: ['build-tools'],

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"check-for-changed-files": "cd scripts && yarn fluentui-scripts checkForModifiedFiles",
2222
"checkchange": "beachball check --changehint \"Run 'yarn change' to generate a change file\"",
2323
"align-deps": "rnx-align-deps --no-unmanaged --requirements [email protected]",
24-
"depcheck": "yarn align-deps && lage depcheck",
24+
"depcheck": "lage depcheck",
2525
"lint": "lage lint",
2626
"preinstall": "node ./scripts/use-yarn-please.js",
2727
"prettier": "lage prettier",
@@ -40,6 +40,7 @@
4040
"@react-native/metro-babel-transformer": "^0.74.0",
4141
"@react-native/metro-config": "^0.74.0",
4242
"@rnx-kit/align-deps": "^3.0.0",
43+
"@rnx-kit/lint-lockfile": "^0.1.0",
4344
"babel-jest": "^29.7.0",
4445
"beachball": "^2.20.0",
4546
"eslint": "^8.0.0",
@@ -74,6 +75,16 @@
7475
"presets": [
7576
"microsoft/react-native"
7677
],
78+
"lint": {
79+
"lockfile": {
80+
"noDuplicates": {
81+
"packages": [
82+
"#react-native",
83+
"@babel/core"
84+
]
85+
}
86+
}
87+
},
7788
"requirements": {
7889
"development": [
7990

yarn.lock

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4114,6 +4114,7 @@ __metadata:
41144114
"@react-native/metro-babel-transformer": "npm:^0.74.0"
41154115
"@react-native/metro-config": "npm:^0.74.0"
41164116
"@rnx-kit/align-deps": "npm:^3.0.0"
4117+
"@rnx-kit/lint-lockfile": "npm:^0.1.0"
41174118
babel-jest: "npm:^29.7.0"
41184119
beachball: "npm:^2.20.0"
41194120
eslint: "npm:^8.0.0"
@@ -6596,16 +6597,16 @@ __metadata:
65966597
languageName: node
65976598
linkType: hard
65986599

6599-
"@rnx-kit/config@npm:^0.7.0":
6600-
version: 0.7.3
6601-
resolution: "@rnx-kit/config@npm:0.7.3"
6600+
"@rnx-kit/config@npm:^0.7.0, @rnx-kit/config@npm:^0.7.4":
6601+
version: 0.7.4
6602+
resolution: "@rnx-kit/config@npm:0.7.4"
66026603
dependencies:
66036604
"@rnx-kit/console": "npm:^2.0.0"
66046605
"@rnx-kit/tools-node": "npm:^3.0.0"
66056606
"@rnx-kit/tools-packages": "npm:^0.1.0"
66066607
lodash.merge: "npm:^4.6.2"
66076608
semver: "npm:^7.0.0"
6608-
checksum: 10c0/0c29594647714c7467f1263ed48b371fd53ceefd6fef8231deb9f7cd08f6113d84e1b25747a89acf5d936a0d6bd420eabbc8afc890c9ccbb5fd823cb198a9812
6609+
checksum: 10c0/f237eacf8082eb5068d88a4b8302c115014edc0131475e756e52052426421f0799caa82208e7691b2e1673b859422bd9f5f8a9a192841f0e19c16ab7de090dd5
66096610
languageName: node
66106611
linkType: hard
66116612

@@ -6649,6 +6650,19 @@ __metadata:
66496650
languageName: node
66506651
linkType: hard
66516652

6653+
"@rnx-kit/lint-lockfile@npm:^0.1.0":
6654+
version: 0.1.0
6655+
resolution: "@rnx-kit/lint-lockfile@npm:0.1.0"
6656+
dependencies:
6657+
"@rnx-kit/config": "npm:^0.7.4"
6658+
"@rnx-kit/tools-workspaces": "npm:^0.2.3"
6659+
js-yaml: "npm:^4.1.0"
6660+
bin:
6661+
lint-lockfile: lib/cli.js
6662+
checksum: 10c0/534491cdf8c058a63862fd5e38209eee5a5ed8fe725a5e6d085076ed1b8a1b4f8ed08578b9174044c53f1ddebb197624d0b767c744b7565f36b6d3cfb13b0668
6663+
languageName: node
6664+
linkType: hard
6665+
66526666
"@rnx-kit/metro-config@npm:^2.0.0":
66536667
version: 2.1.0
66546668
resolution: "@rnx-kit/metro-config@npm:2.1.0"
@@ -6832,16 +6846,16 @@ __metadata:
68326846
languageName: node
68336847
linkType: hard
68346848

6835-
"@rnx-kit/tools-workspaces@npm:^0.2.0, @rnx-kit/tools-workspaces@npm:^0.2.1":
6836-
version: 0.2.2
6837-
resolution: "@rnx-kit/tools-workspaces@npm:0.2.2"
6849+
"@rnx-kit/tools-workspaces@npm:^0.2.0, @rnx-kit/tools-workspaces@npm:^0.2.1, @rnx-kit/tools-workspaces@npm:^0.2.3":
6850+
version: 0.2.3
6851+
resolution: "@rnx-kit/tools-workspaces@npm:0.2.3"
68386852
dependencies:
68396853
fast-glob: "npm:^3.2.7"
68406854
find-up: "npm:^5.0.0"
68416855
micromatch: "npm:^4.0.0"
68426856
read-yaml-file: "npm:^2.1.0"
68436857
strip-json-comments: "npm:^3.1.1"
6844-
checksum: 10c0/3a0f258d8be28818c7b6c7b5c490c7aa20a1181e7499b1ccce23e3043f41a767e9f1a5eefe5f696de11eaf3ad84777587059c78169694e85aeda9f97882e5ae6
6858+
checksum: 10c0/b9528f560092c8ba8eeafb818cef2363ba99ffd7b3f0e3738cfe0316b35211ab7b6aa08d9eb3ef555c02b6048c591adafdca2934e674066256c06860cb1cf668
68456859
languageName: node
68466860
linkType: hard
68476861

0 commit comments

Comments
 (0)