Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konnorrogers/cem-typescript-issue
Reproduction of CEM + TypeScript resolution issue
https://github.com/konnorrogers/cem-typescript-issue
Last synced: 5 days ago
JSON representation
Reproduction of CEM + TypeScript resolution issue
- Host: GitHub
- URL: https://github.com/konnorrogers/cem-typescript-issue
- Owner: KonnorRogers
- License: mit
- Created: 2023-10-10T07:55:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-10T07:55:33.000Z (about 1 year ago)
- Last Synced: 2024-10-24T06:11:57.640Z (20 days ago)
- Language: JavaScript
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Purpose
CEM bug reproduction for using TypeScript + JSDoc.
## Installation
```
git clone https://github.com/konnorrogers/cem-typescript-issue
cd cem-typescript-issue
npm install
npm run analyze
# check custom-elements.json
```## Explanation
There are 3 scenarios when `custom-elements.json` fails to generate, and 1 scenario where it
properly generates.### Success
- `dependencies: false`, no override on module creation. No error messages.
### Failures
Failures are defined as an empty `custom-elements.json`
1. `dependencies: true`, No override on module creation. The `custom-elements.json` appears correctly, but the console has an error about resolution.
1. `dependencies: false`, `overrideModuleCreation` set to `ts.createProgram`. Says successfully created and no error message, but the `custom-elements.json` is empty.
1. `dependencies: true`, `overrideModuleCreation` set to `ts.createProgram`. Says successfully created, has an error message, and the `custom-elements.json` is empty.## Extras
`node doc-generator.js` is a typescript program showing its resolving properly.