Skip to content

Commit

Permalink
fix(nx-auto): set default publishConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwremmel committed Feb 12, 2023
1 parent 58e4f8a commit ead0adb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/@code-like-a-carpenter/env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@
"npm": "8.x"
},
"homepage": "https://www.github.com/code-like-a-carpenter/workbench/tree/main/packages/@code-like-a-carpenter/env",
"repository": "[email protected]:code-like-a-carpenter/workbench.git"
"repository": "[email protected]:code-like-a-carpenter/workbench.git",
"publishConfig": {
"access": "public"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ async function config(packageName) {
pkg.repository = rootPackageJson.repository;
pkg.types = 'dist/types';

if (pkg.publishConfig?.access !== false) {
pkg.publishConfig = {
...pkg.publishConfig,
access: 'public',
};
}

await writePackageJson(packageName, pkg);
}

Expand Down

0 comments on commit ead0adb

Please sign in to comment.