Skip to content

fix: make asinit exit if package.json has a "type" not equal to "module" #2938

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

Merged
merged 1 commit into from
Aug 5, 2025

Conversation

CountBleck
Copy link
Member

Fixes AssemblyScript/website#237. When the "type" field isn't specified, or if package.json doesn't exist, it's already set to "module". This removes the remaining hole when "type" is set to, say, "commonjs", by refusing to continue.

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@CountBleck CountBleck changed the title Make asinit exit if package.json has a "type" not equal to "module" fix: make asinit exit if package.json has a "type" not equal to "module" Aug 4, 2025
Fixes AssemblyScript/website#237. When the "type" field isn't specified,
or if package.json doesn't exist, it's already set to "module". This
removes the remaining hole when "type" is set to, say, "commonjs", by
refusing to continue.
@HerrCai0907 HerrCai0907 merged commit 6cd638e into AssemblyScript:main Aug 5, 2025
14 checks passed
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.

Prevent error when running 'npm start' in a new proyect
2 participants