Skip to content

Commit

Permalink
fix: madrun: prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Sep 25, 2024
1 parent 6f28bbd commit 5c2a655
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .madrun.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ export default {
'report': () => 'c8 report --reporter=lcov',
'postpublish': () => 'npm i -g',
'hello': noop,
'prepare': () => 'echo "> prepare"',
};
3 changes: 1 addition & 2 deletions bin/init.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ function updatePackage(scripts) {
const result = {};

for (const key of keys(scripts)) {
if (key.startsWith('pre'))
if (key.startsWith('pre') && key !== 'prepare')
continue;

console.log('xxxx', key);
result[key] = `madrun ${key}`;
}

Expand Down

0 comments on commit 5c2a655

Please sign in to comment.