diff --git a/.changeset/six-crabs-cry.md b/.changeset/six-crabs-cry.md new file mode 100644 index 00000000..2b288cb2 --- /dev/null +++ b/.changeset/six-crabs-cry.md @@ -0,0 +1,5 @@ +--- +"10up-toolkit": patch +--- + +Stop using react fast refresh fork in favor of the upstream package diff --git a/package-lock.json b/package-lock.json index 9e5529f9..c9998be1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4415,9 +4415,9 @@ } }, "node_modules/@pmmmwh/react-refresh-webpack-plugin": { - "version": "0.5.10", - "resolved": "git+ssh://git@github.com/nicholasio/react-refresh-webpack-plugin.git#8cf4aab0d4dae02204291844041787606082e2a1", - "license": "MIT", + "version": "0.5.11", + "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.11.tgz", + "integrity": "sha512-7j/6vdTym0+qZ6u4XbSAxrWBGYSdCfTzySkj7WAFgDLmSyWlOrWvpyzxlFh5jtw9dn0oL/jtW+06XfFiisN3JQ==", "dependencies": { "ansi-html-community": "^0.0.8", "common-path-prefix": "^3.0.0", @@ -4436,7 +4436,7 @@ "@types/webpack": "4.x || 5.x", "react-refresh": ">=0.10.0 <1.0.0", "sockjs-client": "^1.4.0", - "type-fest": ">=0.17.0 <4.0.0", + "type-fest": ">=0.17.0 <5.0.0", "webpack": ">=4.43.0 <6.0.0", "webpack-dev-server": "3.x || 4.x", "webpack-hot-middleware": "2.x", @@ -20834,7 +20834,7 @@ "dependencies": { "@babel/core": "^7.21.8", "@babel/eslint-parser": "^7.21.8", - "@pmmmwh/react-refresh-webpack-plugin": "https://github.com/nicholasio/react-refresh-webpack-plugin.git", + "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11", "@svgr/webpack": "^8.0.1", "@typescript-eslint/eslint-plugin": "^5.59.6", "@typescript-eslint/parser": "^5.59.6", diff --git a/package.json b/package.json index 7e6e6213..d94e91f5 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "scripts": { "build": "npm run build --workspaces --if-present", "test": "npm run test --workspaces --if-present", - "lint": "npm run lint --workspaces --if-present" + "lint": "npm run lint --workspaces --if-present", + "dev": "npm run wp-env start -- --xdebug -w=projects/10up-theme && npm run start -w=projects/10up-theme" }, "workspaces": [ "packages/*", diff --git a/packages/toolkit/package.json b/packages/toolkit/package.json index 808d4149..8ab9f499 100644 --- a/packages/toolkit/package.json +++ b/packages/toolkit/package.json @@ -20,7 +20,7 @@ "dependencies": { "@babel/core": "^7.21.8", "@babel/eslint-parser": "^7.21.8", - "@pmmmwh/react-refresh-webpack-plugin": "https://github.com/nicholasio/react-refresh-webpack-plugin.git", + "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11", "@svgr/webpack": "^8.0.1", "@typescript-eslint/eslint-plugin": "^5.59.6", "@typescript-eslint/parser": "^5.59.6", diff --git a/projects/10up-theme/.wp-env.json b/projects/10up-theme/.wp-env.json index 55576727..c5b19f6e 100644 --- a/projects/10up-theme/.wp-env.json +++ b/projects/10up-theme/.wp-env.json @@ -1,3 +1,6 @@ { - "themes": [ "." ] + "themes": [ "." ], + "config": { + "WP_ENVIRONMENT_TYPE": "local" + } }