Skip to content

NPM publish doesn't include empty dirs #12

@ftzi

Description

@ftzi

https://stackoverflow.com/questions/47456617/why-did-npm-deleted-empty-folder-when-published-package-to-npm-registry

The only solution I can think of is:

Have a prebuild script that will find empty dirs in the semitemplates and write them in a .json, like

emptyDirs.json

{
  "expo": [
    "src/components/common",
    "src/components/contexts",
  ] 
}

etc. Store it maybe on data/. On applySemitemplates(), those would be created for the current flavor.

This apply isn't require on dev env, as the empty dirs exists on local semitemplate dir.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions