Skip to content

Commit

Permalink
feat(ts): adds missing exports (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Apr 12, 2024
1 parent 08fedd6 commit 458c733
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/script/generate-exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ const paths = files.reduce(
if (match) {
const dottedPath = match[1];
const slashedPath = dottedPath.replace(/\./g, '/');
const resolvedPath = `./dist/generated/index.${dottedPath}`;
const resolvedPath = fs.existsSync(`./dist/patch/index.${dottedPath}.js`)
? `./dist/patch/index.${dottedPath}`
: `./dist/generated/index.${dottedPath}`;

acc.tsconfig[`@akashnetwork/akash-api/${slashedPath}`] = [resolvedPath];
acc.package[`./${slashedPath}`] = `${resolvedPath}.js`;
Expand Down
3 changes: 3 additions & 0 deletions ts/src/patch/index.akash.base.v1beta3.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from '../generated/index.akash.base.v1beta3';
export * from '../generated/akash/base/v1beta3/storage';
export * from '../generated/akash/base/v1beta3/gpu';
3 changes: 3 additions & 0 deletions ts/src/patch/index.akash.base.v1beta4.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from '../generated/index.akash.base.v1beta3';
export * from '../generated/akash/base/v1beta3/storage';
export * from '../generated/akash/base/v1beta3/gpu';
3 changes: 3 additions & 0 deletions ts/src/patch/index.akash.deployment.v1beta2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from '../generated/index.akash.deployment.v1beta2';
export * from '../generated/akash/deployment/v1beta2/groupmsg';
export * from '../generated/akash/deployment/v1beta2/deploymentmsg';
3 changes: 3 additions & 0 deletions ts/src/patch/index.akash.deployment.v1beta3.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from '../generated/index.akash.deployment.v1beta3';
export * from '../generated/akash/deployment/v1beta3/groupmsg';
export * from '../generated/akash/deployment/v1beta3/deploymentmsg';

0 comments on commit 458c733

Please sign in to comment.