Skip to content

Commit cc70313

Browse files
committed
Fix lodash imports
1 parent db4352d commit cc70313

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

src/toolbox/string-tools.ts

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
import { GluegunStrings } from './strings-types'
22
import { is } from './utils'
3-
import {
4-
camelCase,
5-
kebabCase,
6-
lowerCase,
7-
lowerFirst,
8-
pad,
9-
padEnd,
10-
padStart,
11-
repeat,
12-
snakeCase,
13-
startCase,
14-
trim,
15-
trimEnd,
16-
trimStart,
17-
upperCase,
18-
upperFirst,
19-
} from 'lodash'
3+
import camelCase from 'lodash/camelCase'
4+
import kebabCase from 'lodash/kebabCase'
5+
import lowerCase from 'lodash/lowerCase'
6+
import lowerFirst from 'lodash/lowerFirst'
7+
import pad from 'lodash/pad'
8+
import padEnd from 'lodash/padEnd'
9+
import padStart from 'lodash/padStart'
10+
import repeat from 'lodash/repeat'
11+
import snakeCase from 'lodash/snakeCase'
12+
import startCase from 'lodash/startCase'
13+
import trim from 'lodash/trim'
14+
import trimEnd from 'lodash/trimEnd'
15+
import trimStart from 'lodash/trimStart'
16+
import upperCase from 'lodash/upperCase'
17+
import upperFirst from 'lodash/upperFirst'
2018

2119
const pluralize = (word: string, count?: number, inclusive?: boolean) => require('pluralize')(word, count, inclusive)
2220
pluralize.plural = (word: string) => require('pluralize').plural(word)

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"strict": false,
1717
"target": "es5",
1818
"pretty": true,
19-
"skipLibCheck": true
19+
"skipLibCheck": true,
20+
"esModuleInterop": true
2021
},
2122
"include": ["src/**/*.ts"],
2223
"exclude": ["src/fixtures", "src/**/*.test.ts"]

0 commit comments

Comments
 (0)