mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 11:44:31 +00:00
Fix ems build
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@app/*": ["./src/*"],
|
||||
"@bdd_routes/bdd-nock-router": ["./src/server/routes/bdd/bdd-nock-router.ts"]
|
||||
"@bdd_routes/*": ["./src/server/routes/bdd/*"]
|
||||
},
|
||||
"jsx": "react-jsx"
|
||||
},
|
||||
|
||||
@@ -29,7 +29,7 @@ export default defineConfig({
|
||||
external: ["../../../frontend/node_modules/next/dist/server/next-server.js"],
|
||||
outDir: "dist",
|
||||
tsconfig: "./tsconfig.json",
|
||||
entry: ["./src"],
|
||||
entry: ["./src", "!./src/**/*.dev.ts"],
|
||||
sourceMap: true,
|
||||
skipNodeModulesBundle: true,
|
||||
esbuildPlugins: [
|
||||
@@ -45,11 +45,7 @@ export default defineConfig({
|
||||
const isRelativePath = args.path.startsWith(".");
|
||||
const absPath = isRelativePath
|
||||
? path.join(args.resolveDir, args.path)
|
||||
: path.join(
|
||||
args.path
|
||||
.replace("@app", "./src")
|
||||
.replace("@bdd_routes/bdd-nock-router", "./src/server/routes/bdd/bdd-nock-router.ts")
|
||||
);
|
||||
: path.join(args.path.replace("@app", "./src").replace("@bdd_routes", "./src/server/routes/bdd"));
|
||||
|
||||
const isFile = await fs
|
||||
.stat(`${absPath}.ts`)
|
||||
|
||||
Reference in New Issue
Block a user