Skip to content

Commit

Permalink
Add browser vs node tsconfigs, see phetsims/chipper#1463
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Sep 27, 2024
1 parent d596751 commit e5d67ba
Show file tree
Hide file tree
Showing 10 changed files with 103 additions and 22 deletions.
11 changes: 11 additions & 0 deletions js/browser-tools/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../../chipper/tsconfig-core.json",
"include": [
"**/*"
],
"references": [
{
"path": "../../../chipper/tsconfig/buildjson/tsconfig.json"
}
]
}
11 changes: 11 additions & 0 deletions js/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../../chipper/tsconfig-core.json",
"include": [
"**/*"
],
"references": [
{
"path": "../../../chipper/tsconfig/buildjson/tsconfig.json"
}
]
}
6 changes: 1 addition & 5 deletions tsconfig/node/tsconfig.json → js/config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"extends": "../../../chipper/tsconfig-node.json",
"include": [
"../../js/config/**/*",
"../../js/grunt/**/*",
"../../js/local/**/*",
"../../js/node-client/**/*",
"../../js/server/**/*"
"**/*",
],
"references": [
{
Expand Down
11 changes: 11 additions & 0 deletions js/grunt/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../../chipper/tsconfig-node.json",
"include": [
"**/*",
],
"references": [
{
"path": "../../../perennial/tsconfig.json"
}
]
}
11 changes: 11 additions & 0 deletions js/local/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../../chipper/tsconfig-node.json",
"include": [
"**/*",
],
"references": [
{
"path": "../../../perennial/tsconfig.json"
}
]
}
11 changes: 11 additions & 0 deletions js/node-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../../chipper/tsconfig-node.json",
"include": [
"**/*",
],
"references": [
{
"path": "../../../perennial/tsconfig.json"
}
]
}
11 changes: 11 additions & 0 deletions js/report/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../../chipper/tsconfig-core.json",
"include": [
"**/*"
],
"references": [
{
"path": "../../../chipper/tsconfig/buildjson/tsconfig.json"
}
]
}
11 changes: 11 additions & 0 deletions js/server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../../chipper/tsconfig-node.json",
"include": [
"**/*",
],
"references": [
{
"path": "../../../perennial/tsconfig.json"
}
]
}
27 changes: 25 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,33 @@
{
"files": [],
"references": [

// BROWSER
{
"path": "tsconfig/browser/tsconfig.json"
"path": "js/browser-tools/tsconfig.json"
},
{
"path": "tsconfig/node/tsconfig.json"
"path": "js/client/tsconfig.json"
},
{
"path": "js/report/tsconfig.json"
},

// NODE
{
"path": "js/config/tsconfig.json"
},
{
"path": "js/grunt/tsconfig.json"
},
{
"path": "js/local/tsconfig.json"
},
{
"path": "js/node-client/tsconfig.json"
},
{
"path": "js/server/tsconfig.json"
}
]
}
15 changes: 0 additions & 15 deletions tsconfig/browser/tsconfig.json

This file was deleted.

0 comments on commit e5d67ba

Please sign in to comment.