We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5de846 + 89e4b94 commit 32dfde1Copy full SHA for 32dfde1
src/cli/libnest-build.ts
@@ -1,4 +1,3 @@
1
-import * as path from 'node:path';
2
import * as process from 'node:process';
3
4
import { Command } from 'commander';
@@ -12,10 +11,7 @@ program.action(async function () {
12
11
if (!configFile) {
13
return program.error(`error: environment variable 'LIBNEST_CONFIG_FILEPATH' must be defined`);
14
}
15
- await bundle({
16
- configFile,
17
- outfile: path.resolve(import.meta.dirname, '../../build/server.js')
18
- }).mapErr((error) => {
+ await bundle({ configFile }).mapErr((error) => {
19
program.error(error.toString(), { exitCode: 1 });
20
});
21
0 commit comments