fix!: do not auto-discover and run a server.js file on npm start#262
Merged
Conversation
BREAKING CHANGE: If a package has a server.js file but no start script, it will no longer be automatically run when the start event is triggered. This change removes the implicit behavior of running server.js and requires an explicit start script to be defined in the package.json.
npm start
wraithgar
approved these changes
Apr 14, 2026
Merged
owlstronaut
pushed a commit
that referenced
this pull request
Jun 15, 2026
🤖 I have created a release *beep* *boop* --- ## [11.0.0](v10.0.4...v11.0.0) (2026-06-15) ###⚠️ BREAKING CHANGES * `@npmcli/run-script` now supports node `^22.22.2 || ^24.15.0 || >=26.0.0` * template-oss-apply * If a package has a server.js file but no start script, it will no longer be automatically run when the start event is triggered. This change removes the implicit behavior of running server.js and requires an explicit start script to be defined in the package.json. * the banner that shows the command being ran has been moved to a log event ### Features * [`88cce50`](88cce50) [#277](#277) bump to new node engine range (@owlstronaut) * [`2b1f2f4`](2b1f2f4) [#277](#277) template-oss-apply (@owlstronaut) * [`99150de`](99150de) [#264](#264) make banner info a log event (@wraithgar) ### Bug Fixes * [`eb54826`](eb54826) [#262](#262) do not auto-discover and run a server.js file on `npm start` (#262) (@owlstronaut) * [`babf6cc`](babf6cc) [#264](#264) rename variable (@wraithgar) ### Dependencies * [`539bb6b`](539bb6b) [#277](#277) `node-gyp@13.0.0` * [`cbe988e`](cbe988e) [#277](#277) `proc-log@7.0.0` * [`cec9fc0`](cec9fc0) [#277](#277) `@npmcli/promise-spawn@10.0.0` * [`d6287df`](d6287df) [#277](#277) `@npmcli/package-json@8.0.0` * [`c5f38b0`](c5f38b0) [#277](#277) `@npmcli/node-gyp@6.0.0` ### Chores * [`f5be71c`](f5be71c) [#277](#277) `@npmcli/eslint-config@7.0.0` (@owlstronaut) * [`1e839aa`](1e839aa) [#277](#277) template-oss-apply (@owlstronaut) * [`88e6692`](88e6692) [#277](#277) bumping @npmcli/template-oss from 4.30.0 to 5.1.0 (@owlstronaut) * [`8125088`](8125088) [#265](#265) updateNpm: false (#265) (@wraithgar) * [`73909c5`](73909c5) [#263](#263) bump @npmcli/template-oss from 4.29.0 to 4.30.0 (#263) (@dependabot[bot], @npm-cli-bot) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE: If a package has a server.js file but no start script, it will no longer be automatically run when the start event is triggered. This change removes the implicit behavior of running server.js and requires an explicit start script to be defined in the package.json.