Skip to content

Commit

Permalink
Fix escrow anchor (#119)
Browse files Browse the repository at this point in the history
* Skip ignoring spl2.0 dependency issue (#2)

* add esm support
  • Loading branch information
heyAyushh authored Sep 6, 2024
1 parent 9750528 commit 8f894a3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tokens/escrow/anchor/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extension": ["ts"],
"spec": "tests/**/*.ts",
"require": "ts-node/register",
"node-option": ["experimental-specifier-resolution=node", "loader=ts-node/esm"]
}
4 changes: 4 additions & 0 deletions tokens/escrow/anchor/register.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { register } from 'node:module';
import { pathToFileURL } from 'node:url';

register('ts-node/esm', pathToFileURL('./'));

0 comments on commit 8f894a3

Please sign in to comment.