|
1 | 1 | /* eslint-disable @typescript-eslint/no-shadow */
|
2 |
| -import { join } from 'node:path'; |
| 2 | + |
| 3 | +import { dirname, join } from 'node:path'; |
| 4 | +import { existsSync } from 'node:fs'; |
3 | 5 | import {
|
4 |
| - CreateNodesContextV2, |
5 |
| - CreateNodesResult, |
6 |
| - CreateNodesV2, |
7 |
| - ProjectConfiguration, |
8 |
| - TargetConfiguration, |
| 6 | + type CreateNodesContextV2, |
| 7 | + type CreateNodesResult, |
| 8 | + type CreateNodesV2, |
| 9 | + type ProjectConfiguration, |
| 10 | + type TargetConfiguration, |
9 | 11 | createNodesFromFiles,
|
10 | 12 | getPackageManagerCommand,
|
11 | 13 | readJsonFile,
|
12 | 14 | } from '@nx/devkit';
|
13 |
| -import { dirname } from 'node:path'; |
14 |
| -import { existsSync } from 'node:fs'; |
| 15 | + |
| 16 | +import { type PackageJson } from '../types'; |
| 17 | +import { type BuildExecutorSchema } from '../executors/build/schema'; |
15 | 18 |
|
16 | 19 | import { assertProjectExists, projectConfigGlob } from './shared';
|
17 | 20 | import { buildCleanTarget } from './clean-plugin';
|
18 | 21 | import { buildFormatTarget } from './format-plugin';
|
19 | 22 | import { buildTypeCheckTarget } from './type-check-plugin';
|
20 |
| -import { PackageJson } from '../types'; |
21 |
| -import { type BuildExecutorSchema } from '../executors/build/schema'; |
22 | 23 |
|
23 | 24 | interface WorkspacePluginOptions {
|
24 | 25 | // targetName?: string;
|
@@ -235,13 +236,13 @@ function buildVerifyPackagingTarget(
|
235 | 236 | context: CreateNodesContextV2,
|
236 | 237 | config: TaskBuilderConfig,
|
237 | 238 | ): TargetConfiguration | null {
|
238 |
| - if (config.tags.includes('verify-packaging') && !config.packageJSON.private) { |
239 |
| - return { |
240 |
| - executor: '@fluentui/workspace-plugin:verify-packaging', |
241 |
| - }; |
| 239 | + if (config.packageJSON.private) { |
| 240 | + return null; |
242 | 241 | }
|
243 | 242 |
|
244 |
| - return null; |
| 243 | + return { |
| 244 | + executor: '@fluentui/workspace-plugin:verify-packaging', |
| 245 | + }; |
245 | 246 | }
|
246 | 247 |
|
247 | 248 | function buildBundleSizeTarget(
|
|
0 commit comments