PackageBuild class final
An npm package with native bindings, CJS/ESM entries and TypeScript types.
Builds the current platform. Use PackageBuild.fromArtifacts to assemble previously built native artifacts without invoking the bundled compiler.
Constructors
- PackageBuild({required File entry, required Directory output, required String name, required String version, String? node})
-
PackageBuild.fromArtifacts({required List<
NativeArtifact> artifacts, required Directory output, required String name, required String version})
Properties
-
artifacts
→ List<
NativeArtifact> -
Native artifact manifests to assemble. Empty for source builds.
final
- entry → File?
-
The annotated Dart library, or null when assembling artifacts.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The npm package name, including its optional scope.
final
- node → String?
-
An optional Node.js compatibility range for a source build.
final
- output → Directory
-
The generated package directory.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → String
-
The npm package's semantic version.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited