webcomponents / custom-elements-manifest

A file format for describing custom elements
BSD 3-Clause "New" or "Revised" License
371 stars 27 forks source link

clearly define Path #59

Open jogibear9988 opened 3 years ago

jogibear9988 commented 3 years ago

The path property here:

https://github.com/webcomponents/custom-elements-manifest/blob/e527701c69ebebff1cfb85299bf54d839def0061/schema.d.ts#L52

is? relative to this file or relative to the package.json? has the extension within?

steren commented 2 years ago

With the example added to the README (https://github.com/webcomponents/custom-elements-manifest/pull/91), I am a bit confused about what path should contain:

it seems that the example module is at my-project/my-element.js and the manifest at my-project/custom-elements.json, path it set to "path": "my-project/my-element.js".

I found this surprising, as I was expecting path to use a relative path from where the manifest was located. Since it is in the same folder as the module, I was expecting "path": "my-element.js" instead.

Can you check the example and provide more guidance around path?