Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2018-04-21 05:47:34 +0300
committerRebecca Turner <me@re-becca.org>2018-04-24 02:42:33 +0300
commit73e50a7979570d558418e5c3ef1842338b66ec95 (patch)
tree13750e692a05525e305403fcec1d3ecc8d5860db
parent82dfa54ccc2afa60ea6024e8810560e452cd1265 (diff)
test: prepublish-only: Use our own copy of npm
-rw-r--r--test/tap/prepublish-only.js5
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' +