Skip to content

Add top-level 'types' property in package.json#2

Open
khajimatov wants to merge 1 commit into
vadimdemedes:mainfrom
khajimatov:main
Open

Add top-level 'types' property in package.json#2
khajimatov wants to merge 1 commit into
vadimdemedes:mainfrom
khajimatov:main

Conversation

@khajimatov

@khajimatov khajimatov commented Jun 30, 2023

Copy link
Copy Markdown

Hey!
I had some issues with types when using astro-selfie, after some research I learned that package.json should contain a top-level types property in order for types to work(link).
Before:
before

After:
after

package.json

{
        "name": "astro-selfie",
        ...
+	"types": "./dist/index.d.ts",
	"repository": "vadimdemedes/astro-selfie",
        ...
}

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

Successfully merging this pull request may close these issues.

1 participant