@cedarjs/cli 7.0.0-canary.3083 → 7.0.0-canary.3084
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/dist/commands/build/buildHandler.js +2 -1
- package/dist/commands/build.js +1 -1
- package/dist/commands/check.js +2 -1
- package/dist/commands/deploy/baremetal/baremetalHandler.js +1 -1
- package/dist/commands/deploy/baremetal.js +1 -1
- package/dist/commands/deploy/flightcontrolHandler.js +1 -1
- package/dist/commands/deploy/helpers/deployHandler.js +1 -1
- package/dist/commands/deploy/netlify.js +1 -1
- package/dist/commands/deploy/renderHandler.js +1 -1
- package/dist/commands/deploy/serverlessHandler.js +2 -1
- package/dist/commands/deploy/vercel.js +1 -1
- package/dist/commands/destroy/handlerHelpers.js +1 -1
- package/dist/commands/destroy/page/pageHandler.js +2 -1
- package/dist/commands/destroy/scaffold/scaffoldHandler.js +2 -1
- package/dist/commands/destroy/sdl/sdlHandler.js +2 -1
- package/dist/commands/dev/devHandler.js +2 -1
- package/dist/commands/dev/packageWatchCommands.js +1 -1
- package/dist/commands/dev.js +1 -1
- package/dist/commands/execHandler.js +2 -1
- package/dist/commands/experimental/live-queries/liveQueries.js +1 -1
- package/dist/commands/experimental/live-queries/liveQueriesHandler.js +3 -3
- package/dist/commands/experimental/setupInngest.js +1 -1
- package/dist/commands/experimental/setupInngestHandler.js +1 -1
- package/dist/commands/experimental/setupOpentelemetry.js +1 -1
- package/dist/commands/experimental/setupOpentelemetryHandler.js +2 -1
- package/dist/commands/experimental/setupReactCompiler.js +1 -1
- package/dist/commands/experimental/setupReactCompilerHandler.js +1 -1
- package/dist/commands/experimental/setupRsc.js +1 -1
- package/dist/commands/experimental/setupRscHandler.js +2 -1
- package/dist/commands/experimental/setupStreamingSsr.js +1 -1
- package/dist/commands/experimental/setupStreamingSsrHandler.js +2 -1
- package/dist/commands/generate/dataMigration/dataMigration.js +2 -1
- package/dist/commands/generate/dbAuth/dbAuthHandler.js +2 -1
- package/dist/commands/generate/directive/directiveHandler.js +2 -1
- package/dist/commands/generate/function/functionHandler.js +2 -1
- package/dist/commands/generate/job/jobHandler.js +2 -1
- package/dist/commands/generate/model/modelHandler.js +2 -1
- package/dist/commands/generate/ogImage/ogImageHandler.js +2 -1
- package/dist/commands/generate/package/packageHandler.js +2 -1
- package/dist/commands/generate/page/pageHandler.js +2 -1
- package/dist/commands/generate/realtime/realtime.js +1 -1
- package/dist/commands/generate/realtime/realtimeHandler.js +1 -1
- package/dist/commands/generate/scaffold/scaffoldHandler.js +2 -1
- package/dist/commands/generate/script/scriptHandler.js +2 -1
- package/dist/commands/generate/sdl/sdlHandler.js +2 -1
- package/dist/commands/generate/secret/secret.js +1 -1
- package/dist/commands/generate/yargsCommandHelpers.js +1 -1
- package/dist/commands/generate/yargsHandlerHelpers.js +2 -1
- package/dist/commands/generate.js +1 -1
- package/dist/commands/info.js +1 -1
- package/dist/commands/lint.js +1 -1
- package/dist/commands/prerenderHandler.js +2 -1
- package/dist/commands/prismaHandler.js +2 -1
- package/dist/commands/record/init.js +1 -1
- package/dist/commands/serve.js +2 -1
- package/dist/commands/setup/auth/auth.js +2 -4
- package/dist/commands/setup/cache/cache.js +1 -1
- package/dist/commands/setup/cache/cacheHandler.js +2 -1
- package/dist/commands/setup/database/postgres.js +1 -1
- package/dist/commands/setup/database/postgresHandler.js +3 -1
- package/dist/commands/setup/deploy/providers/baremetalHandler.js +2 -1
- package/dist/commands/setup/deploy/providers/coherence.js +1 -1
- package/dist/commands/setup/deploy/providers/coherenceHandler.js +7 -6
- package/dist/commands/setup/deploy/providers/flightcontrolHandler.js +2 -1
- package/dist/commands/setup/deploy/providers/netlifyHandler.js +2 -1
- package/dist/commands/setup/deploy/providers/renderHandler.js +2 -1
- package/dist/commands/setup/deploy/providers/serverlessHandler.js +2 -1
- package/dist/commands/setup/deploy/providers/universalDeployHandler.js +4 -6
- package/dist/commands/setup/deploy/providers/vercelHandler.js +2 -1
- package/dist/commands/setup/docker/docker.js +1 -1
- package/dist/commands/setup/docker/dockerHandler.js +2 -1
- package/dist/commands/setup/generator/generator.js +1 -1
- package/dist/commands/setup/generator/generatorHandler.js +1 -1
- package/dist/commands/setup/graphql/features/fragments/fragments.js +1 -1
- package/dist/commands/setup/graphql/features/fragments/fragmentsHandler.js +3 -5
- package/dist/commands/setup/graphql/features/trustedDocuments/trustedDocuments.js +1 -1
- package/dist/commands/setup/graphql/features/trustedDocuments/trustedDocumentsHandler.js +2 -1
- package/dist/commands/setup/i18n/i18n.js +1 -1
- package/dist/commands/setup/i18n/i18nHandler.js +1 -1
- package/dist/commands/setup/jobs/jobs.js +1 -1
- package/dist/commands/setup/jobs/jobsHandler.js +2 -1
- package/dist/commands/setup/mailer/mailer.js +1 -1
- package/dist/commands/setup/mailer/mailerHandler.js +2 -1
- package/dist/commands/setup/middleware/ogImage/ogImage.js +1 -1
- package/dist/commands/setup/middleware/ogImage/ogImageHandler.js +2 -1
- package/dist/commands/setup/monitoring/sentry/sentry.js +1 -1
- package/dist/commands/setup/monitoring/sentry/sentryHandler.js +8 -7
- package/dist/commands/setup/neon/neon.js +1 -1
- package/dist/commands/setup/neon/neonHandler.js +4 -6
- package/dist/commands/setup/package/package.js +1 -1
- package/dist/commands/setup/package/packageHandler.js +1 -1
- package/dist/commands/setup/realtime/addRealtimeToGraphql.js +1 -1
- package/dist/commands/setup/realtime/realtime.js +1 -1
- package/dist/commands/setup/realtime/realtimeHandler.js +2 -1
- package/dist/commands/setup/server-file/serverFile.js +1 -1
- package/dist/commands/setup/server-file/serverFileHandler.js +2 -1
- package/dist/commands/setup/ui/libraries/chakra-uiHandler.js +2 -1
- package/dist/commands/setup/ui/libraries/mantineHandler.js +2 -1
- package/dist/commands/setup/ui/libraries/tailwindcssHandler.js +2 -1
- package/dist/commands/setup/uploads/uploads.js +1 -1
- package/dist/commands/setup/uploads/uploadsHandler.js +3 -5
- package/dist/commands/studio.js +1 -1
- package/dist/commands/test/testHandler.js +1 -1
- package/dist/commands/test.js +1 -1
- package/dist/commands/type-checkHandler.js +1 -1
- package/dist/commands/upgrade/upgrade.js +1 -1
- package/dist/commands/upgrade/upgradeHandler.js +2 -1
- package/dist/index.js +3 -5
- package/dist/lib/exit.js +1 -1
- package/dist/lib/index.js +2 -1
- package/dist/lib/loadEnvFiles.js +1 -1
- package/dist/lib/plugin.js +1 -1
- package/dist/lib/test.js +1 -1
- package/dist/middleware/checkNodeVersion.js +1 -1
- package/package.json +13 -13
|
@@ -2,7 +2,8 @@ import fs from "node:fs";
|
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
4
|
import { terminalLink } from "termi-link";
|
|
5
|
-
import {
|
|
5
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
6
|
+
import { addEnvVarTask } from "@cedarjs/cli-helpers/project";
|
|
6
7
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
7
8
|
import { addPackagesTask, getPaths, writeFile } from "../../../lib/index.js";
|
|
8
9
|
import { isTypeScriptProject } from "../../../lib/project.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
1
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
2
2
|
const command = "postgres";
|
|
3
3
|
const description = "Switch your project from SQLite to PostgreSQL (schema, dependencies, and database adapter)";
|
|
4
4
|
function builder(yargs) {
|
|
@@ -2,9 +2,11 @@ import fs from "node:fs";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import execa from "execa";
|
|
4
4
|
import { Listr } from "listr2";
|
|
5
|
-
import { colors
|
|
5
|
+
import { colors } from "@cedarjs/cli-helpers/colors";
|
|
6
|
+
import { installPackages } from "@cedarjs/cli-helpers/installHelpers";
|
|
6
7
|
import { prettyPrintCedarCommand } from "@cedarjs/cli-helpers/packageManager";
|
|
7
8
|
import { addWorkspacePackages } from "@cedarjs/cli-helpers/packageManager/packages";
|
|
9
|
+
import { getPaths } from "@cedarjs/cli-helpers/paths";
|
|
8
10
|
import { resolveFile } from "@cedarjs/project-config";
|
|
9
11
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
10
12
|
function checkProjectShape(cedarPaths) {
|
|
@@ -2,7 +2,8 @@ import fs from "node:fs";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
4
|
import prompts from "prompts";
|
|
5
|
-
import {
|
|
5
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
6
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
6
7
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
7
8
|
import {
|
|
8
9
|
addPackagesTask,
|
|
@@ -3,16 +3,17 @@ import path from "path";
|
|
|
3
3
|
import prismaInternals from "@prisma/internals";
|
|
4
4
|
import { Listr } from "listr2";
|
|
5
5
|
import * as toml from "smol-toml";
|
|
6
|
-
import {
|
|
7
|
-
colors as c,
|
|
8
|
-
isTypeScriptProject,
|
|
9
|
-
getConfigPath
|
|
10
|
-
} from "@cedarjs/cli-helpers";
|
|
6
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
11
7
|
import {
|
|
12
8
|
formatCedarCommand,
|
|
13
9
|
formatRunBinCommand
|
|
14
10
|
} from "@cedarjs/cli-helpers/packageManager/display";
|
|
15
|
-
import {
|
|
11
|
+
import { isTypeScriptProject } from "@cedarjs/cli-helpers/project";
|
|
12
|
+
import {
|
|
13
|
+
getConfigPath,
|
|
14
|
+
getPaths,
|
|
15
|
+
getPrismaSchemas
|
|
16
|
+
} from "@cedarjs/project-config";
|
|
16
17
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
17
18
|
import { printSetupNotes } from "../../../../lib/index.js";
|
|
18
19
|
import { serverFileExists } from "../../../../lib/project.js";
|
|
@@ -3,8 +3,9 @@ import { EOL } from "os";
|
|
|
3
3
|
import path from "path";
|
|
4
4
|
import prismaInternals from "@prisma/internals";
|
|
5
5
|
import { Listr } from "listr2";
|
|
6
|
-
import {
|
|
6
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
7
7
|
import { formatCedarCommand } from "@cedarjs/cli-helpers/packageManager/display";
|
|
8
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
8
9
|
import { getPaths, getPrismaSchemas } from "@cedarjs/project-config";
|
|
9
10
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
10
11
|
import { writeFilesTask, printSetupNotes } from "../../../../lib/index.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
|
-
import {
|
|
4
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
5
5
|
import { formatCedarCommand } from "@cedarjs/cli-helpers/packageManager/display";
|
|
6
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
6
7
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
7
8
|
import {
|
|
8
9
|
addPackagesTask,
|
|
@@ -2,7 +2,8 @@ import path from "path";
|
|
|
2
2
|
import prismaInternals from "@prisma/internals";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
4
|
import prompts from "prompts";
|
|
5
|
-
import {
|
|
5
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
6
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
6
7
|
import { getPaths, getPrismaSchemas } from "@cedarjs/project-config";
|
|
7
8
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
8
9
|
import { writeFilesTask, printSetupNotes } from "../../../../lib/index.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
|
-
import {
|
|
4
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
5
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
5
6
|
import { getSchemaPath, getConfigPath } from "@cedarjs/project-config";
|
|
6
7
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
7
8
|
import {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
recordTelemetryAttributes
|
|
9
|
-
} from "@cedarjs/cli-helpers";
|
|
4
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
5
|
+
import { getPaths } from "@cedarjs/cli-helpers/paths";
|
|
6
|
+
import { isTypeScriptProject } from "@cedarjs/cli-helpers/project";
|
|
7
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
10
8
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
11
9
|
import { printSetupNotes } from "../../../../lib/index.js";
|
|
12
10
|
const notes = [
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
|
-
import {
|
|
4
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
5
5
|
import { formatCedarCommand } from "@cedarjs/cli-helpers/packageManager/display";
|
|
6
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
6
7
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
7
8
|
import {
|
|
8
9
|
addPackagesTask,
|
|
@@ -3,7 +3,8 @@ import { createRequire } from "node:module";
|
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import execa from "execa";
|
|
5
5
|
import { Listr } from "listr2";
|
|
6
|
-
import {
|
|
6
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
7
|
+
import { writeFile } from "@cedarjs/cli-helpers/fileHelpers";
|
|
7
8
|
import { dedupe } from "@cedarjs/cli-helpers/packageManager";
|
|
8
9
|
import { formatCedarCommand } from "@cedarjs/cli-helpers/packageManager/display";
|
|
9
10
|
import { addWorkspacePackages } from "@cedarjs/cli-helpers/packageManager/packages";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { terminalLink } from "termi-link";
|
|
4
|
-
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
4
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
5
5
|
const command = "generator <name>";
|
|
6
6
|
const description = "Copies generator templates locally for customization";
|
|
7
7
|
const EXCLUDE_GENERATORS = ["dataMigration", "dbAuth", "generator", "secret"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
|
-
import { colors as c } from "@cedarjs/cli-helpers";
|
|
4
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
5
5
|
import { getPaths } from "../../../lib/index.js";
|
|
6
6
|
const SIDE_MAP = {
|
|
7
7
|
web: ["cell", "component", "layout", "page", "scaffold"],
|
|
@@ -2,12 +2,10 @@ import fs from "node:fs";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
4
|
import { format } from "prettier";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
getPrettierOptions,
|
|
8
|
-
setTomlSetting
|
|
9
|
-
} from "@cedarjs/cli-helpers";
|
|
5
|
+
import { colors } from "@cedarjs/cli-helpers/colors";
|
|
6
|
+
import { getPrettierOptions } from "@cedarjs/cli-helpers/fileHelpers";
|
|
10
7
|
import { runBinSync } from "@cedarjs/cli-helpers/packageManager/exec";
|
|
8
|
+
import { setTomlSetting } from "@cedarjs/cli-helpers/project";
|
|
11
9
|
import { getConfig, getPaths } from "@cedarjs/project-config";
|
|
12
10
|
import { runTransform } from "../../../../../lib/runTransform.js";
|
|
13
11
|
const command = "fragments";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
1
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
2
2
|
const command = "trusted-documents";
|
|
3
3
|
const description = "Set up Trusted Documents for GraphQL";
|
|
4
4
|
function builder(yargs) {
|
|
@@ -2,8 +2,9 @@ import fs from "node:fs";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
4
|
import { format } from "prettier";
|
|
5
|
-
import { getPrettierOptions
|
|
5
|
+
import { getPrettierOptions } from "@cedarjs/cli-helpers/fileHelpers";
|
|
6
6
|
import { runBinSync } from "@cedarjs/cli-helpers/packageManager/exec";
|
|
7
|
+
import { setTomlSetting } from "@cedarjs/cli-helpers/project";
|
|
7
8
|
import { getConfig, getPaths, resolveFile } from "@cedarjs/project-config";
|
|
8
9
|
import { runTransform } from "../../../../../lib/runTransform.js";
|
|
9
10
|
async function handler({ force }) {
|
|
@@ -2,7 +2,7 @@ import fs from "node:fs";
|
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
4
|
import { terminalLink } from "termi-link";
|
|
5
|
-
import { colors as c } from "@cedarjs/cli-helpers";
|
|
5
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
6
6
|
import { addWorkspacePackages } from "@cedarjs/cli-helpers/packageManager/packages";
|
|
7
7
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
8
8
|
import extendStorybookConfiguration from "../../../lib/configureStorybook.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { terminalLink } from "termi-link";
|
|
2
|
-
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
2
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
3
3
|
const command = "jobs";
|
|
4
4
|
const description = "Sets up the config file and parent directory for background jobs";
|
|
5
5
|
const builder = (yargs) => {
|
|
@@ -3,7 +3,8 @@ import * as path from "node:path";
|
|
|
3
3
|
import prismaInternals from "@prisma/internals";
|
|
4
4
|
import { Listr } from "listr2";
|
|
5
5
|
import { terminalLink } from "termi-link";
|
|
6
|
-
import {
|
|
6
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
7
|
+
import { addApiPackages } from "@cedarjs/cli-helpers/installHelpers";
|
|
7
8
|
import { formatCedarCommand } from "@cedarjs/cli-helpers/packageManager/display";
|
|
8
9
|
import { getSchemaPath, getPrismaSchemas } from "@cedarjs/project-config";
|
|
9
10
|
import { getPaths, transformTSToJS, writeFile } from "../../../lib/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
1
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
2
2
|
const command = "mailer";
|
|
3
3
|
const description = "Setup the Cedar mailer. This will install the required packages and add the required initial configuration to your Cedar app.";
|
|
4
4
|
const builder = (yargs) => {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
|
-
import {
|
|
4
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
5
|
+
import { addApiPackages } from "@cedarjs/cli-helpers/installHelpers";
|
|
5
6
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
6
7
|
import { getPaths, transformTSToJS, writeFile } from "../../../lib/index.js";
|
|
7
8
|
import { isTypeScriptProject } from "../../../lib/project.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
1
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
2
2
|
const command = "og-image";
|
|
3
3
|
const aliases = ["ogImage", "ogimage"];
|
|
4
4
|
const description = "Set up OG Image generation middleware";
|
|
@@ -2,7 +2,8 @@ import fs from "node:fs";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
4
|
import { format } from "prettier";
|
|
5
|
-
import {
|
|
5
|
+
import { getPrettierOptions } from "@cedarjs/cli-helpers/fileHelpers";
|
|
6
|
+
import { addWebPackages } from "@cedarjs/cli-helpers/installHelpers";
|
|
6
7
|
import { getConfig, getPaths } from "@cedarjs/project-config";
|
|
7
8
|
import { runTransform } from "../../../../lib/runTransform.js";
|
|
8
9
|
async function handler({ force }) {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
|
+
import { colors } from "@cedarjs/cli-helpers/colors";
|
|
5
|
+
import { prettify, writeFilesTask } from "@cedarjs/cli-helpers/fileHelpers";
|
|
4
6
|
import {
|
|
5
7
|
addApiPackages,
|
|
8
|
+
addWebPackages
|
|
9
|
+
} from "@cedarjs/cli-helpers/installHelpers";
|
|
10
|
+
import { getPaths } from "@cedarjs/cli-helpers/paths";
|
|
11
|
+
import {
|
|
6
12
|
addEnvVarTask,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
getPaths,
|
|
10
|
-
isTypeScriptProject,
|
|
11
|
-
prettify,
|
|
12
|
-
writeFilesTask
|
|
13
|
-
} from "@cedarjs/cli-helpers";
|
|
13
|
+
isTypeScriptProject
|
|
14
|
+
} from "@cedarjs/cli-helpers/project";
|
|
14
15
|
import { getConfigPath } from "@cedarjs/project-config";
|
|
15
16
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
16
17
|
const rwPaths = getPaths();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
1
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
2
2
|
const command = "neon";
|
|
3
3
|
const description = "Provision a Neon Postgres database and configure your project";
|
|
4
4
|
function builder(yargs) {
|
|
@@ -3,13 +3,11 @@ import path from "node:path";
|
|
|
3
3
|
import execa from "execa";
|
|
4
4
|
import { Listr } from "listr2";
|
|
5
5
|
import prompts from "prompts";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
getPaths,
|
|
9
|
-
installPackages,
|
|
10
|
-
requireTTYOrExit
|
|
11
|
-
} from "@cedarjs/cli-helpers";
|
|
6
|
+
import { colors } from "@cedarjs/cli-helpers/colors";
|
|
7
|
+
import { installPackages } from "@cedarjs/cli-helpers/installHelpers";
|
|
12
8
|
import { prettyPrintCedarCommand } from "@cedarjs/cli-helpers/packageManager";
|
|
9
|
+
import { getPaths } from "@cedarjs/cli-helpers/paths";
|
|
10
|
+
import { requireTTYOrExit } from "@cedarjs/cli-helpers/tty";
|
|
13
11
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
14
12
|
import {
|
|
15
13
|
checkProjectShape,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { terminalLink } from "termi-link";
|
|
2
|
-
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
2
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
3
3
|
const command = "package <npm-package>";
|
|
4
4
|
const description = "Run a bin from an NPM package with version compatibility checks";
|
|
5
5
|
const builder = (yargs) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import enq from "enquirer";
|
|
2
2
|
import { isGreaterOrEqual, isLess, tryParse } from "verkit";
|
|
3
|
-
import { getCompatibilityData } from "@cedarjs/cli-helpers";
|
|
4
3
|
import { dlx } from "@cedarjs/cli-helpers/packageManager/exec";
|
|
4
|
+
import { getCompatibilityData } from "@cedarjs/cli-helpers/version";
|
|
5
5
|
import { getPaths } from "@cedarjs/project-config";
|
|
6
6
|
async function handler({
|
|
7
7
|
npmPackage,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { isTypeScriptProject } from "@cedarjs/cli-helpers";
|
|
3
|
+
import { isTypeScriptProject } from "@cedarjs/cli-helpers/project";
|
|
4
4
|
import { getPaths } from "@cedarjs/project-config";
|
|
5
5
|
function addRealtimeToGraphqlHandler(ctx, task, force) {
|
|
6
6
|
const graphqlHandlerPath = path.join(
|
|
@@ -2,7 +2,8 @@ import fs from "node:fs";
|
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
4
|
import prompts from "prompts";
|
|
5
|
-
import {
|
|
5
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
6
|
+
import { addApiPackages } from "@cedarjs/cli-helpers/installHelpers";
|
|
6
7
|
import { runBinSync } from "@cedarjs/cli-helpers/packageManager/exec";
|
|
7
8
|
import { generate as generateTypes } from "@cedarjs/internal/dist/generate/generate";
|
|
8
9
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
|
-
import {
|
|
4
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
5
|
+
import { addApiPackages } from "@cedarjs/cli-helpers/installHelpers";
|
|
5
6
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
6
7
|
import { getPaths, transformTSToJS, writeFile } from "../../../lib/index.js";
|
|
7
8
|
import { isTypeScriptProject } from "../../../lib/project.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import path from "path";
|
|
2
2
|
import { Listr } from "listr2";
|
|
3
|
-
import {
|
|
3
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
4
4
|
import { addWorkspacePackages } from "@cedarjs/cli-helpers/packageManager/packages";
|
|
5
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
5
6
|
import extendStorybookConfiguration from "../../../../lib/configureStorybook.js";
|
|
6
7
|
import { extendJSXFile, fileIncludes } from "../../../../lib/extendFile.js";
|
|
7
8
|
import { getPaths, writeFile } from "../../../../lib/index.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
|
-
import {
|
|
4
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
5
5
|
import { addWorkspacePackages } from "@cedarjs/cli-helpers/packageManager/packages";
|
|
6
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
6
7
|
import extendStorybookConfiguration from "../../../../lib/configureStorybook.js";
|
|
7
8
|
import { extendJSXFile, fileIncludes } from "../../../../lib/extendFile.js";
|
|
8
9
|
import { getPaths, writeFile } from "../../../../lib/index.js";
|
|
@@ -4,13 +4,14 @@ import { ListrEnquirerPromptAdapter } from "@listr2/prompt-adapter-enquirer";
|
|
|
4
4
|
import execa from "execa";
|
|
5
5
|
import { Listr } from "listr2";
|
|
6
6
|
import { terminalLink } from "termi-link";
|
|
7
|
-
import {
|
|
7
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
8
8
|
import { formatCedarCommand } from "@cedarjs/cli-helpers/packageManager/display";
|
|
9
9
|
import { runBin } from "@cedarjs/cli-helpers/packageManager/exec";
|
|
10
10
|
import {
|
|
11
11
|
addRootPackages,
|
|
12
12
|
addWorkspacePackages
|
|
13
13
|
} from "@cedarjs/cli-helpers/packageManager/packages";
|
|
14
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
14
15
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
15
16
|
import { getPaths, usingVSCode } from "../../../../lib/index.js";
|
|
16
17
|
const tailwindDirectives = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
1
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
2
2
|
const command = "uploads";
|
|
3
3
|
const description = "Setup uploads and storage. This will install the required packages and add the required initial configuration to your redwood app.";
|
|
4
4
|
const builder = (yargs) => {
|
|
@@ -3,11 +3,9 @@ import path from "node:path";
|
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
4
|
import { format } from "prettier";
|
|
5
5
|
import { terminalLink } from "termi-link";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
colors as c
|
|
10
|
-
} from "@cedarjs/cli-helpers";
|
|
6
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
7
|
+
import { getPrettierOptions } from "@cedarjs/cli-helpers/fileHelpers";
|
|
8
|
+
import { addApiPackages } from "@cedarjs/cli-helpers/installHelpers";
|
|
11
9
|
import { formatCedarCommand } from "@cedarjs/cli-helpers/packageManager/display";
|
|
12
10
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
13
11
|
import { getPaths, transformTSToJS, writeFile } from "../../../lib/index.js";
|
package/dist/commands/studio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
2
1
|
import { runBin } from "@cedarjs/cli-helpers/packageManager/exec";
|
|
2
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
3
3
|
import { ensurePosixPath } from "@cedarjs/project-config";
|
|
4
4
|
import { errorTelemetry, timedTelemetry } from "@cedarjs/telemetry";
|
|
5
5
|
import { getPaths } from "../../lib/index.js";
|
package/dist/commands/test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { terminalLink } from "termi-link";
|
|
2
|
-
import { colors as c } from "@cedarjs/cli-helpers";
|
|
2
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
3
3
|
import { workspaces } from "../lib/project.js";
|
|
4
4
|
const command = "test [filter..]";
|
|
5
5
|
const description = "Run Vitest tests. Defaults to watch mode";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import concurrently from "concurrently";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
|
-
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
5
4
|
import { formatRunBinCommand } from "@cedarjs/cli-helpers/packageManager/display";
|
|
6
5
|
import { runBin } from "@cedarjs/cli-helpers/packageManager/exec";
|
|
6
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
7
7
|
import { generatePrismaClient } from "../lib/generatePrismaClient.js";
|
|
8
8
|
import { getPaths } from "../lib/index.js";
|
|
9
9
|
const isConcurrentlyErrorArray = (value) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { terminalLink } from "termi-link";
|
|
2
|
-
import { colors as c } from "@cedarjs/cli-helpers";
|
|
2
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
3
3
|
import { dedupeIsSupported } from "@cedarjs/cli-helpers/packageManager";
|
|
4
4
|
import { isValidCedarJSTag } from "./tags.js";
|
|
5
5
|
const SEMVER_REGEX = /(?<=^v?|\sv?)(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:0|[1-9]\d*|[\da-z-]*[a-z-][\da-z-]*)(?:\.(?:0|[1-9]\d*|[\da-z-]*[a-z-][\da-z-]*))*)?(?:\+[\da-z-]+(?:\.[\da-z-]+)*)?(?=$|\s)/i;
|
|
@@ -5,7 +5,7 @@ import execa from "execa";
|
|
|
5
5
|
import latestVersion from "latest-version";
|
|
6
6
|
import { Listr } from "listr2";
|
|
7
7
|
import { terminalLink } from "termi-link";
|
|
8
|
-
import {
|
|
8
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
9
9
|
import {
|
|
10
10
|
dedupe,
|
|
11
11
|
dedupeIsSupported,
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
installationErrorMessage,
|
|
14
14
|
prettyPrintCedarCommand
|
|
15
15
|
} from "@cedarjs/cli-helpers/packageManager";
|
|
16
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
16
17
|
import { getConfig } from "@cedarjs/project-config";
|
|
17
18
|
import { getPackageManager } from "@cedarjs/project-config/packageManager";
|
|
18
19
|
import { generatePrismaClient } from "../../lib/generatePrismaClient.js";
|
package/dist/index.js
CHANGED
|
@@ -4,11 +4,9 @@ import path from "path";
|
|
|
4
4
|
import { trace, SpanStatusCode } from "@opentelemetry/api";
|
|
5
5
|
import { hideBin, Parser } from "yargs/helpers";
|
|
6
6
|
import yargs from "yargs/yargs";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
colors as c
|
|
11
|
-
} from "@cedarjs/cli-helpers";
|
|
7
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
8
|
+
import { loadEnvFiles } from "@cedarjs/cli-helpers/loadEnvFiles";
|
|
9
|
+
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
|
|
12
10
|
import { findUp, getConfigPath } from "@cedarjs/project-config";
|
|
13
11
|
import { telemetryMiddleware } from "@cedarjs/telemetry";
|
|
14
12
|
import * as buildCommand from "./commands/build.js";
|
package/dist/lib/exit.js
CHANGED
|
@@ -4,7 +4,7 @@ import { v4 as uuidv4 } from "uuid";
|
|
|
4
4
|
import {
|
|
5
5
|
recordTelemetryAttributes,
|
|
6
6
|
recordTelemetryError
|
|
7
|
-
} from "@cedarjs/cli-helpers";
|
|
7
|
+
} from "@cedarjs/cli-helpers/telemetry";
|
|
8
8
|
const discordLink = terminalLink("Discord", "https://cedarjs.com/discord");
|
|
9
9
|
const githubLink = terminalLink("GitHub", "https://github.com/cedarjs/cedar");
|
|
10
10
|
const DEFAULT_ERROR_EPILOGUE = [
|
package/dist/lib/index.js
CHANGED
|
@@ -11,11 +11,12 @@ import memoize from "lodash/memoize.js";
|
|
|
11
11
|
import template from "lodash/template.js";
|
|
12
12
|
import pascalcase from "pascalcase";
|
|
13
13
|
import { format } from "prettier";
|
|
14
|
-
import { colors as c
|
|
14
|
+
import { colors as c } from "@cedarjs/cli-helpers/colors";
|
|
15
15
|
import {
|
|
16
16
|
addRootPackages,
|
|
17
17
|
addWorkspacePackages
|
|
18
18
|
} from "@cedarjs/cli-helpers/packageManager/packages";
|
|
19
|
+
import { transpileTSToJS } from "@cedarjs/cli-helpers/transpileTSToJS";
|
|
19
20
|
import {
|
|
20
21
|
getConfig as getCedarConfig,
|
|
21
22
|
getPaths as getCedarPaths,
|