From 0eab6a865420ddb15afc157ab96e7bc32351c1dc Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Tue, 30 Apr 2024 09:39:07 -0700 Subject: [PATCH] build: use subpath patterns --- packages/cosmic-proto/package.json | 18 +++++++++--------- .../src/exos/stakingAccountKit.js | 2 +- packages/orchestration/src/utils/tx.js | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/cosmic-proto/package.json b/packages/cosmic-proto/package.json index d31c672be265..8e437ed46c44 100644 --- a/packages/cosmic-proto/package.json +++ b/packages/cosmic-proto/package.json @@ -24,17 +24,17 @@ "default": "./dist/vatsafe.js" }, "./package.json": "./package.json", - "./cosmos/*": { - "types": "./dist/codegen/cosmos/*/*.d.ts", - "default": "./dist/codegen/cosmos/*/*.js" + "./cosmos/*.js": { + "types": "./dist/codegen/cosmos/*.d.ts", + "default": "./dist/codegen/cosmos/*.js" }, - "./ibc/applications/transfer/v1/tx.js": { - "types": "./dist/codegen/ibc/applications/transfer/v1/tx.d.ts", - "default": "./dist/codegen/ibc/applications/transfer/v1/tx.js" + "./google/*.js": { + "types": "./dist/codegen/google/*.d.ts", + "default": "./dist/codegen/google/*.js" }, - "./google/protobuf/any": { - "types": "./dist/codegen/google/protobuf/any.d.ts", - "default": "./dist/codegen/google/protobuf/any.js" + "./ibc/*.js": { + "types": "./dist/codegen/ibc/*.d.ts", + "default": "./dist/codegen/ibc/*.js" }, "./swingset/msgs.js": { "types": "./dist/codegen/agoric/swingset/msgs.d.ts", diff --git a/packages/orchestration/src/exos/stakingAccountKit.js b/packages/orchestration/src/exos/stakingAccountKit.js index 3df1c3019b2e..5c6f003475a1 100644 --- a/packages/orchestration/src/exos/stakingAccountKit.js +++ b/packages/orchestration/src/exos/stakingAccountKit.js @@ -11,7 +11,7 @@ import { M, prepareExoClassKit } from '@agoric/vat-data'; import { TopicsRecordShape } from '@agoric/zoe/src/contractSupport/index.js'; import { decodeBase64 } from '@endo/base64'; import { E } from '@endo/far'; -import { Any } from '@agoric/cosmic-proto/google/protobuf/any'; +import { Any } from '@agoric/cosmic-proto/google/protobuf/any.js'; /** * @import { ChainAccount, ChainAddress } from '../types.js'; diff --git a/packages/orchestration/src/utils/tx.js b/packages/orchestration/src/utils/tx.js index a53e9ee2b040..bd74fd15bcc7 100644 --- a/packages/orchestration/src/utils/tx.js +++ b/packages/orchestration/src/utils/tx.js @@ -1,7 +1,7 @@ // @ts-check import { TxBody } from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js'; import { encodeBase64 } from '@endo/base64'; -import { Any } from '@agoric/cosmic-proto/google/protobuf/any'; +import { Any } from '@agoric/cosmic-proto/google/protobuf/any.js'; /** * Makes an IBC packet from an array of messages. Expects the `value` of each message