@cedarjs/cli 1.0.0-canary.12318 → 1.0.0-canary.12320

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.
Files changed (50) hide show
  1. package/README.md +1 -1
  2. package/dist/commands/build.js +1 -1
  3. package/dist/commands/buildHandler.js +1 -1
  4. package/dist/commands/deploy/baremetal.js +1 -1
  5. package/dist/commands/deploy/flightcontrol.js +1 -1
  6. package/dist/commands/deploy/helpers/deployBuilder.js +1 -1
  7. package/dist/commands/deploy/render.js +1 -1
  8. package/dist/commands/deploy/serverless.js +1 -1
  9. package/dist/commands/deploy.js +1 -1
  10. package/dist/commands/destroy.js +1 -1
  11. package/dist/commands/dev.js +1 -1
  12. package/dist/commands/exec.js +1 -1
  13. package/dist/commands/experimental/util.js +1 -1
  14. package/dist/commands/experimental.js +1 -1
  15. package/dist/commands/generate/dataMigration/dataMigration.js +1 -1
  16. package/dist/commands/generate/dbAuth/dbAuth.js +1 -1
  17. package/dist/commands/generate/function/function.js +1 -1
  18. package/dist/commands/generate/function/functionHandler.js +1 -1
  19. package/dist/commands/generate/job/job.js +1 -1
  20. package/dist/commands/generate/model/model.js +1 -1
  21. package/dist/commands/generate/ogImage/ogImage.js +1 -1
  22. package/dist/commands/generate/scaffold/scaffold.js +1 -1
  23. package/dist/commands/generate/script/script.js +1 -1
  24. package/dist/commands/generate/sdl/sdl.js +1 -1
  25. package/dist/commands/generate/secret/secret.js +1 -1
  26. package/dist/commands/generate/service/service.js +1 -1
  27. package/dist/commands/generate/yargsCommandHelpers.js +1 -1
  28. package/dist/commands/generate.js +1 -1
  29. package/dist/commands/info.js +1 -1
  30. package/dist/commands/lint.js +1 -1
  31. package/dist/commands/record.js +1 -1
  32. package/dist/commands/serve.js +1 -1
  33. package/dist/commands/setup/auth/auth.js +1 -1
  34. package/dist/commands/setup/cache/cache.js +1 -1
  35. package/dist/commands/setup/deploy/deploy.js +1 -1
  36. package/dist/commands/setup/generator/generator.js +1 -1
  37. package/dist/commands/setup/graphql/graphql.js +1 -1
  38. package/dist/commands/setup/jobs/jobs.js +1 -1
  39. package/dist/commands/setup/middleware/middleware.js +1 -1
  40. package/dist/commands/setup/monitoring/monitoring.js +1 -1
  41. package/dist/commands/setup/package/package.js +1 -1
  42. package/dist/commands/setup/ui/libraries/tailwindcssHandler.js +1 -1
  43. package/dist/commands/setup/ui/ui.js +1 -1
  44. package/dist/commands/setup.js +1 -1
  45. package/dist/commands/test.js +1 -1
  46. package/dist/commands/type-check.js +1 -1
  47. package/dist/commands/upgrade.js +1 -1
  48. package/dist/lib/exit.js +1 -1
  49. package/dist/rwfw.js +2 -2
  50. package/package.json +12 -12
package/README.md CHANGED
@@ -301,7 +301,7 @@ Files for entry-point commands typically aren't too complicated. Here's the cont
301
301
  export const command = 'generate <type>'
302
302
  export const aliases = ['g']
303
303
  export const description = 'Save time by generating boilerplate code'
304
- import terminalLink from 'terminal-link'
304
+ import { terminalLink } from 'termi-link'
305
305
 
306
306
  export const builder = (yargs) =>
307
307
  yargs
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import c from "../lib/colors.js";
3
3
  import { exitWithError } from "../lib/exit.js";
4
4
  import { sides } from "../lib/project.js";
@@ -3,7 +3,7 @@ import path from "node:path";
3
3
  import execa from "execa";
4
4
  import fs from "fs-extra";
5
5
  import { Listr } from "listr2";
6
- import terminalLink from "terminal-link";
6
+ import { terminalLink } from "termi-link";
7
7
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
8
8
  import { buildApi, cleanApiBuild } from "@cedarjs/internal/dist/build/api";
9
9
  import { generate } from "@cedarjs/internal/dist/generate/generate";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
3
3
  const command = "baremetal [environment]";
4
4
  const description = "Deploy to baremetal server(s)";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  const command = "flightcontrol <side>";
3
3
  const alias = "fc";
4
4
  const description = "Build, Migrate, and Serve commands for Flightcontrol deploy";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  const deployBuilder = (yargs) => {
3
3
  yargs.option("build", {
4
4
  description: "Build for production",
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  if (process.argv.slice(2).includes("api")) {
3
3
  process.env.REDWOOD_DISABLE_TELEMETRY = 1;
4
4
  }
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  const command = "serverless";
3
3
  const aliases = ["aws serverless", "sls"];
4
4
  const description = "Deploy to AWS via the serverless framework";
@@ -1,6 +1,6 @@
1
1
  const command = "deploy <target>";
2
2
  const description = "Deploy your Redwood project";
3
- import terminalLink from "terminal-link";
3
+ import { terminalLink } from "termi-link";
4
4
  import * as deployBaremetal from "./deploy/baremetal.js";
5
5
  import * as deployFlightcontrol from "./deploy/flightcontrol.js";
6
6
  import * as deployNetlify from "./deploy/netlify.js";
@@ -1,7 +1,7 @@
1
1
  const command = "destroy <type>";
2
2
  const aliases = ["d"];
3
3
  const description = "Rollback changes made by the generate command";
4
- import terminalLink from "terminal-link";
4
+ import { terminalLink } from "termi-link";
5
5
  import * as destroyCell from "./destroy/cell/cell.js";
6
6
  import * as destroyComponent from "./destroy/component/component.js";
7
7
  import * as destroyDirective from "./destroy/directive/directive.js";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import c from "../lib/colors.js";
3
3
  import { checkNodeVersion } from "../middleware/checkNodeVersion.js";
4
4
  const command = "dev [side..]";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  const command = "exec [name]";
3
3
  const description = "Run scripts generated with yarn generate script";
4
4
  const builder = (yargs) => {
@@ -1,7 +1,7 @@
1
1
  import path from "path";
2
2
  import chalk from "chalk";
3
3
  import fs from "fs-extra";
4
- import terminalLink from "terminal-link";
4
+ import { terminalLink } from "termi-link";
5
5
  import { getPaths } from "../../lib/index.js";
6
6
  import { isTypeScriptProject, serverFileExists } from "../../lib/project.js";
7
7
  const link = (topicId, isTerminal = false) => {
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import detectRxVersion from "../middleware/detectProjectRxVersion.js";
3
3
  import * as experimentalInngest from "./experimental/setupInngest.js";
4
4
  import * as experimentalOpenTelemetry from "./experimental/setupOpentelemetry.js";
@@ -2,7 +2,7 @@ import path from "path";
2
2
  import { paramCase } from "change-case";
3
3
  import fs from "fs-extra";
4
4
  import { Listr } from "listr2";
5
- import terminalLink from "terminal-link";
5
+ import { terminalLink } from "termi-link";
6
6
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
7
7
  import c from "../../../lib/colors.js";
8
8
  import { getPaths, writeFilesTask } from "../../../lib/index.js";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { getYargsDefaults, createHandler } from "../yargsCommandHelpers.js";
3
3
  const command = "dbAuth";
4
4
  const description = "Generate Login, Signup and Forgot Password pages for dbAuth";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { getYargsDefaults, createHandler } from "../yargsCommandHelpers.js";
3
3
  const command = "function <name>";
4
4
  const description = "Generate a Function";
@@ -1,7 +1,7 @@
1
1
  import path from "path";
2
2
  import camelcase from "camelcase";
3
3
  import { Listr } from "listr2";
4
- import terminalLink from "terminal-link";
4
+ import { terminalLink } from "termi-link";
5
5
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
6
6
  import { errorTelemetry } from "@cedarjs/telemetry";
7
7
  import c from "../../../lib/colors.js";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { isTypeScriptProject } from "../../../lib/project.js";
3
3
  import { getYargsDefaults, createHandler } from "../yargsCommandHelpers.js";
4
4
  const command = "job <name>";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { createHandler, getYargsDefaults } from "../yargsCommandHelpers.js";
3
3
  const command = "model <name>";
4
4
  const description = "Generate a RedwoodRecord model";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { isTypeScriptProject } from "../../../lib/project.js";
3
3
  import { createHandler } from "../yargsCommandHelpers.js";
4
4
  const description = "Generate an og:image component";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { createHandler, getYargsDefaults } from "../yargsCommandHelpers.js";
3
3
  const command = "scaffold <model>";
4
4
  const description = "Generate Pages, SDL, and Services files based on a given DB schema Model. Also accepts <path/model>";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { createHandler, getYargsDefaults } from "../yargsCommandHelpers.js";
3
3
  const command = "script <name>";
4
4
  const description = "Generate a command line script";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { createHandler, getYargsDefaults } from "../yargsCommandHelpers.js";
3
3
  const getDefaults = () => {
4
4
  return {
@@ -1,5 +1,5 @@
1
1
  import crypto from "node:crypto";
2
- import terminalLink from "terminal-link";
2
+ import { terminalLink } from "termi-link";
3
3
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
4
4
  const DEFAULT_LENGTH = 32;
5
5
  const generateSecret = (length = DEFAULT_LENGTH) => {
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import {
3
3
  createCommand,
4
4
  createDescription,
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { isTypeScriptProject } from "@cedarjs/cli-helpers";
3
3
  const getYargsDefaults = () => ({
4
4
  force: {
@@ -1,5 +1,5 @@
1
1
  import execa from "execa";
2
- import terminalLink from "terminal-link";
2
+ import { terminalLink } from "termi-link";
3
3
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
4
4
  import * as generateCell from "./generate/cell/cell.js";
5
5
  import * as generateComponent from "./generate/component/component.js";
@@ -1,6 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import envinfo from "envinfo";
3
- import terminalLink from "terminal-link";
3
+ import { terminalLink } from "termi-link";
4
4
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
5
5
  import { getPaths } from "@cedarjs/project-config";
6
6
  const command = "info";
@@ -1,6 +1,6 @@
1
1
  import execa from "execa";
2
2
  import fs from "fs-extra";
3
- import terminalLink from "terminal-link";
3
+ import { terminalLink } from "termi-link";
4
4
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
5
5
  import { getPaths } from "../lib/index.js";
6
6
  const command = "lint [path..]";
@@ -1,6 +1,6 @@
1
1
  const command = "record <command>";
2
2
  const description = "Setup RedwoodRecord for your project. Caches a JSON version of your data model and adds api/src/models/index.js with some config.";
3
- import terminalLink from "terminal-link";
3
+ import { terminalLink } from "termi-link";
4
4
  const builder = (yargs) => yargs.command({ command, description, handler }).demandCommand().epilogue(
5
5
  `Also see the ${terminalLink(
6
6
  "RedwoodRecord Docs",
@@ -1,6 +1,6 @@
1
1
  import path from "path";
2
2
  import fs from "fs-extra";
3
- import terminalLink from "terminal-link";
3
+ import { terminalLink } from "termi-link";
4
4
  import * as apiServerCLIConfig from "@cedarjs/api-server/dist/apiCLIConfig.js";
5
5
  import * as bothServerCLIConfig from "@cedarjs/api-server/dist/bothCLIConfig.js";
6
6
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
@@ -1,7 +1,7 @@
1
1
  import path from "node:path";
2
2
  import execa from "execa";
3
3
  import fs from "fs-extra";
4
- import terminalLink from "terminal-link";
4
+ import { terminalLink } from "termi-link";
5
5
  import {
6
6
  recordTelemetryAttributes,
7
7
  standardAuthBuilder
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
3
3
  const command = "cache <client>";
4
4
  const description = "Sets up an init file for service caching";
@@ -1,6 +1,6 @@
1
1
  const command = "deploy <target>";
2
2
  const description = "Setup deployment to various targets";
3
- import terminalLink from "terminal-link";
3
+ import { terminalLink } from "termi-link";
4
4
  import * as setupDeployBaremetal from "./providers/baremetal.js";
5
5
  import * as setupDeployCoherence from "./providers/coherence.js";
6
6
  import * as setupDeployFlightcontrol from "./providers/flightcontrol.js";
@@ -1,6 +1,6 @@
1
1
  import path from "path";
2
2
  import fs from "fs-extra";
3
- import terminalLink from "terminal-link";
3
+ import { terminalLink } from "termi-link";
4
4
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
5
5
  const command = "generator <name>";
6
6
  const description = "Copies generator templates locally for customization";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import * as fragmentsCommand from "./features/fragments/fragments.js";
3
3
  import * as trustedDocumentsCommand from "./features/trustedDocuments/trustedDocuments.js";
4
4
  const command = "graphql <feature>";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
3
3
  const command = "jobs";
4
4
  const description = "Sets up the config file and parent directory for background jobs";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import * as ogImageCommand from "./ogImage/ogImage.js";
3
3
  const command = "middleware <type>";
4
4
  const description = "Set up a middleware";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import * as sentryCommand from "./sentry/sentry.js";
3
3
  const command = "monitoring <provider>";
4
4
  const description = "Set up monitoring in your Redwood app";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
3
3
  const command = "package <npm-package>";
4
4
  const description = "Run a bin from an NPM package with version compatibility checks";
@@ -3,7 +3,7 @@ import path from "node:path";
3
3
  import { ListrEnquirerPromptAdapter } from "@listr2/prompt-adapter-enquirer";
4
4
  import execa from "execa";
5
5
  import { Listr } from "listr2";
6
- import terminalLink from "terminal-link";
6
+ import { terminalLink } from "termi-link";
7
7
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
8
8
  import { errorTelemetry } from "@cedarjs/telemetry";
9
9
  import c from "../../../../lib/colors.js";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import * as libraryChakraUi from "./libraries/chakra-ui.js";
3
3
  import * as libraryMantine from "./libraries/mantine.js";
4
4
  import * as libraryTailwindCss from "./libraries/tailwindcss.js";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import detectRxVersion from "../middleware/detectProjectRxVersion.js";
3
3
  import * as setupAuth from "./setup/auth/auth.js";
4
4
  import * as setupCache from "./setup/cache/cache.js";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import c from "../lib/colors.js";
3
3
  import { sides } from "../lib/project.js";
4
4
  const command = "test [filter..]";
@@ -1,4 +1,4 @@
1
- import terminalLink from "terminal-link";
1
+ import { terminalLink } from "termi-link";
2
2
  import { sides } from "../lib/project.js";
3
3
  const command = "type-check [sides..]";
4
4
  const aliases = ["tsc", "tc"];
@@ -4,7 +4,7 @@ import execa from "execa";
4
4
  import fs from "fs-extra";
5
5
  import latestVersion from "latest-version";
6
6
  import { Listr } from "listr2";
7
- import terminalLink from "terminal-link";
7
+ import { terminalLink } from "termi-link";
8
8
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
9
9
  import { getConfig } from "@cedarjs/project-config";
10
10
  import c from "../lib/colors.js";
package/dist/lib/exit.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import chalk from "chalk";
2
- import terminalLink from "terminal-link";
2
+ import { terminalLink } from "termi-link";
3
3
  import { v4 as uuidv4 } from "uuid";
4
4
  import {
5
5
  recordTelemetryAttributes,
package/dist/rwfw.js CHANGED
@@ -3,7 +3,7 @@ import path from "path";
3
3
  import Configstore from "configstore";
4
4
  import execa from "execa";
5
5
  import fs from "fs-extra";
6
- import TerminalLink from "terminal-link";
6
+ import { terminalLink } from "termi-link";
7
7
  import { getConfigPath } from "@cedarjs/project-config";
8
8
  const config = new Configstore("@cedarjs/cli");
9
9
  const RWFW_PATH = process.env.RWFW_PATH || process.env.RW_PATH || config.get("RWFW_PATH");
@@ -26,7 +26,7 @@ const projectPath = path.dirname(
26
26
  );
27
27
  console.log(
28
28
  "Redwood Framework Tools Path:",
29
- TerminalLink(absRwFwPath, absRwFwPath)
29
+ terminalLink(absRwFwPath, absRwFwPath)
30
30
  );
31
31
  let command = process.argv.slice(2);
32
32
  const helpCommands = ["help", "--help"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "1.0.0-canary.12318+74d039296",
3
+ "version": "1.0.0-canary.12320+f0f7f052a",
4
4
  "description": "The Redwood Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,15 +29,15 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@babel/runtime-corejs3": "7.27.6",
32
- "@cedarjs/api-server": "1.0.0-canary.12318",
33
- "@cedarjs/cli-helpers": "1.0.0-canary.12318",
34
- "@cedarjs/fastify-web": "1.0.0-canary.12318",
35
- "@cedarjs/internal": "1.0.0-canary.12318",
36
- "@cedarjs/prerender": "1.0.0-canary.12318",
37
- "@cedarjs/project-config": "1.0.0-canary.12318",
38
- "@cedarjs/structure": "1.0.0-canary.12318",
39
- "@cedarjs/telemetry": "1.0.0-canary.12318",
40
- "@cedarjs/web-server": "1.0.0-canary.12318",
32
+ "@cedarjs/api-server": "1.0.0-canary.12320",
33
+ "@cedarjs/cli-helpers": "1.0.0-canary.12320",
34
+ "@cedarjs/fastify-web": "1.0.0-canary.12320",
35
+ "@cedarjs/internal": "1.0.0-canary.12320",
36
+ "@cedarjs/prerender": "1.0.0-canary.12320",
37
+ "@cedarjs/project-config": "1.0.0-canary.12320",
38
+ "@cedarjs/structure": "1.0.0-canary.12320",
39
+ "@cedarjs/telemetry": "1.0.0-canary.12320",
40
+ "@cedarjs/web-server": "1.0.0-canary.12320",
41
41
  "@listr2/prompt-adapter-enquirer": "2.0.12",
42
42
  "@opentelemetry/api": "1.8.0",
43
43
  "@opentelemetry/core": "1.22.0",
@@ -79,7 +79,7 @@
79
79
  "smol-toml": "1.3.4",
80
80
  "string-env-interpolation": "1.0.1",
81
81
  "systeminformation": "5.23.8",
82
- "terminal-link": "2.1.1",
82
+ "termi-link": "1.1.0",
83
83
  "title-case": "3.0.3",
84
84
  "unionfs": "4.5.4",
85
85
  "uuid": "10.0.0",
@@ -95,5 +95,5 @@
95
95
  "typescript": "5.6.2",
96
96
  "vitest": "2.1.9"
97
97
  },
98
- "gitHead": "74d03929677d47123af04b297d4748e7d125d36e"
98
+ "gitHead": "f0f7f052ae77308a44c74b46cac8be9ef9f28e90"
99
99
  }