UNPKG

@alessiofrittoli/node-scripts

Version:
17 lines (15 loc) 637 B
/** * Executes the publish process for a project. * * This function performs the following steps: * 1. Retrieves the project's `package.json` file. * 2. Retrieves process options and sets various publish parameters. * 3. Validates the version and access options. * 4. Determines the Git origin for pushing tags. * 5. Builds the project, creates a Git tag, pushes the tag, and optionally publishes to npm. * 6. Logs the publish details if verbose mode is enabled. * * @throws Will exit the process with code 1 if any critical error occurs during the publish process. */ declare const publish: () => void; export { publish };