Skip to content

Commit 49cd767

Browse files
committed
update node to v20
1 parent 6bc5a5f commit 49cd767

File tree

7 files changed

+9
-5
lines changed

7 files changed

+9
-5
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16
1+
v20

includes/class-wc-gateway-payfast-blocks-support.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function is_active() {
4545
* @return array
4646
*/
4747
public function get_payment_method_script_handles() {
48-
$asset_path = WC_GATEWAY_PAYFAST_PATH . '/build/index.asset.php';
48+
$asset_path = WC_GATEWAY_PAYFAST_PATH . '/build/payment-method.asset.php';
4949
$version = WC_GATEWAY_PAYFAST_VERSION;
5050
$dependencies = array();
5151
if ( file_exists( $asset_path ) ) {
@@ -59,7 +59,7 @@ public function get_payment_method_script_handles() {
5959
}
6060
wp_register_script(
6161
'wc-payfast-blocks-integration',
62-
WC_GATEWAY_PAYFAST_URL . '/build/index.js',
62+
WC_GATEWAY_PAYFAST_URL . '/build/payment-method.js',
6363
$dependencies,
6464
$version,
6565
true

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
},
2424
"scripts": {
2525
"build": "npm run makepot && npm run build:webpack",
26-
"build:webpack": "wp-scripts build client/blocks/index.js",
27-
"start:webpack": "wp-scripts start client/blocks/index.js",
26+
"build:webpack": "wp-scripts build",
27+
"start:webpack": "wp-scripts start",
2828
"lint:js": "wp-scripts lint-js",
2929
"postbuild": "npm run -s && npm run archive",
3030
"archive": "composer archive --file=$npm_package_name --format=zip",
File renamed without changes.
File renamed without changes.

webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ const DependencyExtractionWebpackPlugin = require( '@woocommerce/dependency-extr
33

44
module.exports = {
55
...defaultConfig,
6+
entry: {
7+
...defaultConfig.entry,
8+
'payment-method': './src/blocks/payment-method/index.js',
9+
},
610
plugins: [
711
...defaultConfig.plugins.filter(
812
( plugin ) =>

0 commit comments

Comments
 (0)