You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect it would include files/directories that start with a dot, unless you exclude files/dirs that start with a dot
Actual behavior:
TS/tsc seems to exclude files/dirs that start with a dot by default, which seems very strange, since users could easily specify with a regex to ignore dirs/files that start with a dot!
My question is then, is there a tsconfig.json setting I can use to include the .suman directory with my build?
The text was updated successfully, but these errors were encountered:
ORESoftware
changed the title
files/dirs that start with a dot . do not get copied or transpiled by default
files/dirs that start with a dot (.) do not get copied or transpiled by default
Jan 10, 2017
files and folders starting with a . are ignored by the glob patterns. this to accomodate for hidden folders that tools like git rely on. You need to add the folder starting with a . explcitlly in your include patter:
"include": [
"./**/*",
"./test/.suman/**/*"
],
also one note, you need to exclude your outDir, or you will be consuming the output again, given that you have --allowJs set. so your exclude patterns should be:
TypeScript Version: 2.1.4
Code
if I build this project with
tsc
and use the outDir option, the .suman directory won't get moved/transpiled, presumably because it starts with a dot .based on the above project structure, the resulting incorrect build would look like:
above we can see that the .suman dir is missing from the test dir
if I rename the .suman directory to suman like so:
then it will get moved to the outDir, because it no longer starts with a dot .
so the expected result actually happens, which is of course:
here is my config, which shows that I want to
include
my test dir, in the build.Expected behavior:
I would expect it would include files/directories that start with a dot, unless you exclude files/dirs that start with a dot
Actual behavior:
TS/tsc seems to exclude files/dirs that start with a dot by default, which seems very strange, since users could easily specify with a regex to ignore dirs/files that start with a dot!
My question is then, is there a tsconfig.json setting I can use to include the .suman directory with my build?
The text was updated successfully, but these errors were encountered: