feat: prepare for publishing npm package
This commit is contained in:
parent
8911e582d8
commit
0eaf43ebfe
2 changed files with 24 additions and 6 deletions
|
|
@ -1,9 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "@peoplesgrocers/lseq",
|
"name": "@peoplesgrocers/lseq",
|
||||||
"version": "1.0.0",
|
"version": "0.99.0",
|
||||||
"description": "L-SEQ algorithm implementation for fractional indexing and list CRDTs",
|
"description": "L-SEQ algorithm implementation for fractional indexing and list CRDTs",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
"homepage": "https://peoplesgrocers.com/code/oss/lseq",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"test": "uvu -r tsx src \\.test\\.ts$",
|
"test": "uvu -r tsx src \\.test\\.ts$",
|
||||||
|
|
@ -14,10 +15,13 @@
|
||||||
"crdt",
|
"crdt",
|
||||||
"fractional-indexing",
|
"fractional-indexing",
|
||||||
"sequence",
|
"sequence",
|
||||||
"collaborative-editing"
|
"multiplayer"
|
||||||
],
|
],
|
||||||
"author": "peoplesgrocers",
|
"author": "Karl <marxism@peoplesgrocers.com>",
|
||||||
"license": "SEE LICENSE IN LICENSE.txt",
|
"contributors": [
|
||||||
|
"nobody <nobody@localhost>"
|
||||||
|
],
|
||||||
|
"license": "AGPL-3.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^5.0.0",
|
"typescript": "^5.0.0",
|
||||||
"uvu": "^0.5.6",
|
"uvu": "^0.5.6",
|
||||||
|
|
@ -30,7 +34,7 @@
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://peoplesgrocers.com/en/forge/peoplesgrocers/lseq.git",
|
"url": "git+https://peoplesgrocers.com/code/oss/lseq.git",
|
||||||
"directory": "typescript"
|
"directory": "typescript"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
14
typescript/publish.sh
Executable file
14
typescript/publish.sh
Executable file
|
|
@ -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"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue