Socket
Socket
Sign inDemoInstall

bundt

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bundt - npm Package Compare versions

Comparing version 2.0.0-next.0 to 2.0.0-next.1

2

bin.js
#!/usr/bin/env node
const e=process.argv.slice(2);(async function(){let n=0,t=0,s="",o=[],r={};for(;n<=e.length;n++)if(n===e.length)s&&(r[s]=!0);else if(45===e[n].charCodeAt(0)){if(s&&(r[s]=!0),s=e[n],45!==s.charCodeAt(1)){for(t=s.length-1;t-- >1;)r["-"+s[t]]=!0;s="-"+s[s.length-1]}}else s?r[s]=e[n]:o.push(e[n]),s="";if(r["--version"]||r["-v"]){let{version:e}=require("./package.json");return console.log("bundt, v"+e)}if(r["--help"]||r["-h"]){let e="";return e+="\n Usage",e+="\n $ bundt [directory] [options]\n",e+="\n Options",e+="\n -C, --cwd TODO",e+="\n -c, --config TODO",e+="\n -t, --target TODO",e+="\n -m, --minify TODO",e+="\n -x, --sourcemap TODO",e+="\n -v, --version Displays current version",e+="\n -h, --help Displays this message\n",e+="\n Examples",e+="\n $ bundt --minify",e+="\n $ bundt -xm --target es2020",e+="\n $ bundt packages/utils -t=es2020",console.log(e+"\n")}let i=r["--minify"]||r["-m"],l=r["--sourcemap"]||r["-x"],c=r["--no-colors"]||r["--no-color"];"string"==typeof l&&o.unshift(l),"string"==typeof c&&o.unshift(c),"string"==typeof i&&o.unshift(i);const{resolve:a}=require("path"),p=await import("bundt");let g={};l&&(g.sourcemap=!0),i&&(g.minify=!0);let u=r["--target"]||r["-t"];"string"==typeof u&&(g.target=u);let f=a(r["--cwd"]||r["-c"]||"."),h=a(f,o[0]||"."),m=process.hrtime(),d=await p.build(h,g),y=process.hrtime(m);console.log(await p.report(d,{cwd:h,delta:y,colors:null==c,gzip:!0}))})().catch((e=>{let n=e&&e.message||e;n=n?n.replace(/(\r?\n)/g,"$1 "):"Unknown error",console.error("[bundt]",n),process.exit(1)}));
const e=process.argv.slice(2);(async function(){let t=0,n=0,o="",r=[],s={};for(;t<=e.length;t++)if(t===e.length)o&&(s[o]=!0);else if(45===e[t].charCodeAt(0)){if(o&&(s[o]=!0),o=e[t],45!==o.charCodeAt(1)){for(n=o.length-1;n-- >1;)s["-"+o[n]]=!0;o="-"+o[o.length-1]}}else o?s[o]=e[t]:r.push(e[t]),o="";if(s["--version"]||s["-v"]){let{version:e}=require("./package.json");return console.log("bundt, v"+e)}if(s["--help"]||s["-h"]){let e="";return e+="\n Usage",e+="\n $ bundt [directory] [options]\n",e+="\n Options",e+="\n -C, --cwd The root working directory (default .)",e+="\n -c, --config Path to configuration file (default: bundt.config.ts)",e+="\n -t, --target The target environment (default: es2020)",e+="\n -x, --sourcemap Generate inline sourcemaps",e+="\n -m, --minify Minify output code",e+="\n -v, --version Displays current version",e+="\n -h, --help Displays this message\n",e+="\n Examples",e+="\n $ bundt --minify",e+="\n $ bundt -xm --target es2017",e+="\n $ bundt packages/utils -t=es2017",console.log(e+"\n")}let i=s["--minify"]||s["-m"],l=s["--sourcemap"]||s["-x"],a=s["--no-colors"]||s["--no-color"];"string"==typeof l&&r.unshift(l),"string"==typeof a&&r.unshift(a),"string"==typeof i&&r.unshift(i);const{resolve:c}=require("path"),u=await import("bundt");let g={};l&&(g.sourcemap=!0),i&&(g.minify=!0);let p=s["--target"]||s["-t"];"string"==typeof p&&(g.target=p);let f=c(s["--cwd"]||s["-c"]||"."),h=c(f,r[0]||"."),d=process.hrtime(),m=await u.build(h,g),y=process.hrtime(d);console.log(await u.report(m,{cwd:h,delta:y,colors:null==a,gzip:!0}))})().catch((e=>{let t=e&&e.message||e;t=t?t.replace(/(\r?\n)/g,"$1 "):"Unknown error",console.error("[bundt]",t),process.exit(1)}));
{
"name": "bundt",
"version": "2.0.0-next.0",
"version": "2.0.0-next.1",
"repository": "lukeed/bundt",

@@ -5,0 +5,0 @@ "description": "A simple bundler for your delcious modules~!",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc