feat: Bundler with tsdown

This commit is contained in:
2026-05-07 13:49:39 -04:00
parent 52ce8bc622
commit 9d2d5d27fa
8 changed files with 569 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env node
import { Command } from "commander";
import { deploy } from "./commands/deploy.js";
import { createContext } from "./lib/context.js";
import { deploy } from "./commands/deploy";
import { createContext } from "./lib/context";
import pkg from "../package.json" with { type: "json" };
const program = new Command();

View File

@@ -1,10 +1,10 @@
import { existsSync, mkdirSync, readdirSync, rmSync } from "node:fs";
import { join } from "node:path";
import { consola } from "consola";
import type { WPopContext } from "../lib/context.js";
import { readDeployEnv } from "../lib/env.js";
import { run } from "../lib/run.js";
import { createSshConfig, prepareSsh, rsyncSshShell, sshArgs, sshTarget } from "../lib/ssh.js";
import type { WPopContext } from "../lib/context";
import { readDeployEnv } from "../lib/env";
import { run } from "../lib/run";
import { createSshConfig, prepareSsh, rsyncSshShell, sshArgs, sshTarget } from "../lib/ssh";
export type DeployOptions = {
skipComposer?: boolean;

View File

@@ -1,5 +1,5 @@
import { execa } from "execa";
import type { WPopContext } from "./context.js";
import type { WPopContext } from "./context";
export type RunOptions = {
cwd?: string;

View File

@@ -3,9 +3,9 @@ import { tmpdir } from "node:os";
import { join } from "node:path";
import { consola } from "consola";
import { execa } from "execa";
import type { WPopContext } from "./context.js";
import type { DeployEnv } from "./env.js";
import { run } from "./run.js";
import type { WPopContext } from "./context";
import type { DeployEnv } from "./env";
import { run } from "./run";
export type SshConfig = {
host: string;