Skip to content

Commit 8dbf726

Browse files
committed
test: prepublish-only: Use our own copy of npm
1 parent c12e614 commit 8dbf726

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/tap/prepublish-only.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var test = require('tap').test
66
var Tacks = require('tacks')
77
var File = Tacks.File
88
var Dir = Tacks.Dir
9+
var path = require('path')
910

1011
var common = require('../common-tap')
1112

@@ -57,7 +58,7 @@ var fixture = new Tacks(Dir({
5758
},
5859
scripts: {
5960
build: 'helper',
60-
prepublishOnly: 'npm run build'
61+
prepublishOnly: 'node ' + path.resolve(__dirname, '../../') + ' run build'
6162
}
6263
})
6364
}))
@@ -113,7 +114,7 @@ test('test', function (t) {
113114
var c = stdout.trim()
114115
var regex = new RegExp(
115116
'> [email protected] prepublishOnly [^\\r\\n]+\\r?\\n' +
116-
'> npm run build\\r?\\n' +
117+
'> .* run build\\r?\\n' +
117118
'\\r?\\n' +
118119
'\\r?\\n' +
119120
'> [email protected] build [^\\r\\n]+\\r?\\n' +

0 commit comments

Comments
 (0)