Skip to content

Commit

Permalink
refactor dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
chakAs3 committed Sep 27, 2023
1 parent 6f33bc1 commit c8864b4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/storybook-nuxt/src/dirs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { fileURLToPath } from 'node:url'
import { dirname, resolve } from 'pathe'

export const distDir = dirname(fileURLToPath(import.meta.url))

export const runtimeDir = resolve(distDir, 'runtime')
export const pluginsDir = resolve(runtimeDir, 'plugins')
export const componentsDir = resolve(runtimeDir, 'components')
export const composablesDir = resolve(runtimeDir, 'composables')

export const packageDir = resolve(distDir, '..')

export const dirs = [distDir, packageDir, pluginsDir, componentsDir, composablesDir]

0 comments on commit c8864b4

Please sign in to comment.