Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add types property to package.json #4

Open
jpalm-openmind opened this issue Mar 14, 2023 · 2 comments
Open

Add types property to package.json #4

jpalm-openmind opened this issue Mar 14, 2023 · 2 comments

Comments

@jpalm-openmind
Copy link

Please add "types": "core.d.ts" to the main package.json with the next release. At the moment the types property is only set in each subpackages' package.json.

This means the following currently works with TypeScript:
import * as swu from '@sutton-signwriting/core/swu';

But this does not:
import { swu } from '@sutton-signwriting/core';

@jpalm-openmind jpalm-openmind changed the title Add types to package.json Add types property to package.json Mar 14, 2023
@Slevinski
Copy link
Member

Previously, I had the types: core.d.ts in package.json, but it was causing a problem. I removed it in version 1.5.2.

The issue was reported through email. The issue was also causing a problem with font-ttf. I'll need to investigate and try to debug. Not sure when I'll get to this.

@jpalm-openmind
Copy link
Author

Alright., thanks for the explanation. For now I'll just use the * as imports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants