Skip to content

Commit dd16052

Browse files
ianwiedsclaude
andcommitted
Ensure consuming projects have private: true in package.json
Add project.private = true to setupScripts() so that every time npx mgr setup runs, the consuming project's package.json is marked as private. This prevents accidental npm publishes of consuming projects which are websites, not packages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 94f91f3 commit dd16052

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1515
- `Security` in case of vulnerabilities.
1616

1717
---
18+
## [1.0.3] - 2026-03-16
19+
### Added
20+
- Ensure consuming projects have `"private": true` in package.json during setup to prevent accidental npm publishes
21+
1822
## [1.0.1] - 2026-03-15
1923
### Changed
2024
- Upgrade `node-powertools` from ^2.3.2 to ^3.0.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ultimate-jekyll-manager",
3-
"version": "1.0.1",
3+
"version": "1.0.3",
44
"description": "Ultimate Jekyll dependency manager",
55
"main": "dist/index.js",
66
"exports": {

src/commands/setup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ async function ensurePeerDependencies() {
251251

252252
function setupScripts() {
253253
project.scripts = project.scripts || {};
254+
project.private = true;
254255

255256
Object.keys(package.projectScripts).forEach((key) => {
256257
project.scripts[key] = package.projectScripts[key];

0 commit comments

Comments
 (0)