npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@plugjs/tsgo

v0.0.1

Published

TypeScript 7.1 support for PlugJS

Readme

TypeScript 7 support for PlugJS

This plugin adds support for TypeScript 7 in PlugJS builds.

Contents

Installation

npm install --save-dev @plugjs/tsgo

Helpers

The package exports helper pipes for the most common TypeScript compiler workflows. Import them in your PlugJS build file and await them from your tasks.

import { plugjs } from '@plugjs/plug'
import { tsc } from '@plugjs/tsgo'

export default plugjs({
  async build(): Promise<void> {
    await tsc('src/tsconfig.json')
  },
})

The tsc(...) helper compiles one TypeScript project, identified either by a tsconfig.json file or by a directory containing one. This is roughly equivalent to tsc --project <config> and returns a pipe containing the files emitted by the compiler.

The tsbuild(...) helper compiles a project and all of its TypeScript project references. This is roughly equivalent to tsc --build <config> and is useful for workspaces or packages linked through references in tsconfig.json.

import { plugjs } from '@plugjs/plug'
import { tsbuild } from '@plugjs/tsgo'

export default plugjs({
  async build(): Promise<void> {
    await tsbuild('src/tsconfig.json', { directory: '@' })
  },
})

Both helpers take the same options:

  • directory: base directory used to resolve the configuration path.
  • emitOnly: controls which files TypeScript emits. Use:
    • 'all' or true to emit JavaScript and declaration files (default),
    • 'js' to emit only JavaScript files,
    • 'dts' to emit only declaration files,
    • 'none' or false to type-check without emitting files.
  • reportDeprecations: controls how deprecation diagnostics are reported. Use:
    • 'notice' or true to report them as notices (default),
    • 'warn' to report them as warnings,
    • 'off' or false to silence them.

Pipes

You can also use the TypeScript plug directly in a pipe. Whatever files are in the pipe are treated as TypeScript project configs:

import '@plugjs/tsgo'
import { find, plugjs } from '@plugjs/plug'

export default plugjs({
  async build(): Promise<void> {
    await find('**/tsconfig.json').typescript()
  },
})

This compiles all TypeScript projects in the pipe.

The .typescript() plug takes these options:

  • emitOnly: controls which files TypeScript emits _(as in the Helpers section above)
  • reportDeprecations: controls how deprecation diagnostics are reported _(as in the Helpers section above)
  • projectReferences: controls whether referenced projects are built too. Use:
    • false to build only the projects in the pipe (default),
    • true to build those projects and their project references.