@vlandoss/localproxy 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlandoss/localproxy",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Simple local development proxy automation",
5
5
  "homepage": "https://github.com/variableland/dx/tree/main/packages/localproxy#readme",
6
6
  "bugs": {
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@inquirer/prompts": "^7.8.4",
28
28
  "commander": "13.1.0",
29
- "@vlandoss/clibuddy": "0.0.5",
29
+ "@vlandoss/clibuddy": "0.0.6",
30
30
  "@vlandoss/loggy": "0.0.5"
31
31
  },
32
32
  "publishConfig": {
@@ -36,6 +36,6 @@
36
36
  "bun": ">=1.0.0"
37
37
  },
38
38
  "scripts": {
39
- "test": "vitest run"
39
+ "test": "bun test"
40
40
  }
41
41
  }
@@ -1,9 +1,9 @@
1
1
  import { createCommand } from "commander";
2
- import { CaddyService } from "~/services/caddy";
3
- import { CaddyfileService } from "~/services/caddyfile";
4
- import { HostsService } from "~/services/hosts";
5
- import { logger } from "~/services/logger";
6
- import type { Context } from "~/types";
2
+ import { CaddyService } from "#/services/caddy";
3
+ import { CaddyfileService } from "#/services/caddyfile";
4
+ import { HostsService } from "#/services/hosts";
5
+ import { logger } from "#/services/logger";
6
+ import type { Context } from "#/types";
7
7
 
8
8
  type CommandOptions = {
9
9
  verbose: boolean;
@@ -2,13 +2,13 @@ import * as fs from "node:fs/promises";
2
2
  import path from "node:path";
3
3
  import { editor as editorPrompt } from "@inquirer/prompts";
4
4
  import { createCommand } from "commander";
5
- import { CaddyService } from "~/services/caddy";
6
- import { CaddyfileService } from "~/services/caddyfile";
7
- import { FileService } from "~/services/file";
8
- import { HostsService } from "~/services/hosts";
9
- import { logger } from "~/services/logger";
10
- import { quietShell } from "~/services/shell";
11
- import type { Context } from "~/types";
5
+ import { CaddyService } from "#/services/caddy";
6
+ import { CaddyfileService } from "#/services/caddyfile";
7
+ import { FileService } from "#/services/file";
8
+ import { HostsService } from "#/services/hosts";
9
+ import { logger } from "#/services/logger";
10
+ import { quietShell } from "#/services/shell";
11
+ import type { Context } from "#/types";
12
12
 
13
13
  type CommandOptions = {
14
14
  verbose: boolean;
@@ -1,7 +1,7 @@
1
1
  import { createCommand } from "commander";
2
- import { CaddyService } from "~/services/caddy";
3
- import { logger } from "~/services/logger";
4
- import type { Context } from "~/types";
2
+ import { CaddyService } from "#/services/caddy";
3
+ import { logger } from "#/services/logger";
4
+ import type { Context } from "#/types";
5
5
 
6
6
  type CommandOptions = {
7
7
  verbose: boolean;
@@ -1,10 +1,10 @@
1
1
  import { createCommand } from "commander";
2
- import { CaddyService } from "~/services/caddy";
3
- import { CaddyfileService } from "~/services/caddyfile";
4
- import { FileService } from "~/services/file";
5
- import { HostsService } from "~/services/hosts";
6
- import { logger } from "~/services/logger";
7
- import type { Context } from "~/types";
2
+ import { CaddyService } from "#/services/caddy";
3
+ import { CaddyfileService } from "#/services/caddyfile";
4
+ import { FileService } from "#/services/file";
5
+ import { HostsService } from "#/services/hosts";
6
+ import { logger } from "#/services/logger";
7
+ import type { Context } from "#/types";
8
8
 
9
9
  export function createStatusCommand({ caddyfilePath }: Context) {
10
10
  return createCommand("status")
@@ -1,7 +1,7 @@
1
1
  import { createCommand } from "commander";
2
- import { CaddyService } from "~/services/caddy";
3
- import { logger } from "~/services/logger";
4
- import type { Context } from "~/types";
2
+ import { CaddyService } from "#/services/caddy";
3
+ import { logger } from "#/services/logger";
4
+ import type { Context } from "#/types";
5
5
 
6
6
  type CommandOptions = {
7
7
  verbose: boolean;
package/tsconfig.json CHANGED
@@ -3,7 +3,8 @@
3
3
  "compilerOptions": {
4
4
  "baseUrl": ".",
5
5
  "paths": {
6
- "~/*": ["./src/*"],
6
+ "#/*": ["./src/*"],
7
+ "#test/*": ["./test/*"],
7
8
  "@vlandoss/*": ["../../packages/*/src"]
8
9
  }
9
10
  }