22const config = {
33 npmClient : 'yarn' ,
44 pipeline : {
5+ // ── Per-package tasks ──────────────────────────────────────────────────
56 'build-cjs' : {
67 // cjs builds need to wait for the esm builds to produce the type definitions
78 dependsOn : [ '^build-core' , '^build-cjs' ] ,
@@ -20,7 +21,6 @@ const config = {
2021 inputs : [ '*' , 'src/**/*' , 'assets/**/*' ] ,
2122 outputs : [ 'lib/**/*' , 'lib-commonjs/**/*' ] ,
2223 } ,
23- buildci : [ 'build-all' , 'test' , 'lint' , 'lint-package' ] ,
2424 bundle : {
2525 inputs : [ '**/*' , '!node_modules/**/*' , '!dist/**/*' , '!lib/**/*' , '!lib-commonjs/**/*' ] ,
2626 outputs : [ 'dist/**/*' ] ,
@@ -36,16 +36,30 @@ const config = {
3636 inputs : [ '**/*' , '!node_modules/**/*' , '!dist/**/*' , '!lib/**/*' , '!lib-commonjs/**/*' ] ,
3737 outputs : [ ] ,
3838 } ,
39- format : {
40- inputs : [ '*' , 'src/**/*' ] ,
41- outputs : [ ] ,
42- } ,
43- 'pr-check' : [ 'buildci' , 'lint-package' , 'lint-lockfile' , 'format:check' ] ,
4439 test : {
4540 dependsOn : [ 'build-all' ] ,
4641 inputs : [ ] ,
4742 outputs : [ ] ,
4843 } ,
44+
45+ // ── Root-only tasks (scripts exist only in the root package.json) ──────
46+ // These run once for the whole repo. Sub-packages do not have these scripts,
47+ // so lage naturally scopes them to the root workspace.
48+ 'check-publishing' : {
49+ cache : false ,
50+ } ,
51+ 'format:check' : {
52+ cache : false ,
53+ } ,
54+ 'lint-lockfile' : {
55+ cache : false ,
56+ } ,
57+
58+ // ── Pipeline aliases ───────────────────────────────────────────────────
59+ 'repo-checks' : [ 'lint-lockfile' , 'format:check' , 'check-publishing' ] ,
60+ buildci : [ 'build-all' , 'test' , 'lint' , 'lint-package' , 'repo-checks' ] ,
61+
62+ // ── Worker tasks ───────────────────────────────────────────────────────
4963 pack : {
5064 dependsOn : [ 'build-all' , '^pack' ] ,
5165 type : 'worker' ,
@@ -64,8 +78,8 @@ const config = {
6478 } ,
6579 cache : false ,
6680 } ,
67- 'publish- dry-run' : {
68- dependsOn : [ '^publish- dry-run' ] ,
81+ 'publish: dry-run' : {
82+ dependsOn : [ '^publish: dry-run' ] ,
6983 type : 'worker' ,
7084 options : {
7185 worker : 'scripts/src/worker/publish.mts' ,
@@ -77,4 +91,4 @@ const config = {
7791 } ,
7892} ;
7993
80- module . exports = config ;
94+ export default config ;
0 commit comments