Files
self/sdk/core/package.json
Justin Hernandez 07addb2a9a chore: add TypeScript tooling (#891)
* chore: add TypeScript tooling

* chore: remove unused tsconfig and migration script

* update settings

* add knip config

* format

* more reliable circuits tests

* fix workflow

* fix types

* updates

* ts updates

* more updates

* fix upgrade

* fixes
2025-08-13 21:02:07 -07:00

85 lines
2.3 KiB
JSON

{
"name": "@selfxyz/core",
"version": "1.0.8",
"repository": {
"type": "git",
"url": "https://github.com/selfxyz/self"
},
"license": "MIT",
"author": "motemotech",
"sideEffects": [
"**/SelfBackendVerifier.js",
"**/SelfBackendVerifier.cjs",
"**/typechain-types/**/*.js",
"**/typechain-types/**/*.cjs",
"**/abi/*.json"
],
"type": "module",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.cts",
"files": [
"dist"
],
"scripts": {
"build": "typechain --target ethers-v6 --node16-modules --out-dir src/typechain-types src/abi/**.json && tsup index.ts --format cjs,esm --dts --clean --sourcemap",
"build:deps": "yarn workspaces foreach --from @selfxyz/core --topological-dev --recursive run build",
"copy-abi": "bash scripts/copyAbi.sh",
"format": "prettier --write .",
"install-sdk": "yarn workspaces focus @selfxyz/core",
"lint": "prettier --check .",
"prepublishOnly": "npm run build",
"publish": "yarn npm publish --access public",
"test": "node -e \"require('./dist/index.cjs'); console.log('Core SDK smoke test: import OK')\"",
"types": "yarn build"
},
"dependencies": {
"@selfxyz/common": "workspace:^",
"ethers": "^6.13.5",
"js-sha1": "^0.7.0",
"js-sha256": "^0.11.0",
"js-sha512": "^0.9.0",
"node-forge": "^1.3.1",
"poseidon-lite": "^0.3.0",
"snarkjs": "^0.7.4",
"uuid": "^11.1.0"
},
"devDependencies": {
"@typechain/ethers-v6": "^0.5.1",
"@types/chai": "^4.3.6",
"@types/chai-as-promised": "^7.1.8",
"@types/circomlibjs": "^0.1.6",
"@types/expect": "^24.3.0",
"@types/mocha": "^10.0.6",
"@types/node": "^22.0.0",
"@types/node-forge": "^1.3.5",
"@types/snarkjs": "^0.7.8",
"@types/uuid": "^10.0.0",
"axios": "^1.7.2",
"prettier": "^3.3.3",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsup": "^8.5.0",
"typechain": "^8.3.2",
"typescript": "^5.9.2"
},
"engines": {
"node": ">=22 <23"
},
"publishConfig": {
"access": "public"
}
}