Skip to content

Commit

Permalink
fix: reduce size of node_modules when adding ts-jest (#2263)
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Jan 9, 2021
1 parent 31554a8 commit 8e0675c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 55 deletions.
2 changes: 1 addition & 1 deletion e2e/__helpers__/test-case/runtime.ts
Expand Up @@ -22,7 +22,7 @@ import {
writeFileSync,
} from 'fs-extra'
import { stringify as stringifyJson5 } from 'json5'
import merge = require('lodash.merge')
import merge = require('lodash/merge')


import * as Paths from '../../../scripts/lib/paths'
Expand Down
47 changes: 1 addition & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions package.json
Expand Up @@ -60,7 +60,7 @@
"fast-json-stable-stringify": "2.x",
"jest-util": "next",
"json5": "2.x",
"lodash.memoize": "4.x",
"lodash": "4.x",
"make-error": "1.x",
"mkdirp": "1.x",
"semver": "7.x",
Expand Down Expand Up @@ -88,9 +88,7 @@
"@types/fs-extra": "latest",
"@types/js-yaml": "latest",
"@types/json5": "latest",
"@types/lodash.memoize": "4.x",
"@types/lodash.merge": "4.x",
"@types/lodash.set": "4.x",
"@types/lodash": "4.x",
"@types/micromatch": "4.x",
"@types/mkdirp": "latest",
"@types/node": "14.x",
Expand All @@ -115,8 +113,6 @@
"jest": "next",
"js-yaml": "latest",
"lint-staged": "latest",
"lodash.merge": "4.x",
"lodash.set": "4.x",
"npm-run-all": "latest",
"prettier": "2.x",
"source-map": "latest",
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/ts-compiler.ts
@@ -1,7 +1,7 @@
import { basename, normalize, relative } from 'path'

import { LogContexts, Logger, LogLevels } from 'bs-logger'
import memoize from 'lodash.memoize'
import memoize from 'lodash/memoize'
import {
EmitOutput,
LanguageService,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/backports.spec.ts
@@ -1,7 +1,7 @@
import { inspect } from 'util'

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

import { backportJestConfig } from './backports'

Expand Down

0 comments on commit 8e0675c

Please sign in to comment.