mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
chore(publish): fixed publish npm script to only call the script once
This commit is contained in:
@ -17,7 +17,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "stencil build",
|
"build": "stencil build",
|
||||||
"dev": "sd concurrent \"stencil build --dev --watch\" \"stencil-dev-server\"",
|
"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"
|
"test": "jest --no-cache"
|
||||||
},
|
},
|
||||||
"author": "Ionic Team",
|
"author": "Ionic Team",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
console.log('Publish Script Starting ...');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
|
||||||
@ -14,4 +15,6 @@ fs.writeFileSync(INDEX_JS_DIST, '');
|
|||||||
|
|
||||||
console.log('publish: create', INDEX_DTS_DIST);
|
console.log('publish: create', INDEX_DTS_DIST);
|
||||||
var srcIndexDTS = fs.readFileSync(INDEX_DTS_SRC, 'utf-8');
|
var srcIndexDTS = fs.readFileSync(INDEX_DTS_SRC, 'utf-8');
|
||||||
fs.writeFileSync(INDEX_DTS_DIST, srcIndexDTS);
|
fs.writeFileSync(INDEX_DTS_DIST, srcIndexDTS);
|
||||||
|
|
||||||
|
console.log('Publish Script ... Complete');
|
Reference in New Issue
Block a user