@cartbc/codecs-core
Version:
Core types and helpers for encoding and decoding byte arrays on Cartes
147 lines (146 loc) • 7.12 kB
JSON
{
"name": "@cartbc/codecs-core",
"version": "0.0.4",
"description": "Core types and helpers for encoding and decoding byte arrays on Cartes",
"exports": {
"browser": {
"import": "./src/index.browser.js",
"require": "./src/index.browser.cjs"
},
"node": {
"import": "./src/index.node.js",
"require": "./src/index.node.cjs"
},
"react-native": "./src/index.native.js",
"types": "./src/types/index.d.ts"
},
"browser": {
"./src/index.node.cjs": "./src/index.browser.cjs",
"./src/index.node.js": "./src/index.browser.js"
},
"main": "./src/index.node.cjs",
"module": "./src/index.node.js",
"react-native": "./src/index.native.js",
"types": "./src/types/index.d.ts",
"type": "module",
"files": [
"./src/"
],
"sideEffects": false,
"keywords": [
"blockchain",
"cartbc",
"cartes",
"web3"
],
"author": "Cartallum Holding Tech <tech@cartallums.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/cartallum/codecs-core"
},
"bugs": {
"url": "http://github.com/cartallum/codecs-core/issues"
},
"browserslist": [
"supports bigint and not dead",
"maintained node versions"
],
"engine": {
"node": ">=20.0"
},
"devDependencies": {
"@cartbc/eslint-config-cartes": "^1.0.2",
"@swc/core": "1.3.96",
"@swc/jest": "^0.2.28",
"@types/jest": "^29.5.5",
"@types/node": "^20.9.1",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.3.0",
"agadoo": "^3.0.0",
"assert-helpers": "^11.4.0",
"build-scripts": "2.1.1",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.6.4",
"jest-runner-eslint": "^2.1.0",
"jest-runner-prettier": "^1.0.0",
"kava": "^7.2.0",
"prettier": "^3.1.0",
"projectz": "^3.1.0",
"surge": "^0.23.1",
"test-config": "0.1.1",
"tsconfig": "^5.0.0",
"tsup": "7.2.0",
"typedoc": "^0.25.3",
"typescript": "^5.2.2",
"valid-module": "^2.3.0",
"version-from-git": "^1.1.1"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
{
"path": "./src/index*.js"
}
]
},
"scripts": {
"compile:js": "tsup --config build-scripts/tsup.config.library.ts",
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
"our:clean": "rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
"our:compile": "npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:types",
"our:compile:edition-browsers": "tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )",
"our:compile:edition-es2022": "tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json",
"our:compile:edition-es2022-esm": "tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json",
"our:compile:types": "tsc --project tsconfig.types.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -rf compiled-types && mv edition-temp compiled-types ) )",
"our:deploy": "printf '%s\n' 'no need for this project'",
"our:meta": "npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz",
"our:meta:contributors": "update-contributors",
"our:meta:docs": "npm run our:meta:docs:typedoc",
"our:meta:docs:typedoc": "rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source",
"our:meta:projectz": "projectz compile",
"our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push",
"our:release:check-changelog": "cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)",
"our:release:check-dirty": "git diff --exit-code",
"our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta",
"our:release:push": "git push origin && git push origin --tags",
"our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"",
"our:setup": "npm run our:setup:install",
"our:setup:install": "npm install",
"our:test": "npm run our:verify && npm test",
"our:verify": "npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier",
"our:verify:directory": "valid-directory",
"our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source",
"our:verify:module": "valid-module",
"our:verify:prettier": "prettier --write .",
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
"test": "node ./edition-es2022/test.js",
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
"test:if:browser": "agadoo src/index.browser.js",
"test:if:native": "agadoo src/index.node.js",
"test:if:node": "agadoo src/index.native.js",
"test:typecheck": "tsc --noEmit",
"test:unit:browser": "jest -c node_modules/test-config/jest-unit.config.browser.ts --rootDir . --silent",
"test:unit:node": "jest -c node_modules/test-config/jest-unit.config.node.ts --rootDir . --silent"
},
"eslintConfig": {
"extends": [
"bevry"
]
},
"prettier": {
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
}