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

copy-files file not found when using rootDir

Open thejuan opened this issue 3 years ago • 2 comments

When a rootDir is specified the globs are based on that (rather than the tsconfig directory), but when copying the file the rootDir is not appended so the file can't be found. I'm not sure the rootDir should be set as the glob path, but if it is it needs to be added to the path before copying

  "exclude": ["node_modules", "dist"],
  "include": ["./src", "**/*.{css,scss,svg,woff,woff2}"],
  "compilerOptions": {
    "rootDir": "./src",
    "outDir": "dist"
  },
  "hooks": ["copy-files"],

thejuan avatar Dec 16 '21 00:12 thejuan

Facing same issue

agarwalvaibhav0211 avatar Jul 14 '23 19:07 agarwalvaibhav0211

the same

SviataslauS avatar Oct 09 '23 17:10 SviataslauS