UNPKG

piral-cli

Version:

The standard CLI for creating and building a Piral instance or a Pilet.

19 lines 590 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = default_1; /** * Checks that no other (third-party) dependencies are bundled in. */ function default_1(context, options = 'ignore') { if (options !== 'ignore') { const dependencies = Object.keys(context.dependencies); if (dependencies.length > 0) { context.error(` The pilet references third-party dependencies. Expected: <none>. Received: "${dependencies.join('", "')}". `); } } } //# sourceMappingURL=pilet-has-no-third-party-dependency.js.map