Skip to content

Commit

Permalink
remove edit-product build
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Jul 18, 2023
1 parent 62da705 commit a5837ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions includes/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ public function init(): void {
*/
public function admin_init(): void {
if ( defined( '\DOING_AJAX' ) && DOING_AJAX ) {
// AJAX requests
new AJAX();
}

if ( ! ( defined( '\DOING_AJAX' ) && DOING_AJAX ) ) {
// admin only
} else {
// Non-AJAX (Admin) requests
new Admin();
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"prepare": "husky install",
"settings": "yarn workspace @wcpos/settings",
"analytics": "yarn workspace @wcpos/analytics",
"build:js": "yarn workspace @wcpos/settings build && yarn workspace @wcpos/edit-product build && yarn workspace @wcpos/analytics build"
"build:js": "yarn workspace @wcpos/settings build && yarn workspace @wcpos/analytics build"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit a5837ad

Please sign in to comment.