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

@stealthscale/vite-config-plain

v0.2.0

Published

Packs and tests the packages the configuration tiers depend on.

Readme

@stealthscale/vite-config-plain

@stealthscale/vite-config-plain exports one Vite configuration object that sets the pack, resolve, ssr and test blocks a published node package needs. The node tier of @stealthscale/vite-config composes the same settings out of layers, and a package that can depend on that tier extends it instead. @stealthscale/vite-config-core, @stealthscale/vite-plugin-base and @stealthscale/vite-plugin-sbom cannot depend on it, because the tiers are built on them.

Install

pnpm add -D @stealthscale/vite-config-plain

The package peers on vite and vitest. Install both.

Usage

import { defineConfig } from "vite";

import { plain } from "@stealthscale/vite-config-plain";

export default defineConfig(plain);

defineConfig receives the object exactly as this package exports it, and no layer composes it first. Spread it to change a key, and what you write beside the spread replaces the value it set.

Note: the entry is fixed at src/index.ts. A package that publishes more than one subpath extends a tier, which reads the entry map out of package.json instead.

Reference

plain sets four blocks and nothing besides. Its type is Vite's UserConfig.

| Block | What it configures | | --------- | ------------------------------------------------------------------------------------------------------- | | pack | One entry from src/index.ts, its declarations, and the attw and publint checks | | resolve | The client conditions, with stealth-source ahead of Vite's defaults | | ssr | The server conditions, with stealth-source ahead of Vite's server defaults | | test | The **/*.spec.{ts,tsx} glob, the node environment, a shuffled order, and the mock and stub handling |

Between tests the runner clears every mock and restores every spy. An environment variable or a global that a test stubbed is put back. expect.requireAssertions fails a test that asserted nothing. globals is off, so a test file imports describe and it rather than finding them ambient. Both settings reject a suite that most runners accept.

The packer writes a stealth-source condition into the published export map beside every built subpath, naming the TypeScript that subpath was built from. Nothing outside a stealth workspace sets that condition, so a consumer installing from a registry resolves past it to the built file.

Note: pack reaches UserConfig from the vite-plus type declarations. A tsconfig that does not list vite-plus under types reports the key as unknown.

Coverage and the bill of materials

The node tier measures coverage and writes a CycloneDX bill of materials for what it packs. This value sets neither key, so a package configured from here builds and tests without either. The pack, resolve, ssr and test blocks otherwise agree with the tier, and a specification in this package composes the tier and compares all four.

The dependency cycle

A tier asked to pack @stealthscale/vite-config-core, @stealthscale/vite-plugin-base or @stealthscale/vite-plugin-sbom would build that package from a version of itself. @stealthscale/vite-config declares a peer dependency on the layer kernel and on the bill of materials plugin, and that plugin declares one on @stealthscale/vite-plugin-base. This package packs under its own export as well, so a defect in the value fails its own build first.

Licence

MIT. See LICENSE.