chore(repo): hide vite from being pubished publically (#13060)
This commit is contained in:
parent
8c7ecff6c2
commit
cb0ccea9a8
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@nrwl/vite",
|
"name": "@nrwl/vite",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": false,
|
"private": true,
|
||||||
"description": "The Nx Plugin for building and testing applications using Vite (Early Release)",
|
"description": "The Nx Plugin for building and testing applications using Vite (Early Release)",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@ -36,6 +36,24 @@ function hideFromGitIndex(uncommittedFiles: string[]) {
|
|||||||
stdio: [0, 1, 2],
|
stdio: [0, 1, 2],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (options.local) {
|
||||||
|
// Force all projects to be not private
|
||||||
|
const projects = JSON.parse(
|
||||||
|
execSync('npx lerna list --json --all').toString()
|
||||||
|
);
|
||||||
|
for (const proj of projects) {
|
||||||
|
if (proj.private) {
|
||||||
|
console.log('Publishing private package locally:', proj.name);
|
||||||
|
const packageJsonPath = join(proj.location, 'package.json');
|
||||||
|
const original = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
|
||||||
|
writeFileSync(
|
||||||
|
packageJsonPath,
|
||||||
|
JSON.stringify({ ...original, private: false })
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const versionOptions = {
|
const versionOptions = {
|
||||||
bump: options.version ? options.version : undefined,
|
bump: options.version ? options.version : undefined,
|
||||||
conventionalCommits: true,
|
conventionalCommits: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user