Skip to content

Cannot extend from directory containing multiple dots #278

@DamianGlowala

Description

@DamianGlowala

Environment

n/a

Reproduction

Using Nuxt, create a layer called e.g. foo.bar.baz and observe that it cannot be extended from.

export default defineNuxtConfig({
  extends: ['./layers/foo.bar.baz'],
})

Describe the bug

Directories with multiple dots are wrongly treat as non-dir ones here

const isDir = !ext || ext === basename(source); /* #71 */

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions