All skills

TypeScript 6+ guidance for project development, tsconfig configuration, diagnostics, module resolution, deprecations, and modern standard-library typings. Use when building or maintaining TypeScript 6+ projects, debugging compiler behavior, or working through TS 6-specific defaults and tooling such as `#/` subpath imports, `ignoreDeprecations`, `RegExp.escape`, `Temporal`, and `--stableTypeOrdering`. Triggers on typescript 6, ts 6, stableTypeOrdering, ignoreDeprecations, types array, noUncheckedSideEffectImports, baseUrl deprecated, moduleResolution node deprecated, and subpath imports.

Use this Skill: https://skilld.dev/gh/nodnarbnitram/claude-code-extensions/typescript-v6

This session only. Nothing lands on disk.

referencesmodule-resolution-imports-reference.md

≈412 tokens on demand. Your agent reads this file only when SKILL.md points to it.

TypeScript 6 Module Resolution and Imports Reference

The most important TypeScript 6 module-resolution decision is whether the project is primarily a bundled app or a Node.js package/runtime.

Choose bundler for bundled apps

{
  "compilerOptions": {
    "module": "esnext",
    "moduleResolution": "bundler"
  }
}

Use this for Vite, Rollup, esbuild, Webpack, and similar build-driven applications.

Choose nodenext for modern Node.js packages

{
  "compilerOptions": {
    "module": "nodenext",
    "moduleResolution": "nodenext"
  }
}

Use this when package exports, ESM/CJS interop, and Node's native resolver should define behavior.

#/ Subpath Imports

TypeScript 6 supports Node's #/-style subpath imports under bundler and nodenext resolution modes.

{
  "name": "my-package",
  "type": "module",
  "imports": {
    "#/*": "./dist/*"
  }
}
import * as utils from '#/utils.js';

This example is a package/runtime alignment pattern, not a generic source-alias recipe. The mapping should reflect the files the package actually ships and resolves at runtime.

Alias Decision Heuristic

  • Use paths when you need TypeScript/build-tool aliasing inside a project
  • Use package imports with #/ when you want a Node-native, package-internal alias strategy
  • Do not mix strategies casually; keep runtime and compiler expectations aligned

Common Failure Mode

If #/ imports compile but fail at runtime, the runtime or package metadata likely does not actually support the same alias behavior yet, or the mapping does not match the files the package ships.

Source: SKILL.md on GitHub

No alerts5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    This skill provides safe and comprehensive guidance for configuring and migrating projects to TypeScript 6. It utilizes standard compiler tools and references official documentation without any detected security risks or malicious patterns.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at aabed46. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 6 months ago
version
1.0.0
metadata
{
  "author": "Brandon Martin"
}

README badge

README badge for nodnarbnitram/claude-code-extensions/typescript-v6