Skip to main content

projen-utils

This project contains a couple of constructs which are meant to be used with the projen project. These utilities extend existing projen constructs to enable easier development of TypeScript ESM projects/packages as well as handling pre-commit configuration in projen-managed projects.

Badges

GitHub top language GitHub License GitHub Release GitHub commit activity GitHub Issues or Pull Requests GitHub Issues or Pull Requests

GitHub Actions Workflow Status GitHub Actions Workflow Status

NPM Version NPM Last Update NPM Downloads

Table of Contents

Installation

Install using npm, yarn, or pnpm (preferred).

pnpm add --save-dev @ncfour-us/projen-utils

Getting Started

Documentation on constructs.dev: @ncfour-us/projen-utils

Project documentation: @ncfour-us/projen-utils

The TypeScriptESMProject supports both "local" and "Github workflow" styles of build/release handling. (NOTE: "Github workflow" handling is still under development).

Local build and release processing

With "local" style builds/releases, a project is managed from a user's workstation terminal interface, using the pnpm build and pnpm release commands.

Support exists for publishing build artifacts to:

  • "local" archive (a folder on the local workstation)
  • "npm" package registry (the NPM Package registry)
  • "github" creating tagged releases in the associated Github-hosted Git repository

There are some preparatory steps required before publishing to NPM and Github will work.

For publishing to NPM, the package MUST have first been created in NPM by a manual publishing step.

The command to publish to NPM is:

npm publish <file name .tgz file containing the package> --access public

This command will create the package in the NPM registry.

The command to create a Github repository, using the gh GitHub CLI is:

gh repo create ncfour-us/byte-buffer --public --source=. --remote=origin

This command will use the contents of the current folder to create a Git repository on Github and link the remote repository with name origin.

After creating the repository, use git push to link the main branch of the local repository to the main branch in GitHub using command:

git push -u origin main

Once these steps are completed, the publish tasks for NPM and GitHub can be enabled by setting:

    ...
    releaseToNpm: true,
    releaseToGithub: true
    ...

in the constructor options of the TypeScriptESMProject project.

When running pnpm release locally, there is a requirement that the user has active login credentials to both NPM and GitHub. For NPM, 2FA login is required when running a npm publish. If interactive user credentials are being used, the user will be prompted to supply their 2FA login info during the publish:npm task processing.

To login to GitHub, use the gh auth login command. Login status can be checked using the gh auth status command. GitHub login credentials are used during the publish:github task processing.

Contributing

Fork this repository and submit a PR.

Authors

License

The project is covered by the MIT license, see LICENSE.

Acknowledgements

Metadata

Release files for ncfour-us-projen-utils 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ncfour-us-projen-utils 0.3.1
File Size Uploaded
ncfour_us_projen_utils-0.3.1.tar.gz 168.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ncfour-us-projen-utils 0.3.1
File Interpreter ABI Platform
ncfour_us_projen_utils-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 334.8 kB

Release files / ncfour_us_projen_utils-0.3.1.tar.gz

Download URL ncfour_us_projen_utils-0.3.1.tar.gz
Size 168.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a529506967f3ff7b7b0e2fd69529bacead05dcf99294bba9b191db79d9c7731c
BLAKE2b-256 checksum
How to use checksums
aa6ca433dd92a9a78cf2b0c233174f5e5235439bad9c87b79f8b2bed0c74f7a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.14.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release files / ncfour_us_projen_utils-0.3.1-py3-none-any.whl

Download URL ncfour_us_projen_utils-0.3.1-py3-none-any.whl
Size 166.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d95a7459d89dccd1084f318e8e972ea14e253fae46f24bdbb8d2ce32e1ef053
BLAKE2b-256 checksum
How to use checksums
26e917ce79c3e52d0490684e1a0586fcb954b9ef784089ad191701c748b47d9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.14.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.23

2 release files

0.1.22

2 release files

0.1.21

2 release files

0.1.20

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page