Skip to content

Commit

Permalink
fix: use @Alwatr scope in define package
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Jan 31, 2024
1 parent 3781aab commit bb26d34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/fract/src/directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {createLogger, definePackage} from '@alwatr/logger';

import {Directive, PartType, type PartInfo, type Part} from './lit-html.js';

definePackage('fract', '1.x');
definePackage('@alwatr/fract', '1.x');

export abstract class AlwatrDirective extends Directive {
protected _logger;
Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/src/l10n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {localeList} from './locale-list.js';
import type {L10nResource, L10nResourceLoader, Locale} from './type.js';
import type {LocaleCode} from '@alwatr/type';

definePackage('i18n', '2.x');
definePackage('@alwatr/i18n', '2.x');

export class AlwatrL10n extends AlwatrObservable<LocaleCode> {
protected _locale?: Locale;
Expand Down
3 changes: 2 additions & 1 deletion packages/router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import {AlwatrObservable} from '@alwatr/signal/observable.js';
import type {RouterConfig, PushState, RouteContext, RouteContextBase} from './type.js';
import type {QueryParameters} from '@alwatr/type';

definePackage('router', '2.x');
definePackage('@alwatr/router', '2.x');

const documentBaseUrl = document.querySelector('base')?.href || '/';

export class AlwatrRouter extends AlwatrObservable<RouteContext> {
// @ts-expect-error - FIXME:
protected override _logger = createLogger('alwatr/router');

get route(): RouteContext {
Expand Down

0 comments on commit bb26d34

Please sign in to comment.