Skip to content

Commit b4258dc

Browse files
committed
fix(madrun) init: pre/post
1 parent 02acc79 commit b4258dc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

bin/init.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ function updatePackage(scripts) {
6161
const result = {};
6262

6363
for (const key of keys(scripts)) {
64-
if (/^(pre|post)/.test(key))
65-
continue;
66-
6764
result[key] = `madrun ${key}`;
6865
}
6966

bin/init.spec.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ test('madrun: init: patchPackage: import error', async (t) => {
133133
hello: 'world',
134134
scripts: {
135135
test: 'madrun test',
136+
pretest: 'madrun pretest',
136137
},
137138
}, null, 2) + '\n';
138139

0 commit comments

Comments
 (0)