mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +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
|
||||
const exactTemplatePath = path.dirname(
|
||||
require.resolve(path.join(name, 'package.json'), { paths: [parentDir] })
|
||||
require.resolve(`${name}/package.json`, { paths: [parentDir] })
|
||||
);
|
||||
return exactTemplatePath;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user