Skip to content

Commit

Permalink
feat(katzencore): New Module Target and json import assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlkatze committed Aug 15, 2024
1 parent 97dbb8d commit 0396f0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/runtime/composables/useAnimation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* - useScrollAnimation
* - useTimelineAnimation (WIP)
*/
import { ref } from 'vue'
import type { Ref } from 'vue'
import { nextTick, onBeforeUnmount, onMounted } from '#imports'

import { nextTick, onBeforeUnmount, onMounted, ref } from '#imports'

interface ScrollAnimationOptions {
global?: boolean
Expand Down
3 changes: 2 additions & 1 deletion src/runtime/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export interface UpdateResult {
}

export const updateCheck = async () => {
const pkg = (await import('../../package.json')).default
const pkg = (await import('../../package.json', { assert: { type: 'json' } })
).default as { version: string }
const version = pkg.version
const https = await import('node:https')
return new Promise<UpdateResult>((resolve) => {
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"node_modules",
"playground",
],
"compilerOptions": {
"module": "esnext",
},
"include": [
"src/runtime/**/*"
]
Expand Down

0 comments on commit 0396f0c

Please sign in to comment.