Skip to content

Commit eab8d79

Browse files
authored
fix: remove typescript dep (#163)
1 parent 630575d commit eab8d79

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

lib/index.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const crypto = require('crypto')
22
const babelJest = require('babel-jest')
3-
const tsJest = require('ts-jest')
43

54
module.exports = {
65
process: require('./process'),
@@ -20,13 +19,6 @@ module.exports = {
2019
}),
2120
'hex'
2221
)
23-
.update(
24-
tsJest.getCacheKey(fileData, filename, configString, {
25-
instrument,
26-
rootDir
27-
}),
28-
'hex'
29-
)
3022
.digest('hex')
3123
}
3224
}

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const loadPartialConfig = require('@babel/core').loadPartialConfig
2-
const createTransformer = require('ts-jest').createTransformer
32
const chalk = require('chalk')
43
const path = require('path')
54
const fs = require('fs')
@@ -64,6 +63,7 @@ const getBabelOptions = function loadBabelOptions(filename, options = {}) {
6463
}
6564

6665
const getTsJestConfig = function getTsJestConfig(config) {
66+
const createTransformer = require('ts-jest').createTransformer
6767
const tr = createTransformer()
6868
const { typescript } = tr.configsFor(config)
6969
return { compilerOptions: typescript.options }

0 commit comments

Comments
 (0)