fix: filter parser warnings
This commit is contained in:
Generated
+1
-1
@@ -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
@@ -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
@@ -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'))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user