-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathcodama.mjs
More file actions
42 lines (40 loc) · 1.19 KB
/
codama.mjs
File metadata and controls
42 lines (40 loc) · 1.19 KB
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
37
38
39
40
41
42
import path from 'node:path';
import { config } from 'dotenv';
config({ path: path.resolve(process.cwd(), 'vars.env') });
export default {
idl: 'program/idl.json',
before: [],
scripts: {
js: {
from: '@codama/renderers-js',
args: [
'clients/js/src/generated',
{
packageFolder: 'clients/js',
syncPackageJson: true,
},
],
},
rust: [
{
from: '@codama/visitors-core#deleteNodesVisitor',
args: [['[definedTypeNode]configKeys']],
},
{
from: '@codama/renderers-rust',
args: [
'clients/rust',
{
anchorTraits: false,
crateFolder: 'clients/rust',
formatCode: true,
linkOverrides: {
definedTypes: { configKeys: 'hooked' },
},
toolchain: `+${process.env.RUST_TOOLCHAIN_NIGHTLY}`,
},
],
},
],
},
};