File tree Expand file tree Collapse file tree 4 files changed +43
-2
lines changed
Expand file tree Collapse file tree 4 files changed +43
-2
lines changed Original file line number Diff line number Diff line change 1818 run : npm publish --access public
1919 env :
2020 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
21+ - name : Setup .npmrc file to publish to GitHub Packages
22+ uses : actions/setup-node@v1
23+ with :
24+ node-version : ' 12.x'
25+ registry-url : ' https://npm.pkg.github.com'
26+ scope : ' @tomchen'
27+ - run : npm run addscope
28+ - name : Publish to GitHub Packages
29+ run : npm publish
30+ env :
31+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11# typedoc-plugin-not-exported
22
3- [ ![ npm package] ( https://img.shields.io/badge/npm%20i-typedoc--plugin--not--exported-brightgreen )] ( https://www.npmjs.com/package/typedoc-plugin-not-exported ) [ ![ version number] ( https://img.shields.io/npm/v/typedoc-plugin-not-exported?color=green&label=version )] ( https://github.com/tomchen/typedoc-plugin-not-exported/releases ) [ ![ License] ( https://img.shields.io/github/license/tomchen/typedoc-plugin-not-exported )] ( https://github.com/tomchen/typedoc-plugin-not-exported/blob/main/LICENSE )
3+ [ ![ npm package] ( https://img.shields.io/badge/npm%20i-typedoc--plugin--not--exported-brightgreen )] ( https://www.npmjs.com/package/typedoc-plugin-not-exported ) [ ![ version number] ( https://img.shields.io/npm/v/typedoc-plugin-not-exported?color=green&label=version )] ( https://github.com/tomchen/typedoc-plugin-not-exported/releases ) [ ![ Actions Status ] ( https://github.com/tomchen/typedoc-plugin-not-exported/workflows/Test/badge.svg )] ( https://github.com/tomchen/typedoc-plugin-not-exported/actions ) [ ![ License] ( https://img.shields.io/github/license/tomchen/typedoc-plugin-not-exported )] ( https://github.com/tomchen/typedoc-plugin-not-exported/blob/main/LICENSE )
44
55This [ TypeDoc] ( https://typedoc.org/ ) plugin can force inclusion of specific symbols (variables) that are not exported, by making them fake exports.
66
Original file line number Diff line number Diff line change 77 "test" : " npm run test:gen && npm run test:jest && npm run test:cleanup" ,
88 "test:cleanup" : " rimraf test/docs test/docs2" ,
99 "test:gen" : " npm run test:cleanup && typedoc --options test/typedoc.json && typedoc --options test/typedoc2.json" ,
10- "test:jest" : " jest"
10+ "test:jest" : " jest" ,
11+ "addscope" : " node tools/packagejson name @tomchen/typedoc-plugin-not-exported && prettier --write package.json"
12+ },
13+ "publishConfig" : {
14+ "access" : " public"
1115 },
1216 "files" : [
1317 " src"
Original file line number Diff line number Diff line change 1+ /* eslint-disable */
2+ const fs = require ( 'fs' )
3+ const Path = require ( 'path' )
4+ const fileName = '../package.json'
5+ const file = require ( fileName )
6+ /* eslint-enable */
7+
8+ const args = process . argv . slice ( 2 )
9+
10+ for ( let i = 0 , l = args . length ; i < l ; i ++ ) {
11+ if ( i % 2 === 0 ) {
12+ file [ args [ i ] ] = args [ i + 1 ]
13+ }
14+ }
15+
16+ fs . writeFile (
17+ Path . join ( __dirname , fileName ) ,
18+ JSON . stringify ( file ) ,
19+ function writeJSON ( err ) {
20+ if ( err ) {
21+ return console . log ( err )
22+ }
23+ console . log ( JSON . stringify ( file ) )
24+ console . log ( 'Writing to ' + fileName )
25+ }
26+ )
You can’t perform that action at this time.
0 commit comments