Skip to content

Commit 8e0675c

Browse files
authored
fix: reduce size of node_modules when adding ts-jest (#2263)
1 parent 31554a8 commit 8e0675c

File tree

5 files changed

+6
-55
lines changed

5 files changed

+6
-55
lines changed

e2e/__helpers__/test-case/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
writeFileSync,
2323
} from 'fs-extra'
2424
import { stringify as stringifyJson5 } from 'json5'
25-
import merge = require('lodash.merge')
25+
import merge = require('lodash/merge')
2626

2727

2828
import * as Paths from '../../../scripts/lib/paths'

package-lock.json

Lines changed: 1 addition & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"fast-json-stable-stringify": "2.x",
6161
"jest-util": "next",
6262
"json5": "2.x",
63-
"lodash.memoize": "4.x",
63+
"lodash": "4.x",
6464
"make-error": "1.x",
6565
"mkdirp": "1.x",
6666
"semver": "7.x",
@@ -88,9 +88,7 @@
8888
"@types/fs-extra": "latest",
8989
"@types/js-yaml": "latest",
9090
"@types/json5": "latest",
91-
"@types/lodash.memoize": "4.x",
92-
"@types/lodash.merge": "4.x",
93-
"@types/lodash.set": "4.x",
91+
"@types/lodash": "4.x",
9492
"@types/micromatch": "4.x",
9593
"@types/mkdirp": "latest",
9694
"@types/node": "14.x",
@@ -115,8 +113,6 @@
115113
"jest": "next",
116114
"js-yaml": "latest",
117115
"lint-staged": "latest",
118-
"lodash.merge": "4.x",
119-
"lodash.set": "4.x",
120116
"npm-run-all": "latest",
121117
"prettier": "2.x",
122118
"source-map": "latest",

src/compiler/ts-compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { basename, normalize, relative } from 'path'
22

33
import { LogContexts, Logger, LogLevels } from 'bs-logger'
4-
import memoize from 'lodash.memoize'
4+
import memoize from 'lodash/memoize'
55
import {
66
EmitOutput,
77
LanguageService,

src/utils/backports.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { inspect } from 'util'
22

33
import { testing } from 'bs-logger'
4-
import set = require('lodash.set')
4+
import set = require('lodash/set')
55

66
import { backportJestConfig } from './backports'
77

0 commit comments

Comments
 (0)