Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy-files error when directory doesn't exist #32

Open
thejuan opened this issue Dec 16, 2021 · 2 comments
Open

copy-files error when directory doesn't exist #32

thejuan opened this issue Dec 16, 2021 · 2 comments

Comments

@thejuan
Copy link

thejuan commented Dec 16, 2021

If you have an assets folder with no TS files, the folder is not present in the output directory. copy-files doesn't make the path before/when copying

Error: ENOENT: no such file or directory, copyfile 'src/assets/styles/_common.scss' -> 'dist/assets/styles/_common.scss'

@luke-lewandowski
Copy link

luke-lewandowski commented Apr 15, 2022

Same issue here.

Config snippet

 "include": [
    "src/**/*.ts",
    "src/**/*.xml",
    "src/**/*.json"
  ],
  "exclude": [
    "node_modules",
    "cdktf.out"
  ],
  "hooks": [
    "copy-files"
  ]

trying to get
/src/policies/policy.xml
to be in the
/dist/policies/policy.xml

dist folder is empty

@felpereira
Copy link

@luke

Same issue here.

Config snippet

 "include": [
    "src/**/*.ts",
    "src/**/*.xml",
    "src/**/*.json"
  ],
  "exclude": [
    "node_modules",
    "cdktf.out"
  ],
  "hooks": [
    "copy-files"
  ]

trying to get /src/policies/policy.xml to be in the /dist/policies/policy.xml

dist folder is empty

"Hello, I need to add an 'include' file from the 'dist' folder in this example."

 "include": [
  "/src/policies",
    "src/**/*.ts",
    "src/**/*.xml",
    "src/**/*.json"
  ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants