@codama/renderers-js
Version:
JavaScript renderer compatible with the Solana Kit library
101 lines • 3.6 kB
JSON
{
"name": "@codama/renderers-js",
"version": "2.4.0",
"description": "JavaScript renderer compatible with the Solana Kit library",
"keywords": [
"client",
"framework",
"js",
"renderers",
"solana",
"standard"
],
"bugs": {
"url": "http://github.com/codama-idl/renderers-js/issues"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/codama-idl/renderers-js"
},
"files": [
"./dist/types",
"./dist/index.*"
],
"type": "commonjs",
"sideEffects": false,
"main": "./dist/index.node.cjs",
"module": "./dist/index.node.mjs",
"browser": {
"./dist/index.node.cjs": "./dist/index.browser.cjs",
"./dist/index.node.mjs": "./dist/index.browser.mjs"
},
"types": "./dist/types/index.d.ts",
"react-native": "./dist/index.react-native.mjs",
"exports": {
"types": "./dist/types/index.d.ts",
"react-native": "./dist/index.react-native.mjs",
"browser": {
"import": "./dist/index.browser.mjs",
"require": "./dist/index.browser.cjs"
},
"node": {
"import": "./dist/index.node.mjs",
"require": "./dist/index.node.cjs"
}
},
"dependencies": {
"@codama/errors": "^1.10.0",
"@codama/nodes": "^1.10.0",
"@codama/renderers-core": "^1.3.11",
"@codama/visitors-core": "^1.10.0",
"@solana/codecs-strings": "^7.0.0",
"prettier": "^3.8.1",
"semver": "^7.7.3"
},
"devDependencies": {
"@changesets/changelog-github": "^1.0.0",
"@changesets/cli": "^3.0.0",
"@codama/cli": "^1.6.0",
"@codama/nodes-from-anchor": "^1.5.3",
"@solana-config/oxc": "^0.1.1",
"@solana/kit": "^6.10.0",
"@solana/kit-plugin-litesvm": "0.12.1",
"@solana/kit-plugin-signer": "0.12.1",
"@types/node": "^26",
"@types/semver": "^7.7.1",
"agadoo": "^3.0.0",
"happy-dom": "^20.0.0",
"oxfmt": "^0.55.0",
"oxlint": "^1.70.0",
"oxlint-tsgolint": "^0.23.0",
"rimraf": "6.1.3",
"tsup": "^8.5.0",
"typescript": "^7.0.2",
"vitest": "^4.0.1"
},
"browserslist": [
"supports bigint and not dead",
"maintained node versions"
],
"engines": {
"node": ">=20.18.0"
},
"scripts": {
"build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
"build:e2e": "rimraf test/e2e/dist test/e2e/node-esm/dist && tsup --config test/e2e/tsup.config.ts && tsc --noEmit -p test/e2e/tsconfig.json && tsc -p test/e2e/tsconfig.node-esm.json",
"dev": "vitest --project node",
"generate:e2e": "codama run --all --config test/e2e/anchor/codama.json && codama run --all --config test/e2e/dummy/codama.json && codama run --all --config test/e2e/memo/codama.json && codama run --all --config test/e2e/node-esm/codama.json && codama run --all --config test/e2e/system/codama.json && codama run --all --config test/e2e/token/codama.json",
"format": "oxfmt --check",
"format:fix": "oxfmt",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"publish-package": "pnpm build && changeset publish",
"test": "pnpm test:types && pnpm test:treeshakability && pnpm test:unit && pnpm test:e2e && pnpm test:exports",
"test:e2e": "pnpm build && pnpm generate:e2e && pnpm build:e2e && vitest run --config test/e2e/vitest.config.mts && node test/e2e/node-esm/dist/compatibility.js && node test/e2e/node-esm/run-type-stripping.cjs",
"test:exports": "node ./test/exports/module.mjs && node ./test/exports/commonjs.cjs",
"test:treeshakability": "for file in dist/index.*.mjs; do agadoo $file; done",
"test:types": "tsc --noEmit",
"test:unit": "vitest run"
}
}