Skip to content

Commit

Permalink
Merge pull request #66 from solana-developers/ci-fix
Browse files Browse the repository at this point in the history
ci: fix
  • Loading branch information
nickfrosty authored Nov 8, 2024
2 parents 384fc8c + 1c9a9f6 commit b08ce8d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
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"]
}
}

0 comments on commit b08ce8d

Please sign in to comment.