JSPM

@generaltranslation/next-internal

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9843
  • Score
    100M100P100Q143478F
  • License FSL-1.1-ALv2

Internal utilities for Next.js GT integration

Package Exports

  • @generaltranslation/next-internal

Readme

@generaltranslation/next-internal

Internal utilities package for abstracting all interactions with Next.js internals.

Purpose

This package serves as the single abstraction layer for all Next.js internal interactions within the General Translation ecosystem. By centralizing Next.js-specific logic here, we can:

  • Isolate Next.js version-specific implementations
  • Provide a stable interface for other GT packages
  • Simplify maintenance when Next.js APIs change
  • Reduce coupling between GT packages and Next.js internals

Usage

This is an internal package not intended for direct consumption by end users. It should only be used by other packages within the @generaltranslation ecosystem.

Due to the nature of interacting with internal files, each function exported should use a try catch to handle error logic.

Development

# Install dependencies
pnpm install

# Build the package
pnpm build

# Run tests
pnpm test

# Run tests in watch mode
pnpm test:watch