Skip to content

Commit

Permalink
Update more TypeScript tooling, see #1384
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 14, 2023
1 parent 501deb7 commit 5babe54
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
7 changes: 6 additions & 1 deletion js/common/Transpiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ class Transpiler {
presets: [
'../chipper/node_modules/@babel/preset-typescript',
'../chipper/node_modules/@babel/preset-react'
], sourceMaps: 'inline'
],
sourceMaps: 'inline',

plugins: [
[ '@babel/plugin-proposal-decorators', { version: '2022-03' } ]
]
} );

fs.mkdirSync( path.dirname( targetPath ), { recursive: true } );
Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
"supportsOutputJS": true
},
"devDependencies": {
"@babel/core": "~7.15.0",
"@babel/preset-env": "~7.15.0",
"@babel/preset-react": "~7.16.0",
"@babel/preset-typescript": "~7.16.0",
"@babel/core": "~7.21.4",
"@babel/plugin-proposal-decorators": "~7.21.0",
"@babel/preset-env": "~7.21.4",
"@babel/preset-react": "~7.18.6",
"@babel/preset-typescript": "~7.21.4",
"@types/jquery": "~3.5.13",
"@types/lodash": "~4.14.172",
"@types/p2": "~0.7.39",
Expand All @@ -23,9 +24,9 @@
"@types/three": "~0.137.0",
"@types/react": "~18.0.12",
"@types/react-dom": "~18.0.5",
"@typescript-eslint/parser": "~5.45.0",
"@typescript-eslint/eslint-plugin": "~5.45.0",
"@typescript-eslint/utils": "~5.45.0",
"@typescript-eslint/parser": "~5.58.0",
"@typescript-eslint/eslint-plugin": "~5.58.0",
"@typescript-eslint/utils": "~5.58.0",
"archiver": "~5.3.0",
"axios": "~0.21.4",
"@babel/eslint-parser": "~7.19.1",
Expand Down

0 comments on commit 5babe54

Please sign in to comment.