hyperweb-io / hyperweb-io/ts-codegen

allow for simple exporting of bundles

Open
#49 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
126
Forks
31
Avg merge
19m
Merged PRs (30d)
2

Description

scopes can be great, but let's also do something more simple, like this:

```ts
export * as FactoryContract from "./contracts/Factory.client";
export * as GovecContract from "./contracts/Govec.client";
export * as ProxyContract from "./contracts/Proxy.client";
```

https://github.com/nymlab/vectis/blob/b5698087fe08dade8b4ba9492889b6577369e478/cli/types/index.ts

- [ ] there also may be an issue with using `const`? @j0nl1 mentioned here: https://github.com/nymlab/vectis/pull/83#issuecomment-1210906177

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with cli/types/index.ts and the linked export examples to understand how generated contract bundles are currently exposed. Confirm the intended simple export form and investigate the noted const-related concern; done means the requested bundle exports work without relying on scopes and the relevant behavior is covered or verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.