Skip to content

Commit

Permalink
Move set alias
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Dec 30, 2024
1 parent 0d7ff87 commit d6b422a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Datastar.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public static function getInstance(): Datastar
$module = new Datastar(self::ID);
static::setInstance($module);
Craft::$app->setModule(self::ID, $module);
Craft::setAlias('@putyourlightson/datastar', __DIR__);

return $module;
}
Expand All @@ -71,6 +70,8 @@ public function init(): void
{
parent::init();

Craft::setAlias('@putyourlightson/datastar', __DIR__);

$this->registerComponents();
$this->registerTwigExtension();
$this->registerScript();
Expand Down
2 changes: 1 addition & 1 deletion src/assets/DatastarAssetBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class DatastarAssetBundle extends AssetBundle
/**
* @inheritdoc
*/
public $sourcePath = __DIR__ . '/../resources/lib/datastar/' . Consts::VERSION;
public $sourcePath = '@putyourlightson/datastar/resources/lib/datastar/' . Consts::VERSION;

/**
* @inheritdoc
Expand Down

0 comments on commit d6b422a

Please sign in to comment.