Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix #66

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions src/lib/keypair.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const keypairToSecretKeyJSON = (keypair: Keypair): string => {

export const getKeypairFromFile = async (filepath?: string) => {
// Node-specific imports
// @ts-expect-error TODO: fix the warning rather than disabling it when we have time
const path = await import("node:path");
// Work out correct file name
if (!filepath) {
Expand All @@ -27,7 +26,6 @@ export const getKeypairFromFile = async (filepath?: string) => {
let fileContents: string;
try {
// Node-specific imports
// @ts-expect-error TODO: fix the warning rather than disabling it when we have time
const { readFile } = await import("node:fs/promises");
const fileContentsBuffer = await readFile(filepath);
fileContents = fileContentsBuffer.toString();
Expand Down Expand Up @@ -86,7 +84,6 @@ export const addKeypairToEnvFile = async (
envFileName?: string,
) => {
// Node-specific imports
// @ts-expect-error TODO: fix the warning rather than disabling it when we have time
const { appendFile } = await import("node:fs/promises");
if (!envFileName) {
envFileName = ".env";
Expand All @@ -105,4 +102,4 @@ export const addKeypairToEnvFile = async (
// Shout out to Dean from WBA for this technique
export const makeKeypairs = (amount: number): Array<Keypair> => {
return Array.from({ length: amount }, () => Keypair.generate());
};
};
7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "ES2018",
"lib": ["ES2018", "DOM"],
"target": "ES2022",
"module": "ES2022",
"lib": ["ES2022", "DOM"],
"moduleResolution": "node",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
Expand All @@ -13,4 +14,4 @@
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}
}
Loading