UNPKG

@forwardslashns/fws-cli

Version:

CLI meant to work together with other Forwardslash boilerplates.

12 lines (10 loc) 399 B
import { dirname } from 'path'; import { fileURLToPath } from 'url'; export const getEnvTemplate = (packageType) => { const appRoot = dirname(fileURLToPath(import.meta.url)).split('src')[0] ?? ''; return packageType === 'wp' ? `${appRoot}src/templates/env/example-s.env` : packageType === 'nuxt' ? `${appRoot}src/templates/env/example-nuxt.env` : ''; };