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

Handle case when spec shortname is "package" #472

Open
tidoust opened this issue Jan 31, 2022 · 0 comments
Open

Handle case when spec shortname is "package" #472

tidoust opened this issue Jan 31, 2022 · 0 comments

Comments

@tidoust
Copy link
Member

tidoust commented Jan 31, 2022

Via #468 (comment)

While we don't have such a spec for the time being, a future spec could take the shortname package. If such a spec exists and defines CSS, elements, or any other content that ends up in a JSON extract to be included in an NPM package, we'll end up with a conflict because NPM packages already contain a package.json file.

The right solution is probably to move all extracts in NPM packages to a subfolder instead of at the root level.

A not-so-right solution would be to force a different shortname in such a case but then some projects may rely on file extracts being named after the real spec's shortname.

A very convenient approach would be to claim that this won't happen and defer resolution until we actually face the issue...

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

1 participant