hi, is there a way to debug why a directory isn’t ...
# general
w
hi, is there a way to debug why a directory isn’t being included in the a
file
target? E.g. I have
Copy code
files(
    name = "iai_coral_ui_docker_dev_deps",
    sources =[
       'package.json',
       'iai_common_ui/.storybook/*',
       'iai_common_ui/**',
       'iai_coral_ui/**',
       '.eslint*',
       'nx.json',
       'package-lock.json',
       'tsconfig.base.json',
       'tailwind.config.js',
    ]
)
the
iai_common_ui/.storybook/*
isn’t being included when doing
pants dependencies
I don’t think it’s being included in a
.gitignore
anywhere.
h
Gitignore and the top level global pants ignore option are the first places I go to look
w
Wheres the pants ignore?
c
By default pants will ignore dotfolders, so
.storybook
is ignored by pants. Adding something like
!iai_common_ui/.storybook
under the key
[GLOBAL].pants_ignore
in the
pants.toml
file should do it
w
thanks!
f
you may also find https://www.pantsbuild.org/docs/options#addremove-semantics helpful as you would normally want only to extend the list of directories ignored by default, so
pants_ignore.add
would be of help; this
.add
and
.remove
special syntax only works in Pants's
.toml
config files, not in environment variables or command-line flags.