@digitak/esrun
Advanced tools
Comparing version 3.2.7 to 3.2.8
{ | ||
"name": "@digitak/esrun", | ||
"version": "3.2.7", | ||
"version": "3.2.8", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Execute directly your Typescript files using Esbuild", |
@@ -5,3 +5,2 @@ import { build } from "esbuild"; | ||
import { fileConstantsPlugin } from "../plugins/fileConstants.js"; | ||
import { makePackagesExternalPlugin } from "../plugins/makePackagesExternal.js"; | ||
import path from "path"; | ||
@@ -51,2 +50,3 @@ export default class Runner { | ||
const plugins = []; | ||
const external = []; | ||
if (this.fileConstants) { | ||
@@ -56,3 +56,3 @@ plugins.push(fileConstantsPlugin()); | ||
if (this.makeAllPackagesExternal) { | ||
plugins.push(makePackagesExternalPlugin()); | ||
external.push("./node_modules/*", "../node_modules/*", "../../node_modules/*", "../../../node_modules/*", "../../../../node_modules/*", "../../../../../node_modules/*"); | ||
} | ||
@@ -68,2 +68,3 @@ try { | ||
tsconfig: this.tsConfigFile, | ||
external, | ||
...(buildOptions ?? {}), | ||
@@ -70,0 +71,0 @@ write: false, |
24275
22
419