From 1e371f6942bfbeb7e398daea985eaa9aaef77fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20de=20Juvigny?= Date: Thu, 4 Nov 2021 14:01:02 +0100 Subject: [PATCH] Remove useless path.join --- packages/generators/app/lib/utils/fetch-npm-template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/generators/app/lib/utils/fetch-npm-template.js b/packages/generators/app/lib/utils/fetch-npm-template.js index e8ef012803..2afe8a1a9c 100644 --- a/packages/generators/app/lib/utils/fetch-npm-template.js +++ b/packages/generators/app/lib/utils/fetch-npm-template.js @@ -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; }