mirror of
https://github.com/strapi/strapi.git
synced 2025-10-17 19:13:25 +00:00
fix: Unknown Dialect Windows issue
This commit is contained in:
parent
02af04644a
commit
cde32fc39f
@ -17,7 +17,9 @@ const DEFAULT_TS_CONFIG_FILENAME = 'tsconfig.json';
|
||||
*/
|
||||
module.exports = (dir, { filename = DEFAULT_TS_CONFIG_FILENAME, ancestorsLookup = false } = {}) => {
|
||||
const dirAbsolutePath = path.resolve(dir);
|
||||
const configFilePath = ts.findConfigFile(dirAbsolutePath, ts.sys.fileExists, filename);
|
||||
let configFilePath = ts.findConfigFile(dirAbsolutePath, ts.sys.fileExists, filename);
|
||||
|
||||
if (configFilePath) configFilePath = path.resolve(configFilePath);
|
||||
|
||||
if (!configFilePath || ancestorsLookup) {
|
||||
return configFilePath;
|
||||
|
Loading…
x
Reference in New Issue
Block a user