diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2300a1f..4f5dad8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,7 +27,7 @@ jobs: node-version: 24 cache: pnpm registry-url: https://npm.pkg.github.com - scope: "@bearfire-dev" + scope: "@paperkeel" - run: pnpm install --frozen-lockfile - run: pnpm check - if: github.event_name == 'release' @@ -43,7 +43,7 @@ jobs: mkdir package-consumer cd package-consumer pnpm init - pnpm add --lockfile-only "@bearfire-dev/env@${PACKAGE_VERSION#v}" + pnpm add --lockfile-only "@paperkeel/env@${PACKAGE_VERSION#v}" - name: Upload consumer lockfile uses: actions/upload-artifact@v6 with: diff --git a/.npmrc b/.npmrc index fdc15cc..446b4e8 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -@bearfire-dev:registry=https://npm.pkg.github.com +@paperkeel:registry=https://npm.pkg.github.com diff --git a/README.md b/README.md index 63c4b94..ffb7610 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# @bearfire-dev/env +# @paperkeel/env This internal Bearfire package adds Bearfire defaults to [T3 Env](https://github.com/t3-oss/t3-env) and [Zod 4](https://zod.dev/). -It works with our [Infisical infrastructure-as-code system](https://github.com/bearfire-dev/infisical-iac). That system manages secret contracts and syncs secrets to application environments. This package validates those values at runtime and rejects Infisical placeholder values. +It works with our [Infisical infrastructure-as-code system](https://github.com/paperkeel/infisical-iac). That system manages secret contracts and syncs secrets to application environments. This package validates those values at runtime and rejects Infisical placeholder values. This package is not intended or supported for external use. @@ -17,17 +17,17 @@ Authenticate to GitHub Packages with `read:packages`, then install the package. Add the GitHub Packages registry to `.npmrc`: ```ini -@bearfire-dev:registry=https://npm.pkg.github.com +@paperkeel:registry=https://npm.pkg.github.com ``` ```bash -pnpm add @bearfire-dev/env @t3-oss/env-core zod +pnpm add @paperkeel/env @t3-oss/env-core zod ``` ## Node ```ts -import { createBearfireEnv, secret } from "@bearfire-dev/env"; +import { createBearfireEnv, secret } from "@paperkeel/env"; import { z } from "zod"; export const env = createBearfireEnv({ @@ -44,7 +44,7 @@ export const env = createBearfireEnv({ Workers receive variables through request bindings. Supply those bindings as `runtimeEnv` during request handling. ```ts -import { createRequestEnv, secret } from "@bearfire-dev/env"; +import { createRequestEnv, secret } from "@paperkeel/env"; const getEnv = createRequestEnv({ server: { SHARED_KEY: secret("SHARED_KEY") }, @@ -63,7 +63,7 @@ The helper validates one time for each Worker bindings object. ## Guard only ```ts -import { isDefaultKey, throwIfDefaultKey } from "@bearfire-dev/env/guard"; +import { isDefaultKey, throwIfDefaultKey } from "@paperkeel/env/guard"; ``` The guard rejects `replace_default_key_` values and the legacy Infisical placeholder. diff --git a/package.json b/package.json index 45f2fb8..06eb4d0 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { - "name": "@bearfire-dev/env", + "name": "@paperkeel/env", "version": "0.1.0", "description": "Bearfire environment validation with T3 Env and Zod", "type": "module", "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/bearfire-dev/env.git" + "url": "https://github.com/paperkeel/env.git" }, "files": [ "dist"