@nowa/core
Advanced tools
Comparing version 0.0.4 to 0.0.5
import { Runner } from './lib/runner'; | ||
import { Plugin } from './lib/types/plugin'; | ||
declare const createRunner: (plugins: Plugin[]) => Promise<Runner>; | ||
declare const createRunner: (plugins: Plugin<Runner>[]) => Promise<Runner>; | ||
export default createRunner; |
@@ -44,3 +44,3 @@ "use strict"; | ||
debug('apply get-options'); | ||
this.options = yield this.applyPluginBail('get-options', [this.parsedSolution.commandDescriptors, this.parsedConfig.config]); | ||
this.options = yield this.applyPluginBail('get-options', [this.info, this.parsedSolution.commandDescriptors, this.parsedConfig.config]); | ||
debug('apply load-modules'); | ||
@@ -47,0 +47,0 @@ this.modules = yield this.applyPluginBail('load-modules', [this.info, this.rawSolution.commands]); |
import { Pluginable } from '../core/pluginable'; | ||
export interface Plugin { | ||
apply: (pluginable: Pluginable) => void | Promise<void>; | ||
export interface Plugin<For extends Pluginable = Pluginable> { | ||
apply: (pluginable: For) => void | Promise<void>; | ||
} |
@@ -20,3 +20,3 @@ import { Config } from './config'; | ||
interface _ParsedOptionDescriptor { | ||
type: 'string' | 'number' | 'array' | 'object'; | ||
type: 'string' | 'number' | 'array' | 'boolean'; | ||
description: string; | ||
@@ -23,0 +23,0 @@ convert?: Function; |
{ | ||
"name": "@nowa/core", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "The nowa core", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
36837