Comparing version 1.0.1 to 1.0.2
13
index.js
@@ -39,8 +39,7 @@ #!/usr/bin/env node | ||
} | ||
return mkdir(dirname(file)).then(() => { | ||
let { code } = minify(data, Object.assign({ toplevel:!isUMD }, terser)); | ||
writeFileSync(file, isUMD ? code : data); | ||
let gzip = size(gzipSync(code).length); | ||
return { file, size:size(code.length), gzip }; | ||
}); | ||
mkdirs(dirname(file)); // sync | ||
let { code } = minify(data, Object.assign({ toplevel:!isUMD }, terser)); | ||
writeFileSync(file, isUMD ? code : data); | ||
let gzip = size(gzipSync(code).length); | ||
return { file, size: size(code.length), gzip }; | ||
} | ||
@@ -89,4 +88,4 @@ | ||
const imports = require('rewrite-imports'); | ||
const mkdirs = require('mk-dirs/sync'); | ||
const { minify } = require('terser'); | ||
const mkdir = require('mk-dirs'); | ||
@@ -93,0 +92,0 @@ // Parsed config |
{ | ||
"name": "bundt", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"repository": "lukeed/bundt", | ||
@@ -31,11 +31,11 @@ "description": "A simple bundler for your delcious modules~!", | ||
"dependencies": { | ||
"kleur": "^3.0.1", | ||
"mk-dirs": "^1.0.0", | ||
"kleur": "^4.0.0", | ||
"mk-dirs": "^2.0.0", | ||
"rewrite-imports": "^2.0.0", | ||
"terser": "^4.6.0" | ||
"terser": "^4.8.0" | ||
}, | ||
"devDependencies": { | ||
"premove": "^1.0.0", | ||
"uvu": "^0.0.6" | ||
"premove": "^2.0.0", | ||
"uvu": "^0.0.14" | ||
} | ||
} |
@@ -6,8 +6,8 @@ <div align="center"> | ||
<div align="center"> | ||
<a href="https://github.com/lukeed/bundt/actions"> | ||
<img src="https://github.com/lukeed/bundt/workflows/CI/badge.svg" alt="CI" /> | ||
</a> | ||
<a href="https://npmjs.org/package/bundt"> | ||
<img src="https://badgen.net/npm/v/bundt" alt="version" /> | ||
</a> | ||
<a href="https://github.com/lukeed/bundt/actions"> | ||
<img src="https://badgen.net/github/status/lukeed/bundt" alt="status" /> | ||
</a> | ||
<a href="https://npmjs.org/package/bundt"> | ||
@@ -14,0 +14,0 @@ <img src="https://badgen.net/npm/dm/bundt" alt="downloads" /> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11554
149
+ Addedkleur@4.1.5(transitive)
+ Addedmk-dirs@2.1.0(transitive)
- Removedkleur@3.0.3(transitive)
- Removedmk-dirs@1.0.0(transitive)
Updatedkleur@^4.0.0
Updatedmk-dirs@^2.0.0
Updatedterser@^4.8.0