bencoveney / barrelsby

Automatic TypeScript barrels (index.ts files) for your entire code base

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recommended way for skipping typescript declaration files?

noahehall opened this issue · comments

might be useful for others, unsure if this is the best way but worked for me

{
  "delete": true,
  "directory": ["src"],
  "include": [".*(?<!.d.ts)$"], 
  "local": false,
  "location": "all",
  "structure": "flat"
}
commented

hah ! there is a delete option
"exclude": ".d.ts",

commented

yes, use the exclude option to exclude file patterns