UNPKG

@pakk/core

Version:

The core library of pakk, that can manage your package.json for library development.

31 lines 1.33 kB
import { PackageJson, RegularWorkspacePackage } from '@alexaegis/workspace-tools'; import { NormalizedPakkContext } from '../../index.js'; import { PackageJsonKindType } from '../../package-json/index.js'; import { PakkFeature } from '../pakk-feature.type.js'; export declare const pakkDirectivePrefix = "pakk:"; export declare const pakkDirectiveNotDistributed = "pakk:not-distributed"; export declare const everyPakkDirective: readonly ["pakk:not-distributed"]; /** * Processes pakk directives in the packageJson. They are strings that could * be present at either on a key or on a value. They can start with a # to let * them be interpreted as comments by the shell. * * - pakk:not-distributed will remove the entry when compiling the distributed * package.json. When placed on a postinstall script, its effect will be * similar to what `pinst` does. * * ```json * { * "scripts": { * "postinstall": "svelte-kit sync # pakk:not-distributed", * } * } * ``` */ export declare class AutoDirective implements PakkFeature { readonly order = 5; private readonly context; constructor(context: NormalizedPakkContext); postprocess(workspacePackage: RegularWorkspacePackage, packageJsonKind: PackageJsonKindType): PackageJson; } //# sourceMappingURL=auto-directive.class.d.ts.map