@cedarjs/cli 3.0.0-canary.13545 → 3.0.0-canary.13546

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.
@@ -2,7 +2,7 @@ import path from "path";
2
2
  import camelcase from "camelcase";
3
3
  import { Listr } from "listr2";
4
4
  import pascalcase from "pascalcase";
5
- import pluralize, { singular } from "pluralize";
5
+ import pluralize from "pluralize";
6
6
  import prompts from "prompts";
7
7
  import { generate as generateTypes } from "@cedarjs/internal/dist/generate/generate";
8
8
  import { projectIsEsm } from "@cedarjs/project-config";
@@ -17,7 +17,7 @@ import {
17
17
  import { isTypeScriptProject } from "../../../lib/project.js";
18
18
  import { isRealtimeSetup, isServerFileSetup } from "../../experimental/util.js";
19
19
  const templateVariables = (name) => {
20
- name = singular(name.toLowerCase());
20
+ name = pluralize.singular(name.toLowerCase());
21
21
  return {
22
22
  name,
23
23
  collectionName: pluralize(name),
@@ -38,7 +38,7 @@ const templateVariables = (name) => {
38
38
  async function handler({ name, type, force, verbose, silent }) {
39
39
  const redwoodPaths = getPaths();
40
40
  const ts = isTypeScriptProject();
41
- name = singular(name.toLowerCase());
41
+ name = pluralize.singular(name.toLowerCase());
42
42
  let functionType = type;
43
43
  if (!functionType) {
44
44
  const response = await prompts({
@@ -1,6 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import path from "path";
3
- import { getSchemaWithPath, getConfig } from "@prisma/internals";
3
+ import prismaInternals from "@prisma/internals";
4
4
  import { Listr } from "listr2";
5
5
  import * as toml from "smol-toml";
6
6
  import {
@@ -13,6 +13,7 @@ import { errorTelemetry } from "@cedarjs/telemetry";
13
13
  import { printSetupNotes } from "../../../../lib/index.js";
14
14
  import { serverFileExists } from "../../../../lib/project.js";
15
15
  import { addFilesTask } from "../helpers/index.js";
16
+ const { getSchemaWithPath, getConfig } = prismaInternals;
16
17
  const cedarPaths = getPaths();
17
18
  const EXTENSION = isTypeScriptProject ? "ts" : "js";
18
19
  async function handler({ force }) {
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import { EOL } from "os";
3
3
  import path from "path";
4
- import { getSchemaWithPath, getConfig } from "@prisma/internals";
4
+ import prismaInternals from "@prisma/internals";
5
5
  import { Listr } from "listr2";
6
6
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
7
7
  import { getPaths, getSchemaPath } from "@cedarjs/project-config";
@@ -15,6 +15,7 @@ import {
15
15
  postgresDatabaseService,
16
16
  mysqlDatabaseService
17
17
  } from "../templates/flightcontrol.js";
18
+ const { getSchemaWithPath, getConfig } = prismaInternals;
18
19
  const getFlightcontrolJson = async (database) => {
19
20
  if (database === "none") {
20
21
  return {
@@ -1,6 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import path from "path";
3
- import { getSchemaWithPath, getConfig } from "@prisma/internals";
3
+ import prismaInternals from "@prisma/internals";
4
4
  import { Listr } from "listr2";
5
5
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
6
6
  import { getPaths, getSchemaPath } from "@cedarjs/project-config";
@@ -14,6 +14,7 @@ import {
14
14
  RENDER_YAML,
15
15
  SQLITE_YAML
16
16
  } from "../templates/render.js";
17
+ const { getSchemaWithPath, getConfig } = prismaInternals;
17
18
  const getRenderYamlContent = async (database) => {
18
19
  if (database === "none") {
19
20
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "3.0.0-canary.13545+f5b914f25",
3
+ "version": "3.0.0-canary.13546+ed4ef855e",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,16 +34,16 @@
34
34
  "@babel/parser": "7.29.0",
35
35
  "@babel/preset-typescript": "7.28.5",
36
36
  "@babel/runtime-corejs3": "7.29.0",
37
- "@cedarjs/api-server": "3.0.0-canary.13545",
38
- "@cedarjs/cli-helpers": "3.0.0-canary.13545",
39
- "@cedarjs/fastify-web": "3.0.0-canary.13545",
40
- "@cedarjs/internal": "3.0.0-canary.13545",
41
- "@cedarjs/prerender": "3.0.0-canary.13545",
42
- "@cedarjs/project-config": "3.0.0-canary.13545",
43
- "@cedarjs/structure": "3.0.0-canary.13545",
44
- "@cedarjs/telemetry": "3.0.0-canary.13545",
45
- "@cedarjs/utils": "3.0.0-canary.13545",
46
- "@cedarjs/web-server": "3.0.0-canary.13545",
37
+ "@cedarjs/api-server": "3.0.0-canary.13546",
38
+ "@cedarjs/cli-helpers": "3.0.0-canary.13546",
39
+ "@cedarjs/fastify-web": "3.0.0-canary.13546",
40
+ "@cedarjs/internal": "3.0.0-canary.13546",
41
+ "@cedarjs/prerender": "3.0.0-canary.13546",
42
+ "@cedarjs/project-config": "3.0.0-canary.13546",
43
+ "@cedarjs/structure": "3.0.0-canary.13546",
44
+ "@cedarjs/telemetry": "3.0.0-canary.13546",
45
+ "@cedarjs/utils": "3.0.0-canary.13546",
46
+ "@cedarjs/web-server": "3.0.0-canary.13546",
47
47
  "@listr2/prompt-adapter-enquirer": "4.2.1",
48
48
  "@opentelemetry/api": "1.9.0",
49
49
  "@opentelemetry/core": "1.30.1",
@@ -107,5 +107,5 @@
107
107
  "publishConfig": {
108
108
  "access": "public"
109
109
  },
110
- "gitHead": "f5b914f25404954f238dc8e3485c968a710af656"
110
+ "gitHead": "ed4ef855ed3fdde4ac0d944fe77de56c3cdbf856"
111
111
  }