File tree Expand file tree Collapse file tree 2 files changed +25
-7
lines changed
Expand file tree Collapse file tree 2 files changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ meteor/.coverage/
44node_modules
55** /yarn-error.log
66scratch /
7+ meteor-settings.json
78
89# Exclude JetBrains IDE specific files
910.idea
Original file line number Diff line number Diff line change 11import process from "process" ;
2+ import fs from "fs" ;
23import concurrently from "concurrently" ;
34import { EXTRA_PACKAGES , config } from "./lib.js" ;
45
6+ function joinCommand ( ...parts ) {
7+ return parts . filter ( ( part ) => ! ! part ) . join ( " " ) ;
8+ }
9+
510function watchPackages ( ) {
611 return [
712 {
8- command : config . uiOnly
9- ? `yarn watch ${ EXTRA_PACKAGES . map ( ( pkg ) => `--ignore ${ pkg } ` ) . join (
13+ command : joinCommand ( 'yarn watch' ,
14+ config . uiOnly
15+ ? EXTRA_PACKAGES . map ( ( pkg ) => `--ignore ${ pkg } ` ) . join (
1016 " "
11- ) } `
12- : "yarn watch" ,
17+ )
18+ : "" ,
19+ ) ,
1320 cwd : "packages" ,
1421 name : "PACKAGES-TSC" ,
1522 prefixColor : "red" ,
@@ -29,6 +36,13 @@ function watchWorker() {
2936}
3037
3138function watchMeteor ( ) {
39+ const settingsFileExists = fs . existsSync ( "meteor-settings.json" ) ;
40+ if ( settingsFileExists ) {
41+ console . log ( 'Found meteor-settings.json' )
42+ } else {
43+ console . log ( 'No meteor-settings.json' )
44+ }
45+
3246 return [
3347 {
3448 command : "yarn watch-types --preserveWatchOutput" ,
@@ -37,9 +51,12 @@ function watchMeteor() {
3751 prefixColor : "blue" ,
3852 } ,
3953 {
40- command : `yarn debug${ config . inspectMeteor ? " --inspect" : "" } ${
41- config . verbose ? " --verbose" : ""
42- } `,
54+ command : joinCommand (
55+ 'yarn debug' ,
56+ config . inspectMeteor ? " --inspect" : "" ,
57+ config . verbose ? " --verbose" : "" ,
58+ settingsFileExists ? " --settings ../meteor-settings.json" : ""
59+ ) ,
4360 cwd : "meteor" ,
4461 name : "METEOR" ,
4562 prefixColor : "cyan" ,
You can’t perform that action at this time.
0 commit comments