Skip to content

Commit 034c905

Browse files
committed
refactor: switch to pluralize-esm
1 parent 783a103 commit 034c905

16 files changed

Lines changed: 32 additions & 42 deletions

File tree

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"node-env-type": "^0.0.8",
6363
"node-fetch": "^2.6.7",
6464
"ora": "^5.4.1",
65-
"pluralize": "^8.0.0",
65+
"pluralize-esm": "^1.0.0",
6666
"preferred-pm": "^3.1.3",
6767
"prettier": "^2.7.1",
6868
"semver": "7.5.2",

packages/cli/src/commands/add/sub-commands/resource/create-resources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "fs-extra";
1616
import inquirer from "inquirer";
1717
import { join } from "path";
18-
import { plural } from "pluralize";
18+
import { plural } from "pluralize-esm";
1919
import temp from "temp";
2020

2121
export const defaultActions = ["list", "create", "edit", "show"];

packages/core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"lodash": "^4.17.21",
4343
"lodash-es": "^4.17.21",
4444
"papaparse": "^5.3.0",
45-
"pluralize": "^8.0.0",
4645
"qs": "^6.10.1",
4746
"tslib": "^2.6.2",
4847
"warn-once": "^0.1.0"

packages/core/src/definitions/helpers/userFriendlyResourceName/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pluralize from "pluralize";
1+
import pluralize from "pluralize-esm";
22
import { humanizeString } from "@definitions";
33

44
/**

packages/graphql/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,14 @@
4747
"graphql-tag": "^2.12.6",
4848
"graphql-ws": "^5.9.1",
4949
"lodash": "^4.17.21",
50-
"pluralize": "^8.0.0"
50+
"pluralize-esm": "^1.0.0"
5151
},
5252
"devDependencies": {
5353
"@esbuild-plugins/node-resolve": "^0.1.4",
5454
"@refinedev/cli": "^2.16.44",
5555
"@refinedev/core": "^4.57.7",
5656
"@types/jest": "^29.2.4",
5757
"@types/lodash": "^4.14.171",
58-
"@types/pluralize": "^0.0.29",
5958
"jest": "^29.3.1",
6059
"jest-environment-jsdom": "^29.3.1",
6160
"nock": "14.0.0-beta.14",

packages/graphql/src/dataProvider/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type {
1313
DeleteOneParams,
1414
} from "@refinedev/core";
1515
import camelcase from "camelcase";
16-
import { singular } from "pluralize";
16+
import { singular } from "pluralize-esm";
1717
import gql from "graphql-tag";
1818

1919
import {

packages/graphql/src/liveProvider/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { LogicalFilter, VariableOptions } from "@refinedev/core";
22
import camelcase from "camelcase";
33
import type { Client } from "graphql-ws";
4-
import { singular } from "pluralize";
4+
import { singular } from "pluralize-esm";
55

66
import { getOperationFields } from "../utils/graphql";
77
import { buildFilters } from "../utils";

packages/inferencer/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"graphql-tag": "^2.12.6",
117117
"lodash": "^4.17.21",
118118
"lodash-es": "^4.17.21",
119-
"pluralize": "^8.0.0",
119+
"pluralize-esm": "^1.0.0",
120120
"prettier": "^2.7.1",
121121
"prism-react-renderer": "^1.3.5",
122122
"react-markdown": "^6.0.1",
@@ -138,7 +138,6 @@
138138
"@testing-library/user-event": "^14.1.1",
139139
"@types/jest": "^29.2.4",
140140
"@types/lodash": "^4.14.171",
141-
"@types/pluralize": "^0.0.29",
142141
"@types/prismjs": "^1.26.0",
143142
"@types/react": "^18.0.0",
144143
"@types/react-dom": "^18.0.0",

packages/inferencer/src/utilities/component-name/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pluralize from "pluralize";
1+
import pluralize from "pluralize-esm";
22
import { prettyString } from "../pretty-string";
33

44
/**

packages/inferencer/src/utilities/resource-from-inferred/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pluralize from "pluralize";
1+
import pluralize from "pluralize-esm";
22
import type { IResourceItem } from "@refinedev/core";
33

44
import type { InferField } from "../../types";

0 commit comments

Comments
 (0)