chore: mark typescript package as tree shakeable
This commit is contained in:
parent
8104c24016
commit
eefbfb642d
2 changed files with 23 additions and 7 deletions
|
|
@ -1,12 +1,27 @@
|
|||
{
|
||||
"name": "@peoplesgrocers/lseq",
|
||||
"version": "0.99.1",
|
||||
"version": "0.99.2",
|
||||
"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",
|
||||
"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",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"build": "tsup src/index.ts --format cjs,esm --dts",
|
||||
"test": "uvu -r tsx src \\.test\\.ts$",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
|
|
@ -23,9 +38,10 @@
|
|||
],
|
||||
"license": "AGPL-3.0",
|
||||
"devDependencies": {
|
||||
"tsup": "^8.5.1",
|
||||
"tsx": "^4.7.0",
|
||||
"typescript": "^5.0.0",
|
||||
"uvu": "^0.5.6",
|
||||
"tsx": "^4.7.0"
|
||||
"uvu": "^0.5.6"
|
||||
},
|
||||
"files": [
|
||||
"dist/**/*",
|
||||
|
|
@ -40,4 +56,4 @@
|
|||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue