@cedarjs/cli 3.0.0-canary.13523 → 3.0.0-canary.13524
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/destroy/scaffold/scaffoldHandler.js +1 -1
- package/dist/commands/generate/cell/cellHandler.js +1 -1
- package/dist/commands/generate/helpers.js +1 -5
- package/dist/commands/generate/scaffold/scaffoldHandler.js +1 -1
- package/dist/commands/generate/sdl/sdlHandler.js +1 -1
- package/dist/commands/generate/service/serviceHandler.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/pluralHelpers.js +1 -1
- package/dist/lib/schemaHelpers.js +1 -1
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Listr } from "listr2";
|
|
2
2
|
import pascalcase from "pascalcase";
|
|
3
3
|
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
4
|
-
import { pluralize } from "@cedarjs/
|
|
4
|
+
import { pluralize } from "@cedarjs/utils/cedarPluralize";
|
|
5
5
|
import c from "../../../lib/colors.js";
|
|
6
6
|
import {
|
|
7
7
|
deleteFilesTask,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import pascalcase from "pascalcase";
|
|
2
2
|
import { generate as generateTypes } from "@cedarjs/internal/dist/generate/generate";
|
|
3
|
-
import { isPlural, singularize } from "@cedarjs/
|
|
3
|
+
import { isPlural, singularize } from "@cedarjs/utils/cedarPluralize";
|
|
4
4
|
import { nameVariants, transformTSToJS } from "../../../lib/index.js";
|
|
5
5
|
import { isWordPluralizable } from "../../../lib/pluralHelpers.js";
|
|
6
6
|
import { addFunctionToRollback } from "../../../lib/rollback.js";
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { paramCase } from "change-case";
|
|
2
2
|
import pascalcase from "pascalcase";
|
|
3
|
-
import {
|
|
4
|
-
pluralize,
|
|
5
|
-
isPlural,
|
|
6
|
-
isSingular
|
|
7
|
-
} from "@cedarjs/realtime/cedarPluralize";
|
|
3
|
+
import { pluralize, isPlural, isSingular } from "@cedarjs/utils/cedarPluralize";
|
|
8
4
|
const pathName = (path, name) => {
|
|
9
5
|
let routePath = path;
|
|
10
6
|
if (path && path.startsWith("{") && path.endsWith("}")) {
|
|
@@ -9,7 +9,7 @@ import pascalcase from "pascalcase";
|
|
|
9
9
|
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
10
10
|
import { generate as generateTypes } from "@cedarjs/internal/dist/generate/generate";
|
|
11
11
|
import { getConfig } from "@cedarjs/project-config";
|
|
12
|
-
import { pluralize, singularize } from "@cedarjs/
|
|
12
|
+
import { pluralize, singularize } from "@cedarjs/utils/cedarPluralize";
|
|
13
13
|
import c from "../../../lib/colors.js";
|
|
14
14
|
import {
|
|
15
15
|
generateTemplate,
|
|
@@ -5,8 +5,8 @@ import { Listr } from "listr2";
|
|
|
5
5
|
import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
|
|
6
6
|
import { generate as generateTypes } from "@cedarjs/internal/dist/generate/generate";
|
|
7
7
|
import { getConfig } from "@cedarjs/project-config";
|
|
8
|
-
import { pluralize } from "@cedarjs/realtime/cedarPluralize";
|
|
9
8
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
9
|
+
import { pluralize } from "@cedarjs/utils/cedarPluralize";
|
|
10
10
|
import c from "../../../lib/colors.js";
|
|
11
11
|
import { transformTSToJS, writeFilesTask } from "../../../lib/index.js";
|
|
12
12
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import camelcase from "camelcase";
|
|
3
3
|
import { dbReexportsPrismaClient } from "@cedarjs/internal/dist/project";
|
|
4
|
-
import { pluralize, singularize } from "@cedarjs/
|
|
4
|
+
import { pluralize, singularize } from "@cedarjs/utils/cedarPluralize";
|
|
5
5
|
import { transformTSToJS } from "../../../lib/index.js";
|
|
6
6
|
import { getSchema, verifyModelName } from "../../../lib/schemaHelpers.js";
|
|
7
7
|
import { relationsForModel } from "../helpers.js";
|
package/dist/lib/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
resolveFile as internalResolveFile,
|
|
19
19
|
findUp
|
|
20
20
|
} from "@cedarjs/project-config";
|
|
21
|
-
import { pluralize, singularize } from "@cedarjs/
|
|
21
|
+
import { pluralize, singularize } from "@cedarjs/utils/cedarPluralize";
|
|
22
22
|
import c from "./colors.js";
|
|
23
23
|
import { addFileToRollback } from "./rollback.js";
|
|
24
24
|
const nameVariants = (name) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import prismaInternals from "@prisma/internals";
|
|
2
2
|
import { getSchemaPath } from "@cedarjs/project-config";
|
|
3
|
-
import { singularize, isPlural } from "@cedarjs/
|
|
3
|
+
import { singularize, isPlural } from "@cedarjs/utils/cedarPluralize";
|
|
4
4
|
import { ensureUniquePlural } from "./pluralHelpers.js";
|
|
5
5
|
import { getPaths } from "./index.js";
|
|
6
6
|
const { getConfig, getDMMF, getSchemaWithPath } = prismaInternals;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "3.0.0-canary.
|
|
3
|
+
"version": "3.0.0-canary.13524+64f541c46",
|
|
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.
|
|
38
|
-
"@cedarjs/cli-helpers": "3.0.0-canary.
|
|
39
|
-
"@cedarjs/fastify-web": "3.0.0-canary.
|
|
40
|
-
"@cedarjs/internal": "3.0.0-canary.
|
|
41
|
-
"@cedarjs/prerender": "3.0.0-canary.
|
|
42
|
-
"@cedarjs/project-config": "3.0.0-canary.
|
|
43
|
-
"@cedarjs/
|
|
44
|
-
"@cedarjs/
|
|
45
|
-
"@cedarjs/
|
|
46
|
-
"@cedarjs/web-server": "3.0.0-canary.
|
|
37
|
+
"@cedarjs/api-server": "3.0.0-canary.13524",
|
|
38
|
+
"@cedarjs/cli-helpers": "3.0.0-canary.13524",
|
|
39
|
+
"@cedarjs/fastify-web": "3.0.0-canary.13524",
|
|
40
|
+
"@cedarjs/internal": "3.0.0-canary.13524",
|
|
41
|
+
"@cedarjs/prerender": "3.0.0-canary.13524",
|
|
42
|
+
"@cedarjs/project-config": "3.0.0-canary.13524",
|
|
43
|
+
"@cedarjs/structure": "3.0.0-canary.13524",
|
|
44
|
+
"@cedarjs/telemetry": "3.0.0-canary.13524",
|
|
45
|
+
"@cedarjs/utils": "3.0.0-canary.13524",
|
|
46
|
+
"@cedarjs/web-server": "3.0.0-canary.13524",
|
|
47
47
|
"@listr2/prompt-adapter-enquirer": "2.0.16",
|
|
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": "
|
|
110
|
+
"gitHead": "64f541c46831ac89850fc7c4f84bc7820ba3c6d3"
|
|
111
111
|
}
|