From e5e482638361b57c619c671fe664f6b0a3325c66 Mon Sep 17 00:00:00 2001 From: Mohammad Honarvar Date: Sat, 12 Oct 2024 10:17:46 +0330 Subject: [PATCH] fix(nano-build): entry point of `microservice` preset --- packages/nano-build/nano-build.cjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nano-build/nano-build.cjs b/packages/nano-build/nano-build.cjs index 341e0bdb..8e458a34 100755 --- a/packages/nano-build/nano-build.cjs +++ b/packages/nano-build/nano-build.cjs @@ -9,7 +9,7 @@ if (existsSync(packageJsonPath) === false) { } const packageJson = require(packageJsonPath); -console.log('\nšŸš€ nano-build šŸ“¦ %s\n', packageJson.nam); +console.log('\nšŸš€ nano-build šŸ“¦ %s\n', packageJson.name); const devMode = process.env.NODE_ENV !== 'production'; @@ -122,13 +122,13 @@ const presetRecord = { ...(devMode ? developmentOptions : productionOptions), }, microservice: { - entryPoints: ['src/ts/main.ts'], + entryPoints: ['src/main.ts'], platform: 'node', format: 'esm', mangleProps: '_$', target: 'node20', ...(devMode ? developmentOptions : productionOptions), - }, + } }; function getOptions() {