Skip to content

Commit

Permalink
feat: expose ansi-colors and sisteransi to "before" and "after" tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed May 22, 2019
1 parent bbd6dcf commit 0a06fc8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const {info, error} = require('./log');
const fs = require('fs');
const prompts = require('./prompts');
const run = require('./run');
const ansiColors = require('ansi-colors');
const sisteransi = require('sisteransi');

function ensureNameIsAvailable(name) {
let stats;
Expand Down Expand Up @@ -71,7 +73,9 @@ async function makes(supplier, {
unattended,
preselectedFeatures,
predefinedProperties,
prompts
prompts,
ansiColors,
sisteransi
}) || {};

// "before" task can
Expand Down Expand Up @@ -124,6 +128,8 @@ async function makes(supplier, {
notDefaultFeatures,
properties,
prompts,
ansiColors,
sisteransi,
run: cmd => run(cmd, targetDir)
});
}
Expand Down

0 comments on commit 0a06fc8

Please sign in to comment.