Skip to content

Commit

Permalink
fix: add types to package.json exports (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
jd1378 authored May 10, 2024
1 parent a2f773b commit 6b726dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-svgo",
"version": "4.0.0",
"version": "4.0.1",
"description": "Nuxt module to load optimized SVG files as Vue components",
"keywords": [
"nuxt",
Expand All @@ -19,7 +19,8 @@
"exports": {
".": {
"import": "./dist/module.mjs",
"require": "./dist/module.cjs"
"require": "./dist/module.cjs",
"types": "./dist/module.d.ts"
}
},
"main": "./dist/module.cjs",
Expand Down
4 changes: 3 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import {
} from '@nuxt/kit'
import type { NuxtModule } from '@nuxt/schema'
import type { Config } from 'svgo'
import { SvgLoaderOptions, svgLoader } from './loaders/vite'
import { type SvgLoaderOptions, svgLoader } from './loaders/vite'

export type { SvgLoaderOptions }

/**
* taken from: https://stackoverflow.com/a/8831937/3542461
Expand Down

0 comments on commit 6b726dc

Please sign in to comment.