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