diff options
Diffstat (limited to 'test/tap/prepublish-only.js')
-rw-r--r-- | test/tap/prepublish-only.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/tap/prepublish-only.js b/test/tap/prepublish-only.js index 835da39a4..0d2d31589 100644 --- a/test/tap/prepublish-only.js +++ b/test/tap/prepublish-only.js @@ -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') @@ -57,7 +58,7 @@ var fixture = new Tacks(Dir({ }, scripts: { build: 'helper', - prepublishOnly: 'npm run build' + prepublishOnly: 'node ' + path.resolve(__dirname, '../../') + ' run build' } }) })) @@ -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' + |