diff --git a/Makefile b/Makefile index 50ee4971..4de5377b 100644 --- a/Makefile +++ b/Makefile @@ -40,9 +40,18 @@ clippy-%: --deny=clippy::manual_let_else \ --deny=clippy::used_underscore_binding $(ARGS) +format-check-js-%: + cd $(call make-path,$*) && pnpm install && pnpm format $(ARGS) + format-check-%: cargo $(nightly) fmt --check --manifest-path $(call make-path,$*)/Cargo.toml $(ARGS) +lint-js-%: + cd $(call make-path,$*) && pnpm install && pnpm lint $(ARGS) + +test-js-%: + cd $(call make-path,$*) && pnpm install && pnpm build && pnpm test $(ARGS) + powerset-%: cargo $(nightly) hack check --feature-powerset --all-targets --manifest-path $(call make-path,$*)/Cargo.toml $(ARGS) @@ -76,15 +85,6 @@ build-doc-%: test-doc-%: cargo $(nightly) test --doc --all-features --manifest-path $(call make-path,$*)/Cargo.toml $(ARGS) -format-check-js-%: - cd $(call make-path,$*) && pnpm install && pnpm format $(ARGS) - -lint-js-%: - cd $(call make-path,$*) && pnpm install && pnpm lint $(ARGS) - -test-js-%: - cd $(call make-path,$*) && pnpm install && pnpm build && pnpm test $(ARGS) - test-%: SBF_OUT_DIR=$(PWD)/target/deploy cargo $(nightly) test --manifest-path $(call make-path,$*)/Cargo.toml $(ARGS) diff --git a/README.md b/README.md index e95be8ce..7cc3989f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # SPL Token - + diff --git a/codama.json b/codama.json deleted file mode 100644 index 828e4f1a..00000000 --- a/codama.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "idl": "program/idl.json", - "before": [], - "scripts": { - "js": { - "from": "@codama/renderers-js", - "args": ["clients/js", { "kitImportStrategy": "rootOnly", "syncPackageJson": true }] - } - } -} diff --git a/codama.mjs b/codama.mjs new file mode 100644 index 00000000..0fd74bca --- /dev/null +++ b/codama.mjs @@ -0,0 +1,10 @@ +export default { + idl: 'idl.json', + before: [], + scripts: { + js: { + from: '@codama/renderers-js', + args: ['clients/js', { kitImportStrategy: 'rootOnly', syncPackageJson: true }], + }, + }, +}; diff --git a/program/idl.json b/idl.json similarity index 100% rename from program/idl.json rename to idl.json