Skip to content

Commit

Permalink
fix: publish config
Browse files Browse the repository at this point in the history
  • Loading branch information
joelcox22 committed Mar 9, 2024
1 parent 9546f63 commit 6704012
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@
"branches": [
"main"
]
},
"publishConfig": {
"access": "public"
}
}
4 changes: 4 additions & 0 deletions packages/lint/linters/semantic-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ function applySemanticReleaseConfig(file = 'package.json') {
branches: ['main'],
};
packageJson.private = false;
packageJson.publishConfig = {
access: 'public',
};
} else {
debug('semantic-release is not a devDependency, ensuring config is removed');
delete packageJson.release;
packageJson.private = true;
delete packageJson.publishConfig;
}
}
if (Object.keys(packageJson.dependencies).length === 0) {
Expand Down
3 changes: 3 additions & 0 deletions packages/lint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@
"branches": [
"main"
]
},
"publishConfig": {
"access": "public"
}
}

0 comments on commit 6704012

Please sign in to comment.