Skip to content

Commit

Permalink
chore: upgrade TypeScript to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
homerchen19 committed Feb 19, 2024
1 parent a509725 commit 74cef5d
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 127 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
"webext-options-sync": "^3.1.0"
},
"devDependencies": {
"@types/chrome": "^0.0.186",
"@types/css-font-loading-module": "^0.0.7",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"@types/chrome": "^0.0.260",
"@types/css-font-loading-module": "^0.0.13",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^10.2.4",
"cross-env": "^7.0.3",
Expand All @@ -53,8 +53,8 @@
"rimraf": "^3.0.2",
"style-loader": "^3.3.1",
"terser-webpack-plugin": "^5.3.1",
"ts-loader": "^9.3.0",
"typescript": "^4.6.3",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2",
"webpack-ext-reloader": "^1.1.9",
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const options = {
description: process.env.npm_package_description,
version: process.env.npm_package_version,
...JSON.parse(content.toString()),
})
}),
),
},
{
Expand All @@ -91,7 +91,7 @@ if (process.env.NODE_ENV === 'development') {
contentScript: 'content',
background: 'background',
},
})
}),
);
} else if (process.env.NODE_ENV === 'production') {
options.mode = 'production';
Expand All @@ -101,7 +101,7 @@ if (process.env.NODE_ENV === 'development') {
minimize: true,
debug: false,
}),
new TerserPlugin()
new TerserPlugin(),
);
options.stats = {
colors: true,
Expand Down
Loading

0 comments on commit 74cef5d

Please sign in to comment.