rollup-plugin-bpmnlint
Advanced tools
Comparing version 0.3.1 to 0.4.0
17
index.js
const requireLocal = createScopedRequire(process.cwd()); | ||
try { | ||
requireLocal('bpmnlint'); | ||
} catch (err) { | ||
throw new Error('cannot find local <bpmnlint>, did you install it?'); | ||
} | ||
const compileConfig = requireLocal('bpmnlint/lib/support/compile-config'); | ||
const { createFilter } = require('rollup-pluginutils'); | ||
@@ -18,3 +10,4 @@ | ||
include, | ||
exclude | ||
exclude, | ||
compileConfig | ||
} = options; | ||
@@ -26,2 +19,8 @@ | ||
try { | ||
compileConfig = compileConfig || requireLocal('bpmnlint/lib/support/compile-config'); | ||
} catch (err) { | ||
throw new Error('cannot find local <bpmnlint>. Install it or provide a configuration compiler throught the <compileConfig> option.'); | ||
} | ||
const filter = createFilter(include, exclude); | ||
@@ -28,0 +27,0 @@ |
{ | ||
"name": "rollup-plugin-bpmnlint", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "Convert bpmnlint config files to consumable modules", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -42,3 +42,7 @@ # rollup-plugin-bpmnlint | ||
// undefined per default | ||
exclude: [ ] | ||
exclude: [ ], | ||
// an compiler that transforms a .bpmnlintrc | ||
// file into the actual bpmnlint configuration | ||
compileConfig: null | ||
}) | ||
@@ -49,4 +53,5 @@ ] | ||
# License | ||
## License | ||
MIT |
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
5143
56