tsx 4.15.0 → 4.15.2
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/dist/cli.cjs +4 -4
- package/dist/cli.mjs +9 -9
- package/dist/esm/index.cjs +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/loader.cjs +1 -1
- package/dist/loader.mjs +1 -1
- package/dist/package-DFGLCO_X.mjs +1 -0
- package/dist/package-EJX1Xe6j.cjs +1 -0
- package/dist/patch-repl.cjs +1 -0
- package/dist/patch-repl.mjs +1 -0
- package/dist/repl.cjs +1 -1
- package/dist/repl.mjs +1 -1
- package/package.json +2 -1
- package/dist/package-Dixdrzzm.mjs +0 -1
- package/dist/package-vAcXyZ49.cjs +0 -1
package/dist/esm/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var O=Object.defineProperty;var u=(e,t)=>O(e,"name",{value:t,configurable:!0});var L=require("node:worker_threads"),
|
|
2
|
-
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);m.namespace=e.namespace,e.tsconfig!==!1&&
|
|
1
|
+
"use strict";var O=Object.defineProperty;var u=(e,t)=>O(e,"name",{value:t,configurable:!0});var L=require("node:worker_threads"),g=require("../node-features-roYmp9jK.cjs"),$=require("../register-Cgb2QO1J.cjs");require("../get-pipe-path-BoR10qr8.cjs"),require("node:module");var N=require("node:path"),l=require("node:url");require("get-tsconfig");var j=require("node:fs");require("esbuild"),require("node:crypto");var h=require("../index-CoHsQGpm.cjs"),S=require("../client-D6NvIMSC.cjs"),i=require("../register-C5rhrsRW.cjs");require("../require-BJPlkiwy.cjs");var D=require("node:fs/promises");require("module"),require("../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:net");const m={active:!0},I=u(async e=>{if(!e)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);m.namespace=e.namespace,e.tsconfig!==!1&&i.loadTsconfig(e.tsconfig??process.env.TSX_TSCONFIG_PATH),e.port&&(m.port=e.port,e.port.on("message",t=>{t==="deactivate"&&(m.active=!1,e.port.postMessage({type:"deactivated"}))}))},"initialize"),A=u(()=>(i.loadTsconfig(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"globalPreload"),w=new Map,b=u(async e=>{if(w.has(e))return w.get(e);if(!await j.promises.access(e).then(()=>!0,()=>!1)){w.set(e,void 0);return}const s=await j.promises.readFile(e,"utf8");try{const o=JSON.parse(s);return w.set(e,o),o}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJson"),W=u(async e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const s=l.fileURLToPath(t),o=await b(s);if(o)return o;const r=t;if(t=new URL("../package.json",t),t.pathname===r.pathname)break}},"findPackageJson"),C=u(async e=>(await W(e))?.type??"commonjs","getPackageType"),Q=u(e=>{[e]=e.split("?");const t=N.extname(e);if(t===".json")return"json";if(t===".mjs"||t===".mts")return"module";if(t===".cjs"||t===".cts")return"commonjs"},"getFormatFromExtension"),G=u(e=>{const t=Q(e);if(t)return t;if(i.tsExtensionsPattern.test(e))return C(e)},"getFormatFromFileUrl"),y="tsx-namespace=",P=u(e=>{const t=e.indexOf(y);if(t===-1)return;const s=e[t-1];if(s!=="?"&&s!=="&")return;const o=t+y.length,r=e.indexOf("&",o);return r===-1?e.slice(o):e.slice(o,r)},"getNamespace"),_=g.isFeatureSupported(g.importAttributes)?"importAttributes":"importAssertions",B=u(async(e,t,s)=>{if(!m.active)return s(e,t);const o=P(e);if(m.namespace&&m.namespace!==o)return s(e,t);if(m.port){const n=new URL(e);n.searchParams.delete("tsx-namespace"),m.port.postMessage({type:"load",url:n.toString()})}S.parent.send&&S.parent.send({type:"dependency",path:e}),i.isJsonPattern.test(e)&&(t[_]||(t[_]={}),t[_].type="json");const r=await s(e,t),c=e.startsWith("file://")?l.fileURLToPath(e):e;if(r.format==="commonjs"&&g.isFeatureSupported(g.esmLoadReadFile)&&r.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const n=await D.readFile(new URL(e),"utf8");if(!c.endsWith(".js")||h.isESM(n)){const p=h.transformSync(n,c,{tsconfigRaw:i.fileMatcher?.(c)}),d=o?`${c}?namespace=${encodeURIComponent(o)}`:c;return r.responseURL=`data:text/javascript,${encodeURIComponent(p.code)}?filePath=${encodeURIComponent(d)}`,r}}if(!r.source)return r;const a=r.source.toString();if(r.format==="json"||i.tsExtensionsPattern.test(e)){const n=await h.transform(a,c,{tsconfigRaw:i.fileMatcher?.(c)});return{format:"module",source:i.inlineSourceMap(n)}}if(r.format==="module"){const n=h.transformDynamicImport(c,a);n&&(r.source=i.inlineSourceMap(n))}return r},"load"),T=u(async e=>(!e.format&&e.url.startsWith(i.fileUrlPrefix)&&(e.format=await G(e.url)),e),"resolveMissingFormat"),H=[".js",".json",".ts",".tsx",".jsx"],R=u(async(e,t,s)=>{const[o,r]=e.split("?");let c;for(const a of H)try{return await T(await s(o+a+(r?`?${r}`:""),t))}catch(n){if(c===void 0&&n instanceof Error){const{message:p}=n;n.message=n.message.replace(`${a}'`,"'"),n.stack=n.stack.replace(p,n.message),c=n}}throw c},"tryExtensions"),v=u(async(e,t,s)=>{const o=i.isDirectoryPattern.test(e),r=o?"index":"/index",[c,a]=e.split("?");try{return await R(c+r+(a?`?${a}`:""),t,s)}catch(n){if(!o)try{return await R(e,t,s)}catch{}const p=n,{message:d}=p;throw p.message=p.message.replace(`${r.replace("/",N.sep)}'`,"'"),p.stack=p.stack.replace(d,p.message),p}},"tryDirectory"),k=u(async(e,t,s)=>{const o=i.mapTsExtensions(e);if(o)for(const r of o)try{return await T(await s(r,t))}catch(c){const{code:a}=c;if(a!=="ERR_MODULE_NOT_FOUND"&&a!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c}},"tryTsPaths"),J=u(async(e,t,s,o)=>{if(!m.active)return s(e,t);const r=t.parentURL&&P(t.parentURL);if(i.requestAcceptsQuery(e)){let a=P(e);if(r&&!a&&(a=r,e+=`${e.includes("?")?"&":"?"}${y}${r}`),m.namespace&&m.namespace!==a)return s(e,t);if(i.isDirectoryPattern.test(e))return await v(e,t,s)}else if(i.tsconfigPathsMatcher&&!t.parentURL?.includes("/node_modules/")){const a=i.tsconfigPathsMatcher(e);for(const n of a)try{return await J(l.pathToFileURL(n).toString(),t,s)}catch{}}if((e.startsWith("#")||!i.isBarePackageName.test(e))&&(i.tsExtensionsPattern.test(t.parentURL)||i.allowJs)){const a=await k(e,t,s);if(a)return a}try{const a=await T(await s(e,t));if(i.requestAcceptsQuery(a.url)){const n=P(a.url);r&&!n&&(a.url+=`${a.url.includes("?")?"&":"?"}${y}${r}`)}return a}catch(a){if(a instanceof Error&&!o){const n=a,{code:p}=n;if(p==="ERR_UNSUPPORTED_DIR_IMPORT")try{return await v(e,t,s)}catch(d){if(d.code!=="ERR_PACKAGE_IMPORT_NOT_DEFINED")throw d}if(p==="ERR_MODULE_NOT_FOUND"){if(n.url){const d=await k(n.url,t,s);if(d)return d}else{const d=a.message.match(/^Cannot find module '([^']+)'/);if(d){const[,E]=d,f=await k(E,t,s);if(f)return f}const U=a.message.match(/^Cannot find package '([^']+)'/);if(U){const[,E]=U,f=l.pathToFileURL(E);f.pathname.endsWith("/package.json")||(f.pathname+="/package.json");const q=await h.readJsonFile(f);if(q?.main){const M=new URL(q.main,f),F=await k(M.toString(),t,s);if(F)return F}}}if(!i.isBarePackageName.test(e))try{return await R(e,t,s)}catch{}}}throw a}},"resolve");g.isFeatureSupported(g.moduleRegister)&&L.isMainThread&&$.register(),exports.globalPreload=A,exports.initialize=I,exports.load=B,exports.resolve=J;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);f.namespace=t.namespace,t.tsconfig!==!1&&S(t.tsconfig??process.env.TSX_TSCONFIG_PATH),t.port&&(f.port=t.port,t.port.on("message",a=>{a==="deactivate"&&(f.active=!1,t.port.postMessage({type:"deactivated"}))}))},"initialize"),rt=i(()=>(S(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"globalPreload"),u=new Map,ot=i(async t=>{if(u.has(t))return u.get(t);if(!await O.promises.access(t).then(()=>!0,()=>!1)){u.set(t,void 0);return}const r=await O.promises.readFile(t,"utf8");try{const n=JSON.parse(r);return u.set(t,n),n}catch{throw new Error(`Error parsing: ${t}`)}},"readPackageJson"),nt=i(async t=>{let a=new URL("package.json",t);for(;!a.pathname.endsWith("/node_modules/package.json");){const r=N(a),n=await ot(r);if(n)return n;const e=a;if(a=new URL("../package.json",a),a.pathname===e.pathname)break}},"findPackageJson"),ct=i(async t=>(await nt(t))?.type??"commonjs","getPackageType"),it=i(t=>{[t]=t.split("?");const a=j.extname(t);if(a===".json")return"json";if(a===".mjs"||a===".mts")return"module";if(a===".cjs"||a===".cts")return"commonjs"},"getFormatFromExtension"),mt=i(t=>{const a=it(t);if(a)return a;if(P.test(t))return ct(t)},"getFormatFromFileUrl"),g="tsx-namespace=",h=i(t=>{const a=t.indexOf(g);if(a===-1)return;const r=t[a-1];if(r!=="?"&&r!=="&")return;const n=a+g.length,e=t.indexOf("&",n);return e===-1?t.slice(n):t.slice(n,e)},"getNamespace"),k=y(
|
|
1
|
+
var v=Object.defineProperty;var i=(t,a)=>v(t,"name",{value:a,configurable:!0});import{isMainThread as Q}from"node:worker_threads";import{i as y,a as q,e as G,m as H}from"../node-features-_8ZFwP_x.mjs";import{r as X}from"../register-BOQ2w7d8.mjs";import"../get-pipe-path-BHW2eJdv.mjs";import"node:module";import j from"node:path";import{fileURLToPath as N,pathToFileURL as J}from"node:url";import"get-tsconfig";import O from"node:fs";import"esbuild";import"node:crypto";import{i as B,a as K,t as z,b as V,r as Y}from"../index-BQiEz0On.mjs";import{p as F}from"../client-BQVF1NaW.mjs";import{l as S,t as P,a as Z,b as M,f as $,c as I,d as L,e as D,g as x,h as tt,m as at,j as b}from"../register-D46En2W-.mjs";import"../require-G3adVXXd.mjs";import{readFile as st}from"node:fs/promises";import"module";import"../temporary-directory-CwHp0_NW.mjs";import"node:os";import"node:net";const f={active:!0},et=i(async t=>{if(!t)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);f.namespace=t.namespace,t.tsconfig!==!1&&S(t.tsconfig??process.env.TSX_TSCONFIG_PATH),t.port&&(f.port=t.port,t.port.on("message",a=>{a==="deactivate"&&(f.active=!1,t.port.postMessage({type:"deactivated"}))}))},"initialize"),rt=i(()=>(S(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"globalPreload"),u=new Map,ot=i(async t=>{if(u.has(t))return u.get(t);if(!await O.promises.access(t).then(()=>!0,()=>!1)){u.set(t,void 0);return}const r=await O.promises.readFile(t,"utf8");try{const n=JSON.parse(r);return u.set(t,n),n}catch{throw new Error(`Error parsing: ${t}`)}},"readPackageJson"),nt=i(async t=>{let a=new URL("package.json",t);for(;!a.pathname.endsWith("/node_modules/package.json");){const r=N(a),n=await ot(r);if(n)return n;const e=a;if(a=new URL("../package.json",a),a.pathname===e.pathname)break}},"findPackageJson"),ct=i(async t=>(await nt(t))?.type??"commonjs","getPackageType"),it=i(t=>{[t]=t.split("?");const a=j.extname(t);if(a===".json")return"json";if(a===".mjs"||a===".mts")return"module";if(a===".cjs"||a===".cts")return"commonjs"},"getFormatFromExtension"),mt=i(t=>{const a=it(t);if(a)return a;if(P.test(t))return ct(t)},"getFormatFromFileUrl"),g="tsx-namespace=",h=i(t=>{const a=t.indexOf(g);if(a===-1)return;const r=t[a-1];if(r!=="?"&&r!=="&")return;const n=a+g.length,e=t.indexOf("&",n);return e===-1?t.slice(n):t.slice(n,e)},"getNamespace"),k=y(q)?"importAttributes":"importAssertions",pt=i(async(t,a,r)=>{if(!f.active)return r(t,a);const n=h(t);if(f.namespace&&f.namespace!==n)return r(t,a);if(f.port){const o=new URL(t);o.searchParams.delete("tsx-namespace"),f.port.postMessage({type:"load",url:o.toString()})}F.send&&F.send({type:"dependency",path:t}),Z.test(t)&&(a[k]||(a[k]={}),a[k].type="json");const e=await r(t,a),c=t.startsWith("file://")?N(t):t;if(e.format==="commonjs"&&y(G)&&e.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const o=await st(new URL(t),"utf8");if(!c.endsWith(".js")||B(o)){const m=K(o,c,{tsconfigRaw:$?.(c)}),p=n?`${c}?namespace=${encodeURIComponent(n)}`:c;return e.responseURL=`data:text/javascript,${encodeURIComponent(m.code)}?filePath=${encodeURIComponent(p)}`,e}}if(!e.source)return e;const s=e.source.toString();if(e.format==="json"||P.test(t)){const o=await z(s,c,{tsconfigRaw:$?.(c)});return{format:"module",source:M(o)}}if(e.format==="module"){const o=V(c,s);o&&(e.source=M(o))}return e},"load"),E=i(async t=>(!t.format&&t.url.startsWith(tt)&&(t.format=await mt(t.url)),t),"resolveMissingFormat"),ft=[".js",".json",".ts",".tsx",".jsx"],_=i(async(t,a,r)=>{const[n,e]=t.split("?");let c;for(const s of ft)try{return await E(await r(n+s+(e?`?${e}`:""),a))}catch(o){if(c===void 0&&o instanceof Error){const{message:m}=o;o.message=o.message.replace(`${s}'`,"'"),o.stack=o.stack.replace(m,o.message),c=o}}throw c},"tryExtensions"),A=i(async(t,a,r)=>{const n=L.test(t),e=n?"index":"/index",[c,s]=t.split("?");try{return await _(c+e+(s?`?${s}`:""),a,r)}catch(o){if(!n)try{return await _(t,a,r)}catch{}const m=o,{message:p}=m;throw m.message=m.message.replace(`${e.replace("/",j.sep)}'`,"'"),m.stack=m.stack.replace(p,m.message),m}},"tryDirectory"),l=i(async(t,a,r)=>{const n=at(t);if(n)for(const e of n)try{return await E(await r(e,a))}catch(c){const{code:s}=c;if(s!=="ERR_MODULE_NOT_FOUND"&&s!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c}},"tryTsPaths"),W=i(async(t,a,r,n)=>{if(!f.active)return r(t,a);const e=a.parentURL&&h(a.parentURL);if(I(t)){let s=h(t);if(e&&!s&&(s=e,t+=`${t.includes("?")?"&":"?"}${g}${e}`),f.namespace&&f.namespace!==s)return r(t,a);if(L.test(t))return await A(t,a,r)}else if(b&&!a.parentURL?.includes("/node_modules/")){const s=b(t);for(const o of s)try{return await W(J(o).toString(),a,r)}catch{}}if((t.startsWith("#")||!D.test(t))&&(P.test(a.parentURL)||x)){const s=await l(t,a,r);if(s)return s}try{const s=await E(await r(t,a));if(I(s.url)){const o=h(s.url);e&&!o&&(s.url+=`${s.url.includes("?")?"&":"?"}${g}${e}`)}return s}catch(s){if(s instanceof Error&&!n){const o=s,{code:m}=o;if(m==="ERR_UNSUPPORTED_DIR_IMPORT")try{return await A(t,a,r)}catch(p){if(p.code!=="ERR_PACKAGE_IMPORT_NOT_DEFINED")throw p}if(m==="ERR_MODULE_NOT_FOUND"){if(o.url){const p=await l(o.url,a,r);if(p)return p}else{const p=s.message.match(/^Cannot find module '([^']+)'/);if(p){const[,w]=p,d=await l(w,a,r);if(d)return d}const R=s.message.match(/^Cannot find package '([^']+)'/);if(R){const[,w]=R,d=J(w);d.pathname.endsWith("/package.json")||(d.pathname+="/package.json");const T=await Y(d);if(T?.main){const C=new URL(T.main,d),U=await l(C.toString(),a,r);if(U)return U}}}if(!D.test(t))try{return await _(t,a,r)}catch{}}}throw s}},"resolve");y(H)&&Q&&X();export{rt as globalPreload,et as initialize,pt as load,W as resolve};
|
package/dist/loader.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var r=require("./get-pipe-path-BoR10qr8.cjs"),e=require("./esm/index.cjs");require("module"),require("node:path"),require("./temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:worker_threads"),require("./node-features-roYmp9jK.cjs"),require("./register-Cgb2QO1J.cjs"),require("node:module"),require("./register-C5rhrsRW.cjs"),require("node:url"),require("get-tsconfig"),require("node:fs"),require("./index-CoHsQGpm.cjs"),require("esbuild"),require("node:crypto"),require("./client-D6NvIMSC.cjs"),require("node:net"),require("./require-BJPlkiwy.cjs"),require("node:fs/promises"),r.require("./cjs/index.cjs"),exports.globalPreload=e.globalPreload,exports.initialize=e.initialize,exports.load=e.load,exports.resolve=e.resolve;
|
package/dist/loader.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{r}from"./get-pipe-path-BHW2eJdv.mjs";import{globalPreload as h,initialize as k,load as w,resolve as y}from"./esm/index.mjs";import"module";import"node:path";import"./temporary-directory-CwHp0_NW.mjs";import"node:os";import"node:worker_threads";import"./node-features-_8ZFwP_x.mjs";import"./register-BOQ2w7d8.mjs";import"node:module";import"./register-D46En2W-.mjs";import"node:url";import"get-tsconfig";import"node:fs";import"./index-BQiEz0On.mjs";import"esbuild";import"node:crypto";import"./client-BQVF1NaW.mjs";import"node:net";import"./require-G3adVXXd.mjs";import"node:fs/promises";r("./cjs/index.cjs");export{h as globalPreload,k as initialize,w as load,y as resolve};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r="4.15.2";export{r as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r="4.15.2";exports.version=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var i=Object.defineProperty;var a=(r,t)=>i(r,"name",{value:t,configurable:!0});var n=require("node:repl"),u=require("esbuild");const f=a(r=>{const{eval:t}=r,c=a(async function(e,l,s,o){try{e=(await u.transform(e,{sourcefile:s,loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}})).code}catch{}return t.call(this,e,l,s,o)},"preEval");r.eval=c},"patchEval"),{start:p}=n;n.start=function(){const r=Reflect.apply(p,this,arguments);return f(r),r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=Object.defineProperty;var a=(t,r)=>i(t,"name",{value:r,configurable:!0});import s from"node:repl";import{transform as f}from"esbuild";const p=a(t=>{const{eval:r}=t,n=a(async function(e,c,o,l){try{e=(await f(e,{sourcefile:o,loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}})).code}catch{}return r.call(this,e,c,o,l)},"preEval");t.eval=n},"patchEval"),{start:u}=s;s.start=function(){const t=Reflect.apply(u,this,arguments);return p(t),t};
|
package/dist/repl.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var s=(e,r)=>c(e,"name",{value:r,configurable:!0});var l=require("node:repl"),u=require("./package-
|
|
1
|
+
"use strict";var c=Object.defineProperty;var s=(e,r)=>c(e,"name",{value:r,configurable:!0});var l=require("node:repl"),u=require("./package-EJX1Xe6j.cjs"),q=require("./index-CoHsQGpm.cjs");require("node:url"),require("esbuild"),require("node:crypto"),require("node:fs"),require("node:path"),require("node:os"),require("./temporary-directory-B83uKxJF.cjs"),console.log(`Welcome to tsx v${u.version} (Node.js ${process.version}).
|
|
2
2
|
Type ".help" for more information.`);const t=l.start(),{eval:p}=t,v=s(async function(e,r,o,i){const a=await q.transform(e,o,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(n=>(console.log(n.message),{code:`
|
|
3
3
|
`}));return p.call(this,a.code,r,o,i)},"preEval");t.eval=v;
|
package/dist/repl.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var m=Object.defineProperty;var t=(o,r)=>m(o,"name",{value:r,configurable:!0});import p from"node:repl";import{v as l}from"./package-
|
|
1
|
+
var m=Object.defineProperty;var t=(o,r)=>m(o,"name",{value:r,configurable:!0});import p from"node:repl";import{v as l}from"./package-DFGLCO_X.mjs";import{t as c}from"./index-BQiEz0On.mjs";import"node:url";import"esbuild";import"node:crypto";import"node:fs";import"node:path";import"node:os";import"./temporary-directory-CwHp0_NW.mjs";console.log(`Welcome to tsx v${l} (Node.js ${process.version}).
|
|
2
2
|
Type ".help" for more information.`);const s=p.start(),{eval:f}=s,v=t(async function(o,r,e,i){const n=await c(o,e,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(a=>(console.log(a.message),{code:`
|
|
3
3
|
`}));return f.call(this,n.code,r,e,i)},"preEval");s.eval=v;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsx",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.2",
|
|
4
4
|
"description": "TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"exports": {
|
|
27
27
|
"./package.json": "./package.json",
|
|
28
28
|
".": "./dist/loader.mjs",
|
|
29
|
+
"./patch-repl": "./dist/patch-repl.cjs",
|
|
29
30
|
"./cjs": "./dist/cjs/index.cjs",
|
|
30
31
|
"./cjs/api": {
|
|
31
32
|
"import": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="4.15.0";export{r as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r="4.15.0";exports.version=r;
|