Skip to content

Commit 8f87155

Browse files
committed
adjust lage runs to use the lint-repo commands
1 parent c4b66fd commit 8f87155

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

lage.config.mjs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ const config = {
3232
inputs: ['*', 'src/**/*'],
3333
outputs: [],
3434
},
35-
'lint-package': {
36-
inputs: ['**/*', '!node_modules/**/*', '!dist/**/*', '!lib/**/*', '!lib-commonjs/**/*'],
37-
outputs: [],
38-
},
3935
test: {
4036
dependsOn: ['build-all'],
4137
inputs: [],
@@ -54,10 +50,13 @@ const config = {
5450
'lint-lockfile': {
5551
cache: false,
5652
},
53+
'lint-repo': {
54+
cache: false,
55+
},
5756

5857
// ── Pipeline aliases ───────────────────────────────────────────────────
59-
'repo-checks': ['lint-lockfile', 'format:check', 'check-publishing'],
60-
buildci: ['build-all', 'test', 'lint', 'lint-package', 'repo-checks'],
58+
'repo-checks': ['lint-repo', 'check-publishing'],
59+
buildci: ['lint-repo', 'check-publishing', 'build-all', 'test', 'lint'],
6160

6261
// ── Worker tasks ───────────────────────────────────────────────────────
6362
pack: {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"change:check": "node .github/scripts/change.mts --check",
2626
"check-publishing": "node ./scripts/src/cli.ts check-publishing",
2727
"lint-fix": "cross-env FURN_FIX_MODE=true lage lint",
28-
"lint-package-fix": "cross-env FURN_FIX_MODE=true lage lint-package",
2928
"preinstall": "node ./scripts/src/preinstall/use-yarn-please.ts",
3029
"format": "oxfmt",
3130
"format:check": "oxfmt --check",

scripts/src/tasks/constrain.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ const repoCtx = repoContext();
66

77
export function constrain(workspace: Yarn.Constraints.Workspace): void {
88
const ctx = PackageContext.initYarn(workspace);
9+
if (workspace.cwd !== 'scripts') {
10+
ctx.enforce('rnx-kit.extends', '@fluentui-react-native/scripts/kit-config');
11+
}
912
assertDeprecations(ctx);
1013
useCatalogs(ctx);
1114
}

yarn.config.cjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
const { defineConfig } = require('@yarnpkg/types');
2-
const { repoContext, constrain } = require('./scripts/src/index.ts');
2+
const { constrain } = require('./scripts/src/index.ts');
33

44
module.exports = defineConfig({
55
constraints: async ({ Yarn }) => {
6-
const fix = Yarn.fix;
76
for (const workspace of Yarn.workspaces()) {
8-
constrain(workspace);
7+
if (workspace.cwd !== '.') {
8+
constrain(workspace);
9+
}
910
}
1011
},
1112
});

0 commit comments

Comments
 (0)