We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e500f8 commit 50a05fcCopy full SHA for 50a05fc
1 file changed
src/options.ts
@@ -1,4 +1,5 @@
1
import fs from 'node:fs';
2
+import path from 'node:path';
3
import { getPackages } from '@manypkg/get-packages';
4
import chalk from 'chalk';
5
import inquirer from 'inquirer';
@@ -106,7 +107,14 @@ async function findPackages(opts: ReleaseOptions) {
106
107
throw new Error('No root package found.');
108
}
109
// ignore private
- const packages = _packages.filter(s => !s.packageJson.private);
110
+
111
+ const packages = _packages.filter(s => {
112
+ if (s.packageJson.private) {
113
+ return false;
114
+ }
115
+ const dirname = path.dirname(s.relativeDir);
116
+ return !['example', 'examples'].includes(dirname);
117
+ });
118
119
let isMonorepo = false;
120
if (packages.length === 0) {
0 commit comments