tsc-hooks icon indicating copy to clipboard operation
tsc-hooks copied to clipboard

copy-files error when directory doesn't exist

Open thejuan opened this issue 4 years ago • 2 comments

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'

thejuan avatar Dec 16 '21 00:12 thejuan

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-lewandowski avatar Apr 15 '22 03:04 luke-lewandowski

@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"
  ],

felpereira avatar Dec 29 '23 00:12 felpereira