fix: filter parser warnings

This commit is contained in:
calebboyd
2018-11-29 06:03:56 -05:00
parent dcea374922
commit ab6b540e23
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "nexe",
"version": "3.0.0-beta.9",
"version": "3.0.0-beta.11",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "nexe",
"description": "Create a single executable out of your Node.js application",
"license": "MIT",
"version": "3.0.0-beta.10",
"version": "3.0.0-beta.11",
"contributors": [
"Craig Condon <craig.j.condon@gmail.com> (http://crcn.io)",
"Jared Allard <jaredallard@outlook.com>",
+1 -1
View File
@@ -45,7 +45,7 @@ export default async function bundle(compiler: NexeCompiler, next: any) {
const { files, warnings } = await resolveFiles(input, { cwd, expand: true, loadContent: false })
if (warnings.length) {
if (warnings.filter(x => !x.startsWith("Can't resolve")).length) {
throw new Error('Parsing Error:\n' + warnings.join('\n'))
}