Skip to content

Commit

Permalink
update to TypeScript 5, and update tsconfig so that Babylon.js types …
Browse files Browse the repository at this point in the history
…properly appear within the Babylon host code
  • Loading branch information
trusktr committed Feb 17, 2024
1 parent f2f7aba commit b7eb17a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 23 deletions.
14 changes: 8 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"karma-webpack": "^5.0.0",
"prettier": "^1.19.1",
"regenerator-runtime": "^0.13.5",
"typescript": "^4.6.3",
"typescript": "^5.0.0",
"webpack": "5.76.0",
"webpack-cli": "4.10.0",
"webpack-dev-server": "4.7.3",
Expand Down
11 changes: 0 additions & 11 deletions packages/amazon-sumerian-hosts-babylon/jsconfig.json

This file was deleted.

3 changes: 1 addition & 2 deletions packages/amazon-sumerian-hosts-babylon/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"compilerOptions": {
"outDir": "./dist",
"composite": true,
"target": "ES6",
"paths": {
"@amazon-sumerian-hosts/core": [
"../amazon-sumerian-hosts-core/src/core"
Expand All @@ -17,4 +16,4 @@
"test/**/*",
"dist/**/*"
]
}
}
10 changes: 7 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"files": [],
"references": [
{
"path": "./packages/amazon-sumerian-hosts-babylon"
"path": "./packages/amazon-sumerian-hosts-babylon/tsconfig.json"
}
],
"compilerOptions": {
Expand All @@ -23,6 +23,10 @@
// Don't compile anything found in node_modules
"skipLibCheck": true,
// Disable automatic inclusion of @types packages
"types": []
"types": [],
"module": "NodeNext",
"moduleResolution": "NodeNext",
// "target": "ESNext", // Not needed because we don't transform source code, we only emit declarations
"lib": ["DOM", "ESNext"]
}
}
}

0 comments on commit b7eb17a

Please sign in to comment.