@pakk/core
Version:
The core library of pakk, that can manage your package.json for library development.
59 lines • 2.23 kB
TypeScript
import { InternalModuleFormat } from 'rollup';
import { LibraryFormats } from 'vite';
/**
* Where a bundler will place the built artifact, it is assumed that the
* distributed packageJson file will be directly in this directory.
*/
export declare const DEFAULT_OUT_DIR = "dist";
/**
* Where the source files are located in within a package
*/
export declare const DEFAULT_SRC_DIR = "src";
/**
* Where bin entry points are located within the SRC directory
*/
export declare const DEFAULT_BIN_DIR = "bin";
/**
* By default every valid entry is a bin in the bin directory
*/
export declare const DEFAULT_BIN_GLOB = "*";
/**
* Where to place automatic shims for bins, this is relative to the package
* directory and should be outside of SRC as these files are excluded from
* lints/typechecks etc.
*
* Their only purpose is to help package managers while developing a package.
*/
export declare const DEFAULT_BINSHIM_DIR = "shims";
/**
* Which directory relative to SRC + EXPORT_BASEDIR should be treated where all files are
* treated as the interface for your package. In this folder the index.ts/js
* files are treated specially as your main entry points.
*
* By default everything is exported that is directly in this directory except
* directories.
*/
export declare const DEFAULT_PACKAGE_EXPORTS = "*";
/**
* What directory should be considered the 'root' of the package. The 'index'
* file in this directory will be treated as the main export of the package.
*
* By default this is '.' to leave src/index.ts as the main entry point.
*/
export declare const DEFAULT_PACKAGE_EXPORT_BASEDIR = ".";
/**
* By default the exports map won't contain test files.
*/
export declare const DEFAULT_PACKAGE_EXPORT_IGNORES: string[];
/**
* What files should be just copied over to the DIST directory as is and also
* export them.
*/
export declare const DEFAULT_STATIC_EXPORT_GLOBS: string[];
/**
* What formats to expect to be built by default
*/
export declare const DEFAULT_EXPORT_FORMATS: LibraryFormats[];
export declare const ALL_ROLLUP_MODULE_FORMATS: readonly InternalModuleFormat[];
export declare const ALL_VITE_LIBRARY_FORMATS: readonly LibraryFormats[];
//# sourceMappingURL=defaults.const.d.ts.map