mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
chore(migrations): remove migrations
This commit is contained in:
@@ -1,24 +1,28 @@
|
||||
import { build } from "esbuild";
|
||||
import path from "node:path";
|
||||
// import { build } from "esbuild";
|
||||
// import alias from "esbuild-plugin-alias";
|
||||
// import path from "node:path";
|
||||
// import { fileURLToPath } from "node:url";
|
||||
// const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
|
||||
// const __dirname = path.dirname(__filename);
|
||||
|
||||
build({
|
||||
entryPoints: ["./src/**/*.ts", "./src/**/*.tsx"], // Punto de entrada principal de tu aplicación
|
||||
outdir: "dist",
|
||||
platform: "node",
|
||||
format: "esm",
|
||||
sourcemap: false,
|
||||
tsconfig: "./tsconfig.server.json",
|
||||
plugins: [
|
||||
// TsconfigPathsPlugin({ tsconfig: "./tsconfig.server.json" }),
|
||||
{
|
||||
name: "AddJsExtensions",
|
||||
setup(build) {
|
||||
build.onResolve({ filter: /.*/ }, (args) => {
|
||||
if (args.path.startsWith(".") && !path.extname(args.path)) {
|
||||
return { path: `${args.path}.js` };
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
],
|
||||
}).catch(() => process.exit(1));
|
||||
// build({
|
||||
// entryPoints: ["./src/**/*.ts"],
|
||||
// // outfile: "./dist/index.js",
|
||||
// outdir: "./dist",
|
||||
// bundle: true,
|
||||
// minify: false,
|
||||
// platform: "node",
|
||||
// target: "esnext",
|
||||
// format: "esm",
|
||||
// plugins: [
|
||||
// alias({
|
||||
// "@/server": path.resolve(__dirname, "src"),
|
||||
// }),
|
||||
// ],
|
||||
// packages: "external",
|
||||
// // Opcional: si deseas emitir declaraciones de tipos con esbuild-plugin-dts
|
||||
// })
|
||||
// .then(() => {
|
||||
// console.log("Build successful");
|
||||
// })
|
||||
// .catch(() => process.exit(1));
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
"types": "dist/index.d.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "rm -rf ./dist && tsc --project tsconfig.server.json && tsc-alias -p tsconfig.server.json --watch",
|
||||
"build": "rm -rf ./dist && tsc --project tsconfig.server.json && tsc-alias -p tsconfig.server.json",
|
||||
"esbuild": "tsx --watch ./esbuild.config.ts & tsc-alias -p tsconfig.server.json --watch",
|
||||
"build:types": "tsc --emitDeclarationOnly --experimenta-dts"
|
||||
"build:types": "tsc --emitDeclarationOnly --experimenta-dts",
|
||||
"dev": "rm -rf ./dist && pnpm esbuild && tsc --emitDeclarationOnly --outDir dist -p tsconfig.server.json",
|
||||
"esbuild": "tsx ./esbuild.config.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"rotating-file-stream": "3.2.3",
|
||||
@@ -67,7 +67,6 @@
|
||||
"esbuild": "0.20.2",
|
||||
"postcss": "^8.4.31",
|
||||
"typescript": "^5.4.2",
|
||||
"@types/ssh2": "1.15.1",
|
||||
"tsup": "6.4.0"
|
||||
"@types/ssh2": "1.15.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user