Skip to content

Commit

Permalink
feat: expose defineFontProvider helper from ./utils subpath
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 22, 2024
1 parent 92a8182 commit cf31dbb
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
7 changes: 7 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: [
'./src/utils'
]
})
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
"require": "./dist/module.cjs"
},
"./utils": {

"types": "./dist/utils.d.mts",
"import": "./dist/utils.mjs"
}
},
"main": "./dist/module.cjs",
"types": "./dist/types.d.ts",
"files": [
"dist"
"dist",
"utils.d.ts"
],
"scripts": {
"build": "nuxt-module-build build",
Expand Down Expand Up @@ -66,6 +68,7 @@
"nuxt": "^3.10.3",
"playwright-core": "^1.41.2",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"vitest": "^1.3.1",
"vue-tsc": "^1.8.27"
},
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { FontProvider } from './types'

export function defineFontProvider (options: FontProvider) {
return options
}

export type { FontProvider } from './types'
1 change: 1 addition & 0 deletions utils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/utils'

0 comments on commit cf31dbb

Please sign in to comment.