adds $pkg alias

This commit is contained in:
Ollie Taylor
2023-02-24 13:32:10 +00:00
parent b74f1c15fb
commit 3ac7346cdd
4 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -5,8 +5,8 @@
__internal_audio_metadata,
__internal_audio_src,
} from '$lib/context/audio';
import { isBoolean, isNumber } from '$lib/types/type-guards';
import type { PlayerElement } from '$lib/types/types';
import { isBoolean, isNumber } from '$pkg/type-guards';
let element: PlayerElement;
let currentTime = 0;
+1 -1
View File
@@ -1,6 +1,6 @@
import type { PlayerElement, PlayerMetadata } from '$lib/types/types';
import { info, warn } from '$lib/utility/package/log';
import { secondsToTimestamp } from '$lib/utility/seconds-to-timestamp';
import { info, warn } from '$pkg/log';
import clamp from 'just-clamp';
import { derived, writable } from 'svelte/store';
+4
View File
@@ -9,6 +9,10 @@ const config = {
kit: {
adapter: adapter(),
alias: {
$lib: 'src/lib',
$pkg: 'src/lib/utility/package/',
},
},
};