Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coobaha/gentype-monorepo-issue
https://github.com/coobaha/gentype-monorepo-issue
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/coobaha/gentype-monorepo-issue
- Owner: Coobaha
- Created: 2019-09-05T07:55:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T01:06:26.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T11:30:24.699Z (about 1 month ago)
- Language: OCaml
- Size: 420 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo shows to issues with gentype
# Setup
`yarn lerna bootstrap`
`yarn lerna link`
`yarn build`## Issues
1. If custom namespace is used gentype outputs incorrect import paths**Steps to reproduce:**
Should be visible after `npx lerna exec build`, if not
1. build `packages/some-package`
1. open `Demo.gen.tsx`**Wrong output**
```typescript
import {Shimed_t as CustomSomePackage_Shimed_t} from './CustomSomePackage.gen';
import {Types_demo as CustomSomePackage_Types_demo} from './CustomSomePackage.gen';
```
**Expected output**
```typescript
import {demo as Types_demo} from './Types.gen';
import {t as Shimed_t} from './Shimed.gen';
```2. If gentype is used in dependant module and compilation is done from app module
**Steps to reproduce:**
1. build `packages/app`
1. open `packages/shim-demo/Demo.gen.tsx`
**Output of compilation `packages/app`**
```typescript
import {t as ToShim_t} from './Shimmed.shim';
```
**Output of local compilation `packages/shim-demo`**
```typescript
import {t as ToShim_t} from '../src/shims/Shimmed.shim';
```