tsc-hooks
tsc-hooks copied to clipboard
copy-files error when directory doesn't exist
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'
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
@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.xmlto be in the/dist/policies/policy.xmldist 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"
],