Skip to content

Commit e9c10c9

Browse files
authored
Merge pull request #4 from Rooster212/update-readme-and-use-package-lock
Update README, use package-lock.json
2 parents 20b7769 + 8acf436 commit e9c10c9

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,18 @@ See blog posts:
1313
* https://adrianhesketh.com/2020/08/28/event-sourced-dynamodb-design-with-typescript-part-1/
1414
* https://adrianhesketh.com/2020/08/28/event-sourced-dynamodb-design-with-typescript-part-2/
1515

16+
## Using a package from the GitHub Package registry for NPM
17+
18+
There is full documentation [on the GitHub website here](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#installing-a-package). Using the package hosted on GitHub requires setting up an `.npmrc` file for the project's scope in the consuming project that looks like this:
19+
20+
```bash
21+
@rooster212:registry=https://npm.pkg.github.com
22+
```
23+
24+
You also have to login to the GitHub package registry (as this is a public package, it should work for anyone).
25+
26+
```bash
27+
npm login --scope=@rooster212 --registry=https://npm.pkg.github.com
28+
```
29+
30+
If you use MFA on your GitHub account, you will need to setup a Personal Access Token in your profile settings and use that in place of your password when prompted in the `npm login` step.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rooster212/event-driven-dynamodb-rules-engine",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Events and rules engine for use with DynamoDB.",
55
"main": "index.js",
66
"scripts": {

publish.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ mkdir ./dist
88
npx tsc --project tsconfig.build.json
99

1010
cp package.json ./dist
11+
cp package-lock.json ./dist
1112
cp LICENSE.txt ./dist
1213
cd ./dist
1314

test.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)