Skip to content

Commit

Permalink
chore: exports
Browse files Browse the repository at this point in the history
  • Loading branch information
zce committed Nov 28, 2023
1 parent d383198 commit ee1fc82
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/assets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createHash } from 'node:crypto'
import { copyFile, mkdir, readFile } from 'node:fs/promises'
import { basename, dirname, extname, join, resolve } from 'node:path'
import { copyFile, readFile } from 'node:fs/promises'
import { basename, extname, join, resolve } from 'node:path'
import sharp from 'sharp'

import { getCache } from './cache'
Expand Down
4 changes: 2 additions & 2 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resolveConfig } from './config'
import { resolveLoader } from './loaders'
import { logger } from './logger'

import type { Config, Output } from './config'
import type { Config } from './config'
import type { LogLevel } from './logger'
import type { ZodType } from 'zod'

Expand All @@ -28,7 +28,7 @@ interface Result {
/**
* build options
*/
interface Options {
export interface Options {
/**
* Specify config file path
* @default 'velite.config.{js,ts,mjs,mts,cjs,cts}'
Expand Down
8 changes: 4 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Promisable<T> = T | Promise<T>
/**
* Output options
*/
export interface Output {
interface Output {
/**
* The output directory of the data files (relative to config file).
* @default '.velite'
Expand Down Expand Up @@ -56,7 +56,7 @@ export interface Output {
/**
* Collection options
*/
export interface Collection {
interface Collection {
/**
* Schema name (singular), for types generation
* @example
Expand Down Expand Up @@ -91,7 +91,7 @@ export interface Collection {
/**
* All collections
*/
export interface Collections {
interface Collections {
[name: string]: Collection
}

Expand Down Expand Up @@ -128,7 +128,7 @@ export interface Config<C extends Collections = Collections> extends Partial<Plu
*/
configPath: string
/**
* The root directory of the contents
* The root directory of the contents (relative to config file).
* @default 'content'
*/
root: string
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './schemas'
export { defineConfig, defineCollection } from './config'
export { defineLoader, addLoader, removeLoader } from './loaders'
export { build } from './build'
export { defineConfig, defineCollection, type PluginConfig, type UserConfig } from './config'
export { defineLoader, addLoader, removeLoader, type Loader } from './loaders'
export { build, type Options } from './build'

0 comments on commit ee1fc82

Please sign in to comment.