tsx 3.12.0 → 3.12.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/README.md +6 -0
- package/dist/{cli.cjs → cl.cjs} +18 -18
- package/dist/cli.js +18 -18
- package/dist/{loader.cjs → loade.cjs} +2 -2
- package/dist/loader.js +1 -1
- package/dist/package-85e9a839.js +1 -0
- package/dist/package-f6948147.cjs +1 -0
- package/dist/{pkgroll_create-require-f883ea2f.js → pkgroll_create-require-519ac149.js} +0 -0
- package/dist/{pkgroll_create-require-65d895aa.cjs → pkgroll_create-require-b752e289.cjs} +0 -0
- package/dist/preflight..js +1 -0
- package/dist/preflight.cjs +1 -1
- package/dist/{repl.cjs → rep.cjs} +1 -1
- package/dist/repl.js +1 -1
- package/dist/suppress-warnings..js +1 -0
- package/dist/suppress-warnings.cjs +1 -1
- package/package.json +3 -3
- package/dist/package-28a04611.js +0 -1
- package/dist/package-7f70c191.cjs +0 -1
- package/dist/preflight.js +0 -1
- package/dist/suppress-warnings.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
2
|
-
`}));return u.call(this,c.code,i,r,n)};e.eval=l}const{start:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var f=require("./pkgroll_create-require-b752e289.cjs"),d=require("repl"),p=require("@esbuild-kit/core-utils"),t=require("@esbuild-kit/esm-loader");require("module");function v(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var a=v(d);function b(e){const{eval:u}=e,l=async function(o,i,r,n){const c=await p.transform(o,r,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(s=>(console.log(s.message),{code:`
|
|
2
|
+
`}));return u.call(this,c.code,i,r,n)};e.eval=l}const{start:q}=a.default;a.default.start=function(){const e=Reflect.apply(q,this,arguments);return b(e),e},f.require("@esbuild-kit/cjs-loader"),Object.keys(t).forEach(function(e){e!=="default"&&!exports.hasOwnProperty(e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}})});
|
package/dist/loader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as p}from"./pkgroll_create-require-
|
|
1
|
+
import{r as p}from"./pkgroll_create-require-519ac149.js";import e from"repl";import{transform as u}from"@esbuild-kit/core-utils";export*from"@esbuild-kit/esm-loader";import"module";function m(r){const{eval:o}=r,a=async function(s,n,t,c){const l=await u(s,t,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(i=>(console.log(i.message),{code:`
|
|
2
2
|
`}));return o.call(this,l.code,n,t,c)};r.eval=a}const{start:f}=e;e.start=function(){const r=Reflect.apply(f,this,arguments);return m(r),r},p("@esbuild-kit/cjs-loader");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r="3.12.2";export{r as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r="3.12.2";exports.version=r;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n}from"./pkgroll_create-require-519ac149.js";import{constants as i}from"os";import"./suppress-warnings..js";import"module";if(n("@esbuild-kit/cjs-loader"),process.send){let t=function(s){process.send({type:"kill",signal:s}),process.listenerCount(s)===0&&process.exit(128+i.signals[s])};const e=["SIGINT","SIGTERM"];for(const s of e)process.on(s,t);const{listenerCount:r}=process;process.listenerCount=function(s){let o=Reflect.apply(r,this,arguments);return e.includes(s)&&(o-=1),o}}
|
package/dist/preflight.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var n=require("./pkgroll_create-require-
|
|
1
|
+
"use strict";var n=require("./pkgroll_create-require-b752e289.cjs"),o=require("os");if(require("./suppress-warnings.cjs"),require("module"),n.require("@esbuild-kit/cjs-loader"),process.send){let t=function(e){process.send({type:"kill",signal:e}),process.listenerCount(e)===0&&process.exit(128+o.constants.signals[e])};const r=["SIGINT","SIGTERM"];for(const e of r)process.on(e,t);const{listenerCount:i}=process;process.listenerCount=function(e){let s=Reflect.apply(i,this,arguments);return r.includes(e)&&(s-=1),s}}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var c=require("repl"),n=require("@esbuild-kit/core-utils"),i=require("./package-
|
|
1
|
+
"use strict";var c=require("repl"),n=require("@esbuild-kit/core-utils"),i=require("./package-f6948147.cjs");function u(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var p=u(c);console.log(`Welcome to tsx v${i.version} (Node.js ${process.version}).
|
|
2
2
|
Type ".help" for more information.`);const o=p.default.start(),{eval:f}=o,d=async function(e,t,r,a){const s=await n.transform(e,r,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(l=>(console.log(l.message),{code:`
|
|
3
3
|
`}));return f.call(this,s.code,t,r,a)};o.eval=d;
|
package/dist/repl.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import l from"repl";import{transform as c}from"@esbuild-kit/core-utils";import{v as i}from"./package-
|
|
1
|
+
import l from"repl";import{transform as c}from"@esbuild-kit/core-utils";import{v as i}from"./package-85e9a839.js";console.log(`Welcome to tsx v${i} (Node.js ${process.version}).
|
|
2
2
|
Type ".help" for more information.`);const e=l.start(),{eval:m}=e,p=async function(r,t,o,s){const n=await c(r,o,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(a=>(console.log(a.message),{code:`
|
|
3
3
|
`}));return m.call(this,n.code,t,o,s)};e.eval=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=new Set(["--experimental-loader is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature and might change at any time"]),{emit:n}=process;process.emit=function(e,a){if(!(e==="warning"&&t.has(a.message)))return Reflect.apply(n,this,arguments)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=new Set(["--experimental-loader is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature and might change at any time"]),{emit:n}=process;process.emit=function(e,a){if(!(e==="warning"&&t.has(a.message)))return Reflect.apply(n,this,arguments)};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsx",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.2",
|
|
4
4
|
"description": "TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"esbuild",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"bin": "./dist/cli.js",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@esbuild-kit/cjs-loader": "^2.4.
|
|
34
|
+
"@esbuild-kit/cjs-loader": "^2.4.1",
|
|
35
35
|
"@esbuild-kit/core-utils": "^3.0.0",
|
|
36
|
-
"@esbuild-kit/esm-loader": "^2.5.
|
|
36
|
+
"@esbuild-kit/esm-loader": "^2.5.4"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
39
|
"fsevents": "~2.3.2"
|
package/dist/package-28a04611.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="3.12.0";export{r as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r="3.12.0";exports.version=r;
|
package/dist/preflight.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as n}from"./pkgroll_create-require-f883ea2f.js";import{constants as i}from"os";import"./suppress-warnings.js";import"module";if(n("@esbuild-kit/cjs-loader"),process.send){let t=function(s){process.send({type:"kill",signal:s}),process.listenerCount(s)===0&&process.exit(128+i.signals[s])};const e=["SIGINT","SIGTERM"];for(const s of e)process.on(s,t);const{listenerCount:r}=process;process.listenerCount=function(s){let o=Reflect.apply(r,this,arguments);return e.includes(s)&&(o-=1),o}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t=new Set(["--experimental-loader is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature. This feature could change at any time"]),{emit:n}=process;process.emit=function(e,a){if(!(e==="warning"&&t.has(a.message)))return Reflect.apply(n,this,arguments)};
|