Skip to content

Conversation

marvinhagemeister
Copy link
Collaborator

JSR packages only work with type: "module" so it makes sense that the cli tool sets that up automatically for the user.


if (projectInfo.pkgJsonPath !== null) {
const pkgJson = await readJson<PkgJson>(projectInfo.pkgJsonPath);
if (pkgJson.type !== "module") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if commonjs is already setup IMO it's should throw a warn

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.

3 participants