Skip to content

Commit a91411f

Browse files
committed
Rewire configurations
1 parent 49d1f1e commit a91411f

File tree

13 files changed

+7046
-85
lines changed

13 files changed

+7046
-85
lines changed

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,28 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# builds
14
dist/
5+
6+
# dependencies
7+
node_modules
8+
.pnp
9+
.pnp.js
10+
11+
# misc
12+
.DS_Store
13+
*.pem
14+
15+
# debug
16+
npm-debug.log*
17+
yarn-debug.log*
18+
yarn-error.log*
19+
.pnpm-debug.log*
20+
21+
# turbo
22+
.turbo
23+
24+
# `solana-test-validator`
25+
.solana/
26+
test-ledger/
27+
target/
28+
CHANGELOG.md

.prettierignore

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
dist/
21
test/e2e/
2+
3+
.changeset/
4+
.github/workflows/PULL_REQUEST_TEMPLATE.md
5+
6+
declarations/
7+
dist/
8+
doc/
9+
lib/
310
test-ledger/
411
target/
512
CHANGELOG.md
13+
14+
pnpm-lock.yaml
15+
pnpm-workspace.yaml

eslint.config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import solanaConfig from '@solana/eslint-config-solana';
2+
import { defineConfig } from 'eslint/config';
3+
4+
export default defineConfig([
5+
{ ignores: ['**/dist/**', '**/e2e/**'] },
6+
{ files: ['**/*.ts', '**/*.(c|m)?js'], extends: [solanaConfig] },
7+
]);

package.json

Lines changed: 86 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,90 @@
11
{
2-
"name": "@codama/renderers-demo",
3-
"version": "1.0.1",
4-
"description": "Demo renderer to help creating new ones",
5-
"exports": {
6-
"types": "./dist/types/index.d.ts",
7-
"react-native": "./dist/index.react-native.mjs",
2+
"name": "@codama/renderers-demo",
3+
"version": "1.0.1",
4+
"description": "Demo renderer to help creating new ones",
5+
"exports": {
6+
"types": "./dist/types/index.d.ts",
7+
"react-native": "./dist/index.react-native.mjs",
8+
"browser": {
9+
"import": "./dist/index.browser.mjs",
10+
"require": "./dist/index.browser.cjs"
11+
},
12+
"node": {
13+
"import": "./dist/index.node.mjs",
14+
"require": "./dist/index.node.cjs"
15+
}
16+
},
817
"browser": {
9-
"import": "./dist/index.browser.mjs",
10-
"require": "./dist/index.browser.cjs"
18+
"./dist/index.node.cjs": "./dist/index.browser.cjs",
19+
"./dist/index.node.mjs": "./dist/index.browser.mjs"
20+
},
21+
"main": "./dist/index.node.cjs",
22+
"module": "./dist/index.node.mjs",
23+
"react-native": "./dist/index.react-native.mjs",
24+
"types": "./dist/types/index.d.ts",
25+
"type": "commonjs",
26+
"files": [
27+
"./dist/types",
28+
"./dist/index.*"
29+
],
30+
"sideEffects": false,
31+
"keywords": [
32+
"solana",
33+
"framework",
34+
"standard",
35+
"renderers",
36+
"demo"
37+
],
38+
"scripts": {
39+
"build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
40+
"dev": "vitest --project node",
41+
"lint": "eslint . && prettier --check .",
42+
"lint:fix": "eslint --fix . && prettier --write .",
43+
"test": "pnpm test:types && pnpm test:treeshakability && pnpm test:unit && pnpm test:e2e && pnpm test:exports",
44+
"test:e2e": "./test/e2e/test.sh",
45+
"test:exports": "node ./test/exports/module.mjs && node ./test/exports/commonjs.cjs",
46+
"test:treeshakability": "for file in dist/index.*.mjs; do agadoo $file; done",
47+
"test:types": "tsc --noEmit",
48+
"test:unit": "vitest run"
49+
},
50+
"dependencies": {
51+
"@codama/errors": "^1.3.5",
52+
"@codama/nodes": "^1.3.5",
53+
"@codama/renderers-core": "^1.2.0",
54+
"@codama/visitors-core": "^1.3.5",
55+
"@solana/codecs": "^3.0.3"
56+
},
57+
"devDependencies": {
58+
"@codama/cli": "^1.3.3",
59+
"@changesets/changelog-github": "^0.5.1",
60+
"@changesets/cli": "^2.29.7",
61+
"@solana/eslint-config-solana": "^5.0.0",
62+
"@solana/prettier-config-solana": "0.0.5",
63+
"@types/node": "^24",
64+
"agadoo": "^3.0.0",
65+
"eslint": "^9.35.0",
66+
"happy-dom": "^18.0.1",
67+
"prettier": "^3.6.2",
68+
"rimraf": "6.0.1",
69+
"tsup": "^8.5.0",
70+
"typescript": "^5.9.2",
71+
"vitest": "^3.2.4"
72+
},
73+
"license": "MIT",
74+
"repository": {
75+
"type": "git",
76+
"url": "https://github.com/codama-idl/codama"
77+
},
78+
"bugs": {
79+
"url": "http://github.com/codama-idl/codama/issues"
80+
},
81+
"browserslist": [
82+
"supports bigint and not dead",
83+
"maintained node versions"
84+
],
85+
"engines": {
86+
"node": ">=20.18.0"
1187
},
12-
"node": {
13-
"import": "./dist/index.node.mjs",
14-
"require": "./dist/index.node.cjs"
15-
}
16-
},
17-
"browser": {
18-
"./dist/index.node.cjs": "./dist/index.browser.cjs",
19-
"./dist/index.node.mjs": "./dist/index.browser.mjs"
20-
},
21-
"main": "./dist/index.node.cjs",
22-
"module": "./dist/index.node.mjs",
23-
"react-native": "./dist/index.react-native.mjs",
24-
"types": "./dist/types/index.d.ts",
25-
"type": "commonjs",
26-
"files": [
27-
"./dist/types",
28-
"./dist/index.*"
29-
],
30-
"sideEffects": false,
31-
"keywords": [
32-
"solana",
33-
"framework",
34-
"standard",
35-
"renderers",
36-
"demo"
37-
],
38-
"scripts": {
39-
"build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
40-
"dev": "vitest --project node",
41-
"lint": "eslint . && prettier --check .",
42-
"lint:fix": "eslint --fix . && prettier --write .",
43-
"test": "pnpm test:types && pnpm test:treeshakability && pnpm test:unit && pnpm test:e2e && pnpm test:exports",
44-
"test:e2e": "./test/e2e/test.sh",
45-
"test:exports": "node ./test/exports/module.mjs && node ./test/exports/commonjs.cjs",
46-
"test:treeshakability": "for file in dist/index.*.mjs; do agadoo $file; done",
47-
"test:types": "tsc --noEmit",
48-
"test:unit": "vitest run"
49-
},
50-
"dependencies": {
51-
"@codama/errors": "workspace:*",
52-
"@codama/nodes": "workspace:*",
53-
"@codama/renderers-core": "workspace:*",
54-
"@codama/visitors-core": "workspace:*",
55-
"@solana/codecs": "^3.0.3"
56-
},
57-
"devDependencies": {
58-
"@codama/cli": "workspace:*"
59-
},
60-
"license": "MIT",
61-
"repository": {
62-
"type": "git",
63-
"url": "https://github.com/codama-idl/codama"
64-
},
65-
"bugs": {
66-
"url": "http://github.com/codama-idl/codama/issues"
67-
},
68-
"browserslist": [
69-
"supports bigint and not dead",
70-
"maintained node versions"
71-
]
88+
"packageManager": "[email protected]",
89+
"prettier": "@solana/prettier-config-solana"
7290
}

0 commit comments

Comments
 (0)