-
fix(repo): use import type for type-only @nx/devkit imports in copy-a… (#35897)
发布于
2026-06-06 00:30:39 +00:00 …ssets plugin
CreateNodesV2 and TargetConfiguration are types but were imported as
values. The @nx/workspace-plugin package is type: module, so under
Node's native TypeScript stripping (Node >= 22.18) those names are left
as runtime imports. @nx/devkit is CommonJS with no such runtime exports,
so the plugin fails to load -- surfacing on the FreeBSD publish job as
the misleading "imported again after being required. Status = 0" Node
error. Marking them import type lets native strip erase them so the
plugin loads on any Node.Current Behavior
Expected Behavior
Related Issue(s)
Fixes #
下载附件