mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 14:48:06 -05:00
* Add tree-shakeable exports * Migrate imports for tree-shakeable paths * Document ESM extension requirement * udpates * install new lock * yarn nice * build deps * save working index export no wildcard approach * save wip * fix building * add tree shaking doc and examples * sort package json files * update package.json * fix analyzing web * make sure that web is built * wip tree shaking * building works again. save wip logic * use granular imports * wip test * save wip * Remove hardcoded .d.ts files and setup automatic TypeScript declaration generation - Remove redundant constants.d.ts, types.d.ts, utils.d.ts files - Add build:types script to automatically generate TypeScript declarations - Update tsup config to disable DTS generation (handled separately) - Update .gitignore to prevent future commits of generated .d.ts files - Fixes import resolution errors in app by ensuring declarations are always generated * Add .gitignore rules for generated TypeScript declarations * ignore dts files * Remove redundant index.js re-export files - Remove constants.js, types.js, utils.js as they're redundant with tsup build - These were just re-exports pointing to dist files that tsup generates - package.json exports already point directly to built files - Update .gitignore to prevent future commits of these generated files - tsup handles all the building, no manual re-export files needed * save current wip fixes * add tsup config for web building * common prettier and fix imports * prettier * fix tests * implement level 3 tree shaking * improve splitting * optimize vite web building and prettier * remove comments * sort export params * feedback and fix pipelines * fix circuit-names path * fix test * fix building * sort * fix building * allow cursor to edit scripts * fix loadDocumentCatalog undefined * fix build settings * fix build settings * additional metro tree shaking * improved discovery script for xcode building * pr feedback and fix camelCasing * simplify shim setup * fix xcode building and add command to test building * remove comment * simplify
82 lines
2.2 KiB
JSON
82 lines
2.2 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",
|
|
"types": "yarn build"
|
|
},
|
|
"dependencies": {
|
|
"@selfxyz/common": "workspace:^",
|
|
"@types/uuid": "^10.0.0",
|
|
"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": "^20.11.19",
|
|
"@types/node-forge": "^1.3.5",
|
|
"@types/pako": "^2.0.3",
|
|
"@types/snarkjs": "^0.7.8",
|
|
"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.4.5"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|