From c0bec89ee325f0796490458c7a145f9adcf06d77 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Wed, 30 Aug 2017 15:03:25 -0500 Subject: [PATCH] chore(publish): fixed publish npm script to only call the script once --- packages/core/package.json | 2 +- packages/core/scripts/publish.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index aa4e4956c8..ae8b8eea2f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -17,7 +17,7 @@ "scripts": { "build": "stencil build", "dev": "sd concurrent \"stencil build --dev --watch\" \"stencil-dev-server\"", - "publish": "npm run build && node scripts/publish.js && node scripts/publish.js && ../../node_modules/.bin/np --any-branch", + "publish": "npm run build && node scripts/publish.js && ../../node_modules/.bin/np --any-branch", "test": "jest --no-cache" }, "author": "Ionic Team", diff --git a/packages/core/scripts/publish.js b/packages/core/scripts/publish.js index 9dadee1336..253e2def60 100644 --- a/packages/core/scripts/publish.js +++ b/packages/core/scripts/publish.js @@ -1,3 +1,4 @@ +console.log('Publish Script Starting ...'); var fs = require('fs'); var path = require('path'); @@ -14,4 +15,6 @@ fs.writeFileSync(INDEX_JS_DIST, ''); console.log('publish: create', INDEX_DTS_DIST); var srcIndexDTS = fs.readFileSync(INDEX_DTS_SRC, 'utf-8'); -fs.writeFileSync(INDEX_DTS_DIST, srcIndexDTS); \ No newline at end of file +fs.writeFileSync(INDEX_DTS_DIST, srcIndexDTS); + +console.log('Publish Script ... Complete'); \ No newline at end of file