Bugfix. Update Tsx server stripping function to have absolute paths. Run the rewrite function on dev and build commands.

This commit is contained in:
2026-03-22 10:53:27 +01:00
parent a9af20a8b2
commit 3d044ee79e
13 changed files with 142 additions and 99 deletions
+2
View File
@@ -2,12 +2,14 @@ import { Command } from "commander";
import allPagesBundler from "../../functions/bundler/all-pages-bundler";
import { log } from "../../utils/log";
import init from "../../functions/init";
import rewritePagesModule from "../../utils/rewrite-pages-module";
export default function () {
return new Command("build")
.description("Build Project")
.action(async () => {
process.env.NODE_ENV = "production";
process.env.BUILD = "true";
await rewritePagesModule();
await init();
log.banner();
log.build("Building Project ...");