@tsed/cli 7.0.0-beta.5 → 7.0.0-beta.7

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.
@@ -0,0 +1,10 @@
1
+ if (process.env.CLI_MODE === "ts") {
2
+ try {
3
+ await import("@swc-node/register/esm-register");
4
+ }
5
+ catch (error) {
6
+ console.error("CLI_MODE=ts requires '@swc-node/register'. Install it and @swc/core to continue.");
7
+ process.env.CLI_MODE = undefined;
8
+ }
9
+ }
10
+ export {};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import "@swc-node/register/esm-register";
2
+ import "./ts-mode.js";
3
3
  import { register } from "node:module";
4
4
  import { join } from "node:path";
5
5
  import { pathToFileURL } from "node:url";
@@ -363,14 +363,13 @@ export const FeaturesMap = {
363
363
  checked: false
364
364
  }
365
365
  };
366
- export const FrameworksPrompt = {
367
- message: "Choose the target Framework:",
368
- type: "list",
369
- name: "platform",
370
- choices: [PlatformType.EXPRESS, PlatformType.KOA, PlatformType.FASTIFY]
371
- };
372
366
  export const FeaturesPrompt = (availableRuntimes, availablePackageManagers) => [
373
- FrameworksPrompt,
367
+ {
368
+ message: "Choose the target Framework:",
369
+ type: "list",
370
+ name: "platform",
371
+ choices: [PlatformType.EXPRESS, PlatformType.KOA, PlatformType.FASTIFY]
372
+ },
374
373
  {
375
374
  message: "Choose the architecture for your project:",
376
375
  type: "list",