-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathcodama.mjs
More file actions
36 lines (34 loc) · 973 Bytes
/
codama.mjs
File metadata and controls
36 lines (34 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { execSync } from 'node:child_process';
const nightly = execSync('make --no-print-directory rust-toolchain-nightly').toString().trim();
export default {
idl: 'idl.json',
before: [],
scripts: {
js: {
from: '@codama/renderers-js',
args: [
'clients/js',
{
kitImportStrategy: 'rootOnly',
prettierOptions: {
arrowParens: 'avoid',
printWidth: 120,
singleQuote: true,
tabWidth: 4,
},
},
],
},
rust: {
from: '@codama/renderers-rust',
args: [
'clients/rust',
{
anchorTraits: false,
formatCode: true,
toolchain: `+${nightly}`,
},
],
},
},
};