Compare commits

..

1 commit

Author SHA1 Message Date
eefbfb642d
chore: mark typescript package as tree shakeable 2025-12-13 07:43:29 -08:00
2 changed files with 23 additions and 7 deletions

2
.gitignore vendored
View file

@ -4,7 +4,7 @@ typescript/dist/
typescript/*.tsbuildinfo typescript/*.tsbuildinfo
typescript/.nyc_output/ typescript/.nyc_output/
typescript/coverage/ typescript/coverage/
typescript/package.json typescript/package-lock.json
# Rust # Rust
target/ target/

View file

@ -1,12 +1,27 @@
{ {
"name": "@peoplesgrocers/lseq", "name": "@peoplesgrocers/lseq",
"version": "0.99.1", "version": "0.99.2",
"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", "sideEffects": false,
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"homepage": "https://peoplesgrocers.com/code/oss/lseq", "homepage": "https://peoplesgrocers.com/code/oss/lseq",
"scripts": { "scripts": {
"build": "tsc", "build": "tsup src/index.ts --format cjs,esm --dts",
"test": "uvu -r tsx src \\.test\\.ts$", "test": "uvu -r tsx src \\.test\\.ts$",
"prepublishOnly": "npm run build" "prepublishOnly": "npm run build"
}, },
@ -23,9 +38,10 @@
], ],
"license": "AGPL-3.0", "license": "AGPL-3.0",
"devDependencies": { "devDependencies": {
"tsup": "^8.5.1",
"tsx": "^4.7.0",
"typescript": "^5.0.0", "typescript": "^5.0.0",
"uvu": "^0.5.6", "uvu": "^0.5.6"
"tsx": "^4.7.0"
}, },
"files": [ "files": [
"dist/**/*", "dist/**/*",