diff --git a/typescript/package.json b/typescript/package.json index edebf4c..70bc069 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -1,9 +1,10 @@ { "name": "@peoplesgrocers/lseq", - "version": "1.0.0", + "version": "0.99.0", "description": "L-SEQ algorithm implementation for fractional indexing and list CRDTs", "main": "dist/index.js", "types": "dist/index.d.ts", + "homepage": "https://peoplesgrocers.com/code/oss/lseq", "scripts": { "build": "tsc", "test": "uvu -r tsx src \\.test\\.ts$", @@ -14,10 +15,13 @@ "crdt", "fractional-indexing", "sequence", - "collaborative-editing" + "multiplayer" ], - "author": "peoplesgrocers", - "license": "SEE LICENSE IN LICENSE.txt", + "author": "Karl ", + "contributors": [ + "nobody " + ], + "license": "AGPL-3.0", "devDependencies": { "typescript": "^5.0.0", "uvu": "^0.5.6", @@ -30,7 +34,7 @@ ], "repository": { "type": "git", - "url": "git+https://peoplesgrocers.com/en/forge/peoplesgrocers/lseq.git", + "url": "git+https://peoplesgrocers.com/code/oss/lseq.git", "directory": "typescript" } -} \ No newline at end of file +} diff --git a/typescript/publish.sh b/typescript/publish.sh new file mode 100755 index 0000000..b5cb2ab --- /dev/null +++ b/typescript/publish.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e + +npm run build + +# Publish as lseq +sed -i '' 's/"name": "@peoplesgrocers\/lseq"/"name": "lseq"/' package.json +npm publish "$@" +sed -i '' 's/"name": "lseq"/"name": "@peoplesgrocers\/lseq"/' package.json + +# Publish as @peoplesgrocers/lseq +npm publish "$@" + +echo "Published to both lseq and @peoplesgrocers/lseq"