Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eab8d79

Browse filesBrowse files
authored
fix: remove typescript dep (vuejs#163)
1 parent 630575d commit eab8d79
Copy full SHA for eab8d79

File tree

Expand file treeCollapse file tree

2 files changed

+1
-9
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-9
lines changed

‎lib/index.js

Copy file name to clipboardExpand all lines: lib/index.js
-8Lines 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

Copy file name to clipboardExpand all lines: lib/utils.js
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.