mirror of
https://github.com/strapi/strapi.git
synced 2025-10-18 11:32:42 +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 } = {}) => {
|
module.exports = (dir, { filename = DEFAULT_TS_CONFIG_FILENAME, ancestorsLookup = false } = {}) => {
|
||||||
const dirAbsolutePath = path.resolve(dir);
|
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) {
|
if (!configFilePath || ancestorsLookup) {
|
||||||
return configFilePath;
|
return configFilePath;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user