mirror of
https://github.com/strapi/strapi.git
synced 2025-11-15 09:39:15 +00:00
Remove useless path.join
This commit is contained in:
parent
ca729a8f68
commit
1e371f6942
@ -52,7 +52,7 @@ async function downloadNpmTemplate({ name, version }, parentDir) {
|
|||||||
|
|
||||||
// Return the path of the actual template
|
// Return the path of the actual template
|
||||||
const exactTemplatePath = path.dirname(
|
const exactTemplatePath = path.dirname(
|
||||||
require.resolve(path.join(name, 'package.json'), { paths: [parentDir] })
|
require.resolve(`${name}/package.json`, { paths: [parentDir] })
|
||||||
);
|
);
|
||||||
return exactTemplatePath;
|
return exactTemplatePath;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user