esbuild-jest
Advanced tools
Comparing version 0.2.0-beta.2 to 0.2.0
@@ -14,5 +14,5 @@ import { resolve } from 'path'; | ||
const build = (filename) => { | ||
const outFiles = buildSync({ | ||
const {outputFiles} = buildSync({ | ||
entryPoints: [filename], | ||
outfile: "./dist/main.js", | ||
outdir: "./dist", | ||
minify: false, | ||
@@ -25,3 +25,3 @@ bundle: true, | ||
}); | ||
return outFiles.outputFiles.reduce((cur, item) => { | ||
return outputFiles.reduce((cur, item) => { | ||
const key = item.path.includes(".map") ? "map" : "code"; | ||
@@ -28,0 +28,0 @@ cur[key] = Buffer.from(item.contents).toString(); |
@@ -16,5 +16,5 @@ 'use strict'; | ||
const build = (filename) => { | ||
const outFiles = esbuild.buildSync({ | ||
const {outputFiles} = esbuild.buildSync({ | ||
entryPoints: [filename], | ||
outfile: "./dist/main.js", | ||
outdir: "./dist", | ||
minify: false, | ||
@@ -27,3 +27,3 @@ bundle: true, | ||
}); | ||
return outFiles.outputFiles.reduce((cur, item) => { | ||
return outputFiles.reduce((cur, item) => { | ||
const key = item.path.includes(".map") ? "map" : "code"; | ||
@@ -30,0 +30,0 @@ cur[key] = Buffer.from(item.contents).toString(); |
{ | ||
"name": "esbuild-jest", | ||
"version": "0.2.0-beta.2", | ||
"version": "0.2.0", | ||
"description": "Jest plugin to use esbuild for transformation", | ||
@@ -23,5 +23,5 @@ "main": "esbuild-jest.js", | ||
"homepage": "https://github.com/aelbore/esbuild-jest#readme", | ||
"peerDependencies": { | ||
"esbuild": ">=0.5.22" | ||
"dependencies": { | ||
"esbuild": "^0.5.24" | ||
} | ||
} |
@@ -11,3 +11,3 @@ # esbuild-jest | ||
```bash | ||
npm install --save-dev esbuild-jest esbuild | ||
npm install --save-dev esbuild-jest | ||
``` | ||
@@ -25,2 +25,2 @@ | ||
} | ||
``` | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25
3103
+ Addedesbuild@^0.5.24
+ Addedesbuild@0.5.26(transitive)
- Removed@esbuild/aix-ppc64@0.24.0(transitive)
- Removed@esbuild/android-arm@0.24.0(transitive)
- Removed@esbuild/android-arm64@0.24.0(transitive)
- Removed@esbuild/android-x64@0.24.0(transitive)
- Removed@esbuild/darwin-arm64@0.24.0(transitive)
- Removed@esbuild/darwin-x64@0.24.0(transitive)
- Removed@esbuild/freebsd-arm64@0.24.0(transitive)
- Removed@esbuild/freebsd-x64@0.24.0(transitive)
- Removed@esbuild/linux-arm@0.24.0(transitive)
- Removed@esbuild/linux-arm64@0.24.0(transitive)
- Removed@esbuild/linux-ia32@0.24.0(transitive)
- Removed@esbuild/linux-loong64@0.24.0(transitive)
- Removed@esbuild/linux-mips64el@0.24.0(transitive)
- Removed@esbuild/linux-ppc64@0.24.0(transitive)
- Removed@esbuild/linux-riscv64@0.24.0(transitive)
- Removed@esbuild/linux-s390x@0.24.0(transitive)
- Removed@esbuild/linux-x64@0.24.0(transitive)
- Removed@esbuild/netbsd-x64@0.24.0(transitive)
- Removed@esbuild/openbsd-arm64@0.24.0(transitive)
- Removed@esbuild/openbsd-x64@0.24.0(transitive)
- Removed@esbuild/sunos-x64@0.24.0(transitive)
- Removed@esbuild/win32-arm64@0.24.0(transitive)
- Removed@esbuild/win32-ia32@0.24.0(transitive)
- Removed@esbuild/win32-x64@0.24.0(transitive)
- Removedesbuild@0.24.0(transitive)