Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

derw

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

derw - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6-0

26

build/cli/bundle.js

@@ -36,2 +36,3 @@ "use strict";

baner_1.longFlag("watch", "Watch Derw files for changes", baner_1.empty()),
baner_1.longFlag("optimize", "Run generated Javascript through minification", baner_1.empty()),
baner_1.bothFlag("h", "help", "This help text", baner_1.empty()),

@@ -42,2 +43,3 @@ ]);

console.log("To watch use the --watch flag");
console.log("To produce the smallest bundle use the --optimize flag");
console.log(baner_1.help(bundleParser));

@@ -82,8 +84,20 @@ }

try {
await esbuild.build({
entryPoints: [entry],
bundle: true,
outfile: output,
logLevel: "error",
});
if (program.flags.optimize.isPresent) {
await esbuild.build({
entryPoints: [entry],
logLevel: "error",
bundle: true,
minify: true,
format: "iife",
outfile: output,
});
}
else {
await esbuild.build({
entryPoints: [entry],
logLevel: "error",
bundle: true,
outfile: output,
});
}
}

@@ -90,0 +104,0 @@ catch (e) { }

@@ -468,3 +468,3 @@ "use strict";

return `do
${common_1.prefixLines(lines.join("\n"), 4)}
${common_1.prefixLines(lines.join("\n\n"), 4)}
return`;

@@ -471,0 +471,0 @@ }

{
"name": "derw",
"version": "0.0.5",
"version": "0.0.6-0",
"description": "An Elm-inspired language that transpiles to TypeScript",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,2 +21,7 @@ import {

longFlag("watch", "Watch Derw files for changes", empty()),
longFlag(
"optimize",
"Run generated Javascript through minification",
empty()
),
bothFlag("h", "help", "This help text", empty()),

@@ -30,2 +35,3 @@ ]);

console.log("To watch use the --watch flag");
console.log("To produce the smallest bundle use the --optimize flag");
console.log(help(bundleParser));

@@ -91,8 +97,19 @@ }

try {
await esbuild.build({
entryPoints: [ entry as string ],
bundle: true,
outfile: output as string,
logLevel: "error",
});
if (program.flags.optimize.isPresent) {
await esbuild.build({
entryPoints: [ entry as string ],
logLevel: "error",
bundle: true,
minify: true,
format: "iife",
outfile: output as string,
});
} else {
await esbuild.build({
entryPoints: [ entry as string ],
logLevel: "error",
bundle: true,
outfile: output as string,
});
}
} catch (e) {}

@@ -99,0 +116,0 @@ }

@@ -616,3 +616,3 @@ import {

return `do
${prefixLines(lines.join("\n"), 4)}
${prefixLines(lines.join("\n\n"), 4)}
return`;

@@ -619,0 +619,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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