From 78c14ce867b33153dfb91e7faae09eda2c326e88 Mon Sep 17 00:00:00 2001 From: David Herman Date: Mon, 13 May 2024 09:15:55 -0700 Subject: [PATCH] remove useless check --- pkgs/create-neon/src/index.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/create-neon/src/index.ts b/pkgs/create-neon/src/index.ts index 4d9c65859..379b0c26f 100644 --- a/pkgs/create-neon/src/index.ts +++ b/pkgs/create-neon/src/index.ts @@ -163,15 +163,13 @@ export async function createNeon(name: string, options: CreateNeonOptions) { ); } - if (metadata.package) { - if (packageSpec.library && packageSpec.library.ci) { - packageSpec.library.ci.setup(); - } + if (packageSpec.library && packageSpec.library.ci) { + packageSpec.library.ci.setup(); + } - for (const source of Object.keys(options.templates)) { - const target = path.join(tmpPackagePath, options.templates[source]); - await expandTo(source, target, metadata); - } + for (const source of Object.keys(options.templates)) { + const target = path.join(tmpPackagePath, options.templates[source]); + await expandTo(source, target, metadata); } if (packageSpec.library) {