tsc-hooks
tsc-hooks copied to clipboard
copy-files file not found when using rootDir
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"],
Facing same issue
the same