File tree 4 files changed +15
-5
lines changed
4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 82
82
"bugs" : {
83
83
"url" : " https://github.com/salesforce/design-system-react/issues"
84
84
},
85
- "jsnext:main" : " components/index.js" ,
86
85
"main" : " components/index.js" ,
87
86
"module" : " components/index.js" ,
88
87
"homepage" : " https://react.lightningdesignsystem.com" ,
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ echo "## Cloning additional files"
29
29
30
30
cp .gitignore .tmp/.gitignore
31
31
cp LICENSE.txt .tmp/LICENSE.txt
32
- cp CONTRIBUTING.md .tmp/CONTRIBUTING.md
33
32
cp package.json .tmp/package.json
34
33
cp docs/README-dist.md .tmp/README.md
35
34
Original file line number Diff line number Diff line change 3
3
4
4
/* eslint-disable no-console, global-require */
5
5
6
- console . log ( '# Publishing to git' ) ;
7
-
8
6
import async from 'async' ;
9
7
import fs from 'fs' ;
10
8
import path from 'path' ;
@@ -13,6 +11,8 @@ import minimist from 'minimist';
13
11
import { version } from '../package.json' ;
14
12
import exec from './command-line-utilities' ;
15
13
14
+ console . log ( '# Publishing to git' ) ;
15
+
16
16
const argv = minimist ( process . argv . slice ( 2 ) ) ;
17
17
const rootPath = path . resolve ( __dirname , '../' ) ;
18
18
const getTmpPath = ( type ) =>
@@ -103,7 +103,7 @@ const publish = (done, type) => {
103
103
async . eachSeries ( actions , exec , ( err ) => {
104
104
if ( err ) throw err ;
105
105
106
- // console.log(`## Successfully published ${type} to git`);
106
+ console . log ( `## Successfully published ${ type } to git` ) ;
107
107
108
108
done ( ) ;
109
109
} ) ;
Original file line number Diff line number Diff line change @@ -106,6 +106,18 @@ const tasks = ({ release, done }) => {
106
106
{
107
107
message : `# Pushing local master branch to ${ remote } remote` ,
108
108
command : `git push ${ remote } master --no-verify`
109
+ } ,
110
+ {
111
+ message : '# Set up NPM configuration' ,
112
+ command : 'cp scripts/.npmrc .npmrc'
113
+ } ,
114
+ {
115
+ message : '# Publish to NPM' ,
116
+ command : 'npm publish .tmp-npm'
117
+ } ,
118
+ {
119
+ message : '# Remove NPM configuration' ,
120
+ command : 'rm .npmrc'
109
121
}
110
122
]
111
123
. filter ( ( item ) => ! item . ignoreCommand )
You can’t perform that action at this time.
0 commit comments