Skip to content

Commit

Permalink
Export hydrogen hook (#2170)
Browse files Browse the repository at this point in the history
* Export hydrogen hook

* Make hooks an object
  • Loading branch information
isaacroldan committed May 30, 2024
1 parent 66a49bc commit ebc8a26
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ import SetupVite from './commands/hydrogen/setup/vite.js';
import Shortcut from './commands/hydrogen/shortcut.js';
import Unlink from './commands/hydrogen/unlink.js';
import Upgrade from './commands/hydrogen/upgrade.js';
import hook from './hooks/init.js';

const COMMANDS = {
export const COMMANDS = {
'hydrogen:dev': Dev,
'hydrogen:build': Build,
'hydrogen:check': Check,
Expand Down Expand Up @@ -54,4 +55,6 @@ const COMMANDS = {
'hydrogen:setup:vite': SetupVite,
};

export default COMMANDS;
export const HOOKS = {
init: hook,
};

0 comments on commit ebc8a26

Please sign in to comment.