custom-elements-manifest icon indicating copy to clipboard operation
custom-elements-manifest copied to clipboard

clearly define Path

Open jogibear9988 opened this issue 3 years ago • 1 comments

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?

jogibear9988 avatar May 24 '21 19:05 jogibear9988

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?

steren avatar Dec 27 '21 22:12 steren