From 2a15788fa959c49768714b6d7a13a99c965469ce Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 7 Jan 2019 13:11:23 -0800 Subject: [PATCH] fix path to script/notify --- modules/primer/scripts/postpublish.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/primer/scripts/postpublish.js b/modules/primer/scripts/postpublish.js index 496ec819..70dc0bfc 100644 --- a/modules/primer/scripts/postpublish.js +++ b/modules/primer/scripts/postpublish.js @@ -2,8 +2,11 @@ const execa = require('execa') const {writeFileSync} = require('fs') const {join} = require('path') +const root = resolve(__dirname, '../../..') const version = require('../package.json').version -const path = join(__dirname, '../../../primer-version.txt') + +const path = join(root, 'primer-version.txt') writeFileSync(path, version, 'utf8') -execa.sync('../../script/notify', ['success'], {stdio: 'inherit'}) +const cwd = process.cwd() +execa.sync(join(root, 'script/notify'), ['success'], {cwd, stdio: 'inherit'})