Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
test: prepublish-only: Use our own copy of npm
Browse files Browse the repository at this point in the history
  • Loading branch information
iarna committed Apr 23, 2018
1 parent 82dfa54 commit 73e50a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/tap/prepublish-only.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var test = require('tap').test
var Tacks = require('tacks')
var File = Tacks.File
var Dir = Tacks.Dir
var path = require('path')

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

Expand Down Expand Up @@ -57,7 +58,7 @@ var fixture = new Tacks(Dir({
},
scripts: {
build: 'helper',
prepublishOnly: 'npm run build'
prepublishOnly: 'node ' + path.resolve(__dirname, '../../') + ' run build'
}
})
}))
Expand Down Expand Up @@ -113,7 +114,7 @@ test('test', function (t) {
var c = stdout.trim()
var regex = new RegExp(
'> npm-test-prepublish-only@1.2.5 prepublishOnly [^\\r\\n]+\\r?\\n' +
'> npm run build\\r?\\n' +
'> .* run build\\r?\\n' +
'\\r?\\n' +
'\\r?\\n' +
'> npm-test-prepublish-only@1.2.5 build [^\\r\\n]+\\r?\\n' +
Expand Down

0 comments on commit 73e50a7

Please sign in to comment.