Skip to content

Commit

Permalink
fix(nano-build): entry point of microservice preset
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadhonarvar committed Oct 12, 2024
1 parent e474bb7 commit e5e4826
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/nano-build/nano-build.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit e5e4826

Please sign in to comment.