Merge pull request #1259 from mchangrh/bumpDependencies

bump dependencies
This commit is contained in:
Ajay Ramachandran
2022-04-11 01:31:06 -04:00
committed by GitHub
4 changed files with 5849 additions and 1992 deletions

View File

@@ -24,6 +24,7 @@ module.exports = {
// TODO: Remove warn rules when not needed anymore // TODO: Remove warn rules when not needed anymore
"no-self-assign": "off", "no-self-assign": "off",
"@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-empty-interface": "off",
"react/prop-types": [2, { ignore: ['children'] }]
}, },
settings: { settings: {
react: { react: {

7778
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -8,30 +8,32 @@
"react-dom": "^17.0.2" "react-dom": "^17.0.2"
}, },
"devDependencies": { "devDependencies": {
"@types/chrome": "^0.0.178", "@types/chrome": "^0.0.180",
"@types/firefox-webext-browser": "^94.0.1", "@types/firefox-webext-browser": "^94.0.1",
"@types/jest": "^27.4.0", "@types/jest": "^27.4.1",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.14",
"@types/selenium-webdriver": "^4.0.18",
"@types/wicg-mediasession": "^1.1.3", "@types/wicg-mediasession": "^1.1.3",
"@types/react": "^17.0.39", "@typescript-eslint/eslint-plugin": "^5.17.0",
"@types/react-dom": "^17.0.11", "@typescript-eslint/parser": "^5.17.0",
"@types/selenium-webdriver": "^4.0.17", "chromedriver": "^100.0.0",
"@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2",
"chromedriver": "^97.0.4",
"concurrently": "^7.0.0", "concurrently": "^7.0.0",
"copy-webpack-plugin": "^10.2.4", "copy-webpack-plugin": "^10.2.4",
"eslint": "^8.8.0", "eslint": "^8.12.0",
"eslint-plugin-react": "^7.28.0", "eslint-plugin-react": "^7.29.4",
"jest": "^27.5.0", "fork-ts-checker-webpack-plugin": "^7.2.1",
"jest": "^27.5.1",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"schema-utils": "^4.0.0", "schema-utils": "^4.0.0",
"selenium-webdriver": "^4.1.1", "selenium-webdriver": "^4.1.1",
"ts-jest": "^27.1.3", "speed-measure-webpack-plugin": "^1.5.0",
"ts-loader": "^9.2.6", "ts-jest": "^27.1.4",
"ts-node": "^10.4.0", "ts-loader": "^9.2.8",
"typescript": "4.5", "ts-node": "^10.7.0",
"web-ext": "^6.6.0", "typescript": "4.6",
"webpack": "^5.68.0", "web-ext": "^6.8.0",
"webpack": "^5.64.4",
"webpack-cli": "^4.9.2", "webpack-cli": "^4.9.2",
"webpack-merge": "^4.2.2" "webpack-merge": "^4.2.2"
}, },
@@ -65,19 +67,24 @@
"engines": { "engines": {
"node": ">=12.20.0" "node": ">=12.20.0"
}, },
"funding": [{ "funding": [
{
"type": "individual", "type": "individual",
"url": "hhttps://sponsor.ajay.app/donate" "url": "hhttps://sponsor.ajay.app/donate"
}, { },
{
"type": "github", "type": "github",
"url": "https://github.com/sponsors/ajayyy-org" "url": "https://github.com/sponsors/ajayyy-org"
}, { },
{
"type": "patreon", "type": "patreon",
"url": "https://www.patreon.com/ajayyy" "url": "https://www.patreon.com/ajayyy"
}, { },
{
"type": "individual", "type": "individual",
"url": "https://paypal.me/ajayyy" "url": "https://paypal.me/ajayyy"
}], }
],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/ajayyy/SponsorBlock.git" "url": "git+https://github.com/ajayyy/SponsorBlock.git"

View File

@@ -6,6 +6,7 @@ const CopyPlugin = require('copy-webpack-plugin');
const BuildManifest = require('./webpack.manifest'); const BuildManifest = require('./webpack.manifest');
const srcDir = '../src/'; const srcDir = '../src/';
const fs = require("fs"); const fs = require("fs");
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const edgeLanguages = [ const edgeLanguages = [
"de", "de",
@@ -45,8 +46,12 @@ module.exports = env => ({
rules: [ rules: [
{ {
test: /\.tsx?$/, test: /\.tsx?$/,
use: 'ts-loader', loader: 'ts-loader',
exclude: /node_modules/ exclude: /node_modules/,
options: {
// disable type checker for user in fork plugin
transpileOnly: true
}
} }
] ]
}, },
@@ -54,6 +59,8 @@ module.exports = env => ({
extensions: ['.ts', '.tsx', '.js'] extensions: ['.ts', '.tsx', '.js']
}, },
plugins: [ plugins: [
// fork TS checker
new ForkTsCheckerWebpackPlugin(),
// exclude locale files in moment // exclude locale files in moment
new CopyPlugin({ new CopyPlugin({
patterns: [ patterns: [