File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { fileURLToPath } from 'url'
33import { spawn } from 'child_process'
44import { rimraf } from 'rimraf'
55
6- const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
6+ const dirname = import . meta. dirname
77const isProd = process . env . NODE_ENV === 'production'
88const isDev = process . env . NODE_ENV === 'local'
99let nodeProcess = null
@@ -16,16 +16,16 @@ if (isDev) {
1616
1717/** @type {import('esbuild').BuildOptions } */
1818export const config = {
19- entryPoints : [ path . resolve ( __dirname , '../src/index.ts' ) ] ,
20- outfile : path . resolve ( __dirname , '../build/index.js' ) ,
19+ entryPoints : [ path . resolve ( dirname , '../src/index.ts' ) ] ,
20+ outfile : path . resolve ( dirname , '../build/index.js' ) ,
2121 format : 'esm' ,
2222 bundle : true ,
2323 sourcemap : isDev ,
2424 minify : isProd ,
2525 platform : 'node' ,
2626 external : [ 'dotenv' , 'timers/promises' , '@modelcontextprotocol/sdk' ] ,
2727 alias : {
28- '@' : path . resolve ( __dirname , '../src' ) ,
28+ '@' : path . resolve ( dirname , '../src' ) ,
2929 } ,
3030 plugins : [
3131 {
You can’t perform that action at this time.
0 commit comments