Skip to content

Commit c92904f

Browse files
authored
Merge pull request #6 from hankei6km/topic/backport-from-mdast-qrcode
Backport from mdast-qrcode
2 parents 8d04644 + 607b56c commit c92904f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ CodeSandbox 上でコードを編集し、GitHub Actions から npm レジスト
2323

2424
### ライブラリー部分の変更
2525

26-
`src/count.ts` を削除し、ライブラリのコードを記述。エクスポートしたい項目を `src/index.ts` へ記述。
26+
`src/count.ts` `src/count.test.ts` `test/*` を削除し、ライブラリのコードを記述。エクスポートしたい項目を `src/index.ts` へ記述。
2727

2828
### npm publish
2929

30-
GitHub で Release を Publish すると `npm pbulish` される。
30+
以下の設定後に GitHub で Release を Publish すると `npm pbulish` される。
31+
32+
1. GitHub にリポジトリを作成
33+
1. リポジトリの "Settings / Environment" から `npm_pkg` を作成
34+
1. Environment secrets に `NPM_TOKEN` を追加(内容は npm レジストリの Access Token)
3135

3236
なお、`prepublishOnly` 等は定義されていないので、手動で `npm publish` を実行してもビルドはされないので注意。
3337

@@ -64,3 +68,4 @@ GitHub で Release を Publish すると `npm pbulish` される。
6468
MIT License
6569

6670
Copyright (c) 2021 hankei6km
71+

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"declaration": true,
99
"pretty": true,
1010
"newLine": "lf",
11-
"outDir": "dist"
11+
"outDir": "dist",
12+
"esModuleInterop": true
1213
},
1314
"exclude": [
1415
"node_modules",
@@ -18,4 +19,4 @@
1819
"src/**/*.ts",
1920
"src/**/*.tsx"
2021
]
21-
}
22+
}

0 commit comments

Comments
 (0)