Skip to content

Commit

Permalink
Merge pull request #4 from Rooster212/update-readme-and-use-package-lock
Browse files Browse the repository at this point in the history
Update README, use package-lock.json
  • Loading branch information
Rooster212 authored Aug 2, 2022
2 parents 20b7769 + 8acf436 commit e9c10c9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,18 @@ See blog posts:
* https://adrianhesketh.com/2020/08/28/event-sourced-dynamodb-design-with-typescript-part-1/
* https://adrianhesketh.com/2020/08/28/event-sourced-dynamodb-design-with-typescript-part-2/

## Using a package from the GitHub Package registry for NPM

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:

```bash
@rooster212:registry=https://npm.pkg.github.com
```

You also have to login to the GitHub package registry (as this is a public package, it should work for anyone).

```bash
npm login --scope=@rooster212 --registry=https://npm.pkg.github.com
```

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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rooster212/event-driven-dynamodb-rules-engine",
"version": "0.2.0",
"version": "0.2.1",
"description": "Events and rules engine for use with DynamoDB.",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ mkdir ./dist
npx tsc --project tsconfig.build.json

cp package.json ./dist
cp package-lock.json ./dist
cp LICENSE.txt ./dist
cd ./dist

Expand Down
3 changes: 0 additions & 3 deletions test.ts

This file was deleted.

0 comments on commit e9c10c9

Please sign in to comment.