ts-jest 27.0.2 → 27.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ts-jest-digest +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/compiler/ts-compiler.js +2 -1
- package/package.json +2 -10
package/.ts-jest-digest
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
43a4882bb5f0a05bfcf95a3ba25ace21917ca828
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [27.0.3](https://github.com/kulshekhar/ts-jest/compare/v27.0.2...v27.0.3) (2021-06-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* revert `exports` field to support all node versions ([#2658](https://github.com/kulshekhar/ts-jest/issues/2658)) ([132c8ba](https://github.com/kulshekhar/ts-jest/commit/132c8ba85c3e61b7d9ede0dc9730580b79618ab7))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* emit ESM codes if using ESM mode with Babel ([#2661](https://github.com/kulshekhar/ts-jest/issues/2661)) ([9b55404](https://github.com/kulshekhar/ts-jest/commit/9b55404a8dfc760238e19786da98a2edf043b9da)), closes [#2650](https://github.com/kulshekhar/ts-jest/issues/2650)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
1
15
|
## [27.0.2](https://github.com/kulshekhar/ts-jest/compare/v27.0.1...v27.0.2) (2021-05-30)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -107,7 +107,8 @@ var TsCompiler = (function () {
|
|
|
107
107
|
var esModuleInterop = this._initialCompilerOptions.esModuleInterop;
|
|
108
108
|
var allowSyntheticDefaultImports = this._initialCompilerOptions.allowSyntheticDefaultImports;
|
|
109
109
|
var currentModuleKind = this._compilerOptions.module;
|
|
110
|
-
if (
|
|
110
|
+
if ((this.configSet.babelJestTransformer || (!this.configSet.babelJestTransformer && options.supportsStaticESM)) &&
|
|
111
|
+
this.configSet.useESM) {
|
|
111
112
|
moduleKind =
|
|
112
113
|
!moduleKind ||
|
|
113
114
|
(moduleKind &&
|
package/package.json
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-jest",
|
|
3
|
-
"version": "27.0.
|
|
3
|
+
"version": "27.0.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
|
-
"exports": {
|
|
7
|
-
".": "./dist/index.js",
|
|
8
|
-
"./dist/*": "./dist/*.js",
|
|
9
|
-
"./jest-preset": "./jest-preset.js",
|
|
10
|
-
"./presets": "./presets/index.js",
|
|
11
|
-
"./utils": "./utils/index.js",
|
|
12
|
-
"./package.json": "./package.json"
|
|
13
|
-
},
|
|
14
6
|
"bin": {
|
|
15
7
|
"ts-jest": "cli.js"
|
|
16
8
|
},
|
|
@@ -130,7 +122,7 @@
|
|
|
130
122
|
"npm-run-all": "latest",
|
|
131
123
|
"prettier": "2.3.0",
|
|
132
124
|
"source-map": "latest",
|
|
133
|
-
"typescript": "
|
|
125
|
+
"typescript": "~4.2.4"
|
|
134
126
|
},
|
|
135
127
|
"lint-staged": {
|
|
136
128
|
"*.{ts,tsx,js,jsx}": [
|