Skip to content

fix!: do not auto-discover and run a server.js file on npm start#262

Merged
wraithgar merged 1 commit into
mainfrom
owlstronaut/no-magic-server
Apr 14, 2026
Merged

fix!: do not auto-discover and run a server.js file on npm start#262
wraithgar merged 1 commit into
mainfrom
owlstronaut/no-magic-server

Conversation

@owlstronaut

@owlstronaut owlstronaut commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

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.

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.
@owlstronaut owlstronaut marked this pull request as ready for review April 14, 2026 19:46
@owlstronaut owlstronaut requested a review from a team as a code owner April 14, 2026 19:46
@wraithgar wraithgar changed the title fix!: do not magically find and run a server.js file on start fix!: do not auto-discover and run a server.js file on npm start Apr 14, 2026
@wraithgar wraithgar closed this Apr 14, 2026
@wraithgar wraithgar reopened this Apr 14, 2026
@wraithgar wraithgar merged commit eb54826 into main Apr 14, 2026
34 of 35 checks passed
@wraithgar wraithgar deleted the owlstronaut/no-magic-server branch April 14, 2026 20:37
@github-actions github-actions Bot mentioned this pull request Apr 14, 2026
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>
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.

2 participants