Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot extends from a directory that contains a dot #71

Closed
stafyniaksacha opened this issue Mar 31, 2023 · 1 comment
Closed

Cannot extends from a directory that contains a dot #71

stafyniaksacha opened this issue Mar 31, 2023 · 1 comment

Comments

@stafyniaksacha
Copy link

stafyniaksacha commented Mar 31, 2023

Environment

  • Nuxt 3.3.2

Reproduction

.some-layer/
another-layer.v2/
nuxt.config.ts

With nuxt.config.ts

export default defineNuxtConfig({
  extends: ['./.some-layer', './another-layer.v2'],
})

Describe the bug

having a . in directory name result in unwanted behavior due to usage of extname

const isDir = !extname(source);

maybe using fs.stat().isDirectory() would fix it?

Additional context

No response

Logs

No response

@pi0 pi0 closed this as completed in 4adcbbe Jun 20, 2023
@pi0
Copy link
Member

pi0 commented Jun 20, 2023

Hi. Sorry for getting to this late. Checking fs stat is probably best however for now i have used another workaround to make sure dot is not in the first in last segment. (4adcbbe#diff-0a1342822ff2e711a79fd7036fdc352146751bd42d7d5845a2938f903723f74bR259)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants