Skip to content

Commit 40a8c0b

Browse files
committed
build: .js for all imports
1 parent fc97245 commit 40a8c0b

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

packages/rpc/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/* eslint-disable import/extensions */
2-
export * from './src/chainStorageWatcher';
3-
export * from './src/types';
2+
export * from './src/chainStorageWatcher.js';
3+
export * from './src/types.js';

packages/rpc/src/chainStorageWatcher.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-disable no-use-before-define */
22
/* eslint-disable import/extensions */
3-
import { makeClientMarshaller } from './marshal';
4-
import { AgoricChainStoragePathKind } from './types';
5-
import { vstorageQuery, keyToPath, pathToKey } from './vstorageQuery';
6-
import type { UpdateHandler } from './types';
3+
import { makeClientMarshaller } from './marshal.js';
4+
import { AgoricChainStoragePathKind } from './types.js';
5+
import { vstorageQuery, pathToKey } from './vstorageQuery.js';
6+
import type { UpdateHandler } from './types.js';
77

88
type Subscriber<T> = {
99
onUpdate: UpdateHandler<T>;

packages/rpc/src/vstorageQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import axios from 'axios';
33
// eslint-disable-next-line import/no-extraneous-dependencies
44
import axiosRetry from 'axios-retry';
55
import type { FromCapData } from '@endo/marshal';
6-
import { AgoricChainStoragePathKind } from './types';
6+
import { AgoricChainStoragePathKind } from './types.js';
77

88
export const pathToKey = (path: [AgoricChainStoragePathKind, string]) =>
99
path.join('.');

packages/rpc/test/chainStorageWatcher.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
/* eslint-disable import/extensions */
33
import { expect, it, describe, beforeEach, vi, afterEach } from 'vitest';
44
import MockAdapter from 'axios-mock-adapter';
5-
import { makeAgoricChainStorageWatcher } from '../src/chainStorageWatcher';
6-
import { axiosClient } from '../src/vstorageQuery';
7-
import { AgoricChainStoragePathKind } from '../src/types';
5+
import { makeAgoricChainStorageWatcher } from '../src/chainStorageWatcher.js';
6+
import { axiosClient } from '../src/vstorageQuery.js';
7+
import { AgoricChainStoragePathKind } from '../src/types.js';
88

99
global.harden = val => val;
1010

packages/rpc/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable import/extensions */
22
import { mergeConfig } from 'vite';
33
import { defineConfig } from 'vitest/config';
4-
import viteConfig from './vite.config';
4+
import viteConfig from './vite.config.js';
55

66
export default mergeConfig(
77
viteConfig,

packages/web-components/src/dapp-wallet-bridge/DappWalletBridge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { html, LitElement } from 'lit';
33
import { assert, details as X } from '@agoric/assert';
44

55
// Ambient types. https://github.com/Agoric/agoric-sdk/issues/6512
6-
import '@agoric/zoe/src/zoeService/types';
6+
import '@agoric/zoe/src/zoeService/types.js';
77

88
// This site tells the component the URL to load the wallet bridge from. For
99
// development, the form on this site can be changed to point the dapp to a

0 commit comments

Comments
 (0)