chore: scaffold project tooling and CI#1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Sets up the complete project skeleton for
tiergraph— a zero-runtime-dependency TypeScript library for SaaS tier-based feature gating.Files added:
package.json— nametiergraph, version0.0.0, MIT, ESM+CJS dual exports (import/requireconditions),filesfield restricting publish todist/,schema/,README.md,LICENSEtsconfig.json— strict, ES2022 target, NodeNext module resolution,exactOptionalPropertyTypes,noUncheckedIndexedAccesstsup.config.ts— dual ESM+CJS format, dts, sourcemaps, treeshake, no splittingvitest.config.ts— 100% coverage thresholds onsrc/via v8 providerbiome.json— recommended ruleset, tab indentation, single quotes, trailing commas.github/workflows/ci.yml— lint → typecheck → test → build on Node 18 and 20, triggers on push and PRREADME.md— stub (one paragraph, "under construction")src/index.ts— empty export so build doesn't failsrc/index.test.ts— placeholder test that imports the module (satisfies coverage threshold on the stub)Why
Establishes the tooling baseline required by the v1 scope: TypeScript strict mode,
tsupfor dual publish,vitestfor 100% coverage enforcement,biomefor lint/format, and GitHub Actions CI. Every subsequent PR builds on top of this foundation.How to verify
Out of scope
defineConfig,createAccess, error classes) — those are PR 2 and PR 3