diff --git a/package.json b/package.json index 8561d517..8a4e18c3 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "@babel/preset-env": "^7.15.0", "@babel/preset-react": "^7.14.5", "@babel/preset-typescript": "^7.15.0", + "@types/copy-webpack-plugin": "^8.0.1", "@types/jest": "^27.0.1", "@types/node": "^14.17.12", "@types/webpack": "^5.28.0", @@ -18,7 +19,7 @@ "babel-eslint": "^10.1.0", "babel-loader": "^8.2.2", "clean-webpack-plugin": "^3.0.0", - "copy-webpack-plugin": "^6.4.1", + "copy-webpack-plugin": "^9.0.1", "cross-env": "^7.0.3", "css-loader": "^4.3.0", "eslint": "^7.32.0", diff --git a/packages/redux-devtools-rtk-query-monitor/demo/config/webpack.config.ts b/packages/redux-devtools-rtk-query-monitor/demo/config/webpack.config.ts index 62e1db9b..834a7302 100644 --- a/packages/redux-devtools-rtk-query-monitor/demo/config/webpack.config.ts +++ b/packages/redux-devtools-rtk-query-monitor/demo/config/webpack.config.ts @@ -3,13 +3,12 @@ import * as webpack from 'webpack'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import { CleanWebpackPlugin } from 'clean-webpack-plugin'; import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'; +import CopyWebpackPlugin from 'copy-webpack-plugin'; import * as pkg from '../../package.json'; -const CopyWebpackPlugin = require('copy-webpack-plugin'); const isProduction = process.env.NODE_ENV === 'production'; const demoSrc = path.join(__dirname, '../src'); const libSrc = path.join(__dirname, '../../src'); -const publicDir = path.join(__dirname, '../public'); module.exports = { mode: process.env.NODE_ENV || 'development', @@ -57,7 +56,7 @@ module.exports = { patterns: [ { from: 'demo/public/assets/*.js', - to: ({ absoluteFilename }: any) => { + to: ({ absoluteFilename }) => { return `./${path.basename(absoluteFilename)}`; }, globOptions: { diff --git a/yarn.lock b/yarn.lock index 029cc338..a5c57db7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6688,6 +6688,17 @@ __metadata: languageName: node linkType: hard +"@types/copy-webpack-plugin@npm:^8.0.1": + version: 8.0.1 + resolution: "@types/copy-webpack-plugin@npm:8.0.1" + dependencies: + "@types/node": "*" + tapable: ^2.0.0 + webpack: ^5.1.0 + checksum: e921a28fca72bf1708d51ffad06ee2a4b80b8de7e748639588681ea1912413b92dbd433627f3b7eb51c14b9254a1d9c13cf037f25ca08a718df005871454a696 + languageName: node + linkType: hard + "@types/cors@npm:2.8.10": version: 2.8.10 resolution: "@types/cors@npm:2.8.10" @@ -12091,24 +12102,20 @@ __metadata: languageName: node linkType: hard -"copy-webpack-plugin@npm:^6.4.1": - version: 6.4.1 - resolution: "copy-webpack-plugin@npm:6.4.1" +"copy-webpack-plugin@npm:^9.0.1": + version: 9.0.1 + resolution: "copy-webpack-plugin@npm:9.0.1" dependencies: - cacache: ^15.0.5 - fast-glob: ^3.2.4 - find-cache-dir: ^3.3.1 - glob-parent: ^5.1.1 - globby: ^11.0.1 - loader-utils: ^2.0.0 + fast-glob: ^3.2.5 + glob-parent: ^6.0.0 + globby: ^11.0.3 normalize-path: ^3.0.0 - p-limit: ^3.0.2 + p-limit: ^3.1.0 schema-utils: ^3.0.0 - serialize-javascript: ^5.0.1 - webpack-sources: ^1.4.3 + serialize-javascript: ^6.0.0 peerDependencies: - webpack: ^4.37.0 || ^5.0.0 - checksum: b597938a6bb4a272ee94604e90088f1f9452309b5d41f377f81090ec69968e984c77764da76c9ad07c8692ec018abbe815fd685b9e74b57e2dd1f3180ada60ce + webpack: ^5.1.0 + checksum: f3e69883e173f9a298b63dcf35ba5aafc02e252c67c236029424af19fb2e36fc93de94054bd7a9ada8b4cbcc4e96e9a3a269f972e4a45f4fd1b32a3d199d2cae languageName: node linkType: hard @@ -14780,19 +14787,6 @@ __metadata: languageName: node linkType: hard -"fast-glob@npm:^3.2.4": - version: 3.2.7 - resolution: "fast-glob@npm:3.2.7" - dependencies: - "@nodelib/fs.stat": ^2.0.2 - "@nodelib/fs.walk": ^1.2.3 - glob-parent: ^5.1.2 - merge2: ^1.3.0 - micromatch: ^4.0.4 - checksum: 2f4708ff112d2b451888129fdd9a0938db88b105b0ddfd043c064e3c4d3e20eed8d7c7615f7565fee660db34ddcf08a2db1bf0ab3c00b87608e4719694642d78 - languageName: node - linkType: hard - "fast-json-parse@npm:^1.0.3": version: 1.0.3 resolution: "fast-json-parse@npm:1.0.3" @@ -15977,6 +15971,15 @@ fsevents@^1.2.7: languageName: node linkType: hard +"glob-parent@npm:^6.0.0": + version: 6.0.1 + resolution: "glob-parent@npm:6.0.1" + dependencies: + is-glob: ^4.0.1 + checksum: 0468cf300b8c7a483dbd8c031704fa1003331cbc65ded095f768328ed35eec78dd199c224c7436db997569863c0cbc0b7fd7c3cb45508e6134c502be9e691dc5 + languageName: node + linkType: hard + "glob-promise@npm:^3.4.0": version: 3.4.0 resolution: "glob-promise@npm:3.4.0" @@ -26307,6 +26310,7 @@ resolve@^2.0.0-next.3: "@babel/preset-env": ^7.15.0 "@babel/preset-react": ^7.14.5 "@babel/preset-typescript": ^7.15.0 + "@types/copy-webpack-plugin": ^8.0.1 "@types/jest": ^27.0.1 "@types/node": ^14.17.12 "@types/webpack": ^5.28.0 @@ -26317,7 +26321,7 @@ resolve@^2.0.0-next.3: babel-eslint: ^10.1.0 babel-loader: ^8.2.2 clean-webpack-plugin: ^3.0.0 - copy-webpack-plugin: ^6.4.1 + copy-webpack-plugin: ^9.0.1 cross-env: ^7.0.3 css-loader: ^4.3.0 eslint: ^7.32.0 @@ -28407,7 +28411,7 @@ resolve@^2.0.0-next.3: languageName: node linkType: hard -"tapable@npm:^2.1.1, tapable@npm:^2.2.0": +"tapable@npm:^2.0.0, tapable@npm:^2.1.1, tapable@npm:^2.2.0": version: 2.2.0 resolution: "tapable@npm:2.2.0" checksum: 5a7e31ddd2400d524b68e7ba0373e492ba52b321b8e1eb15b65956e9c1b9ba90dd175210a1318b6752538cbe3b284f4a7218a714be942aeeb812623c243aea25 @@ -30444,7 +30448,7 @@ typescript@^4.3.5: languageName: node linkType: hard -"webpack@npm:^5, webpack@npm:^5.38.1, webpack@npm:^5.51.1": +"webpack@npm:^5, webpack@npm:^5.1.0, webpack@npm:^5.38.1, webpack@npm:^5.51.1": version: 5.51.1 resolution: "webpack@npm:5.51.1" dependencies: