Skip to content

buke/typescript-go-internal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typescript-go-internal

English | 简体中文

Test codecov Go Report Card Go Reference

Expose selected internal Go packages from microsoft/typescript-go under stable import paths so external modules can depend on them.

Overview

This repository mirrors and adapts microsoft/typescript-go/internal into pkg/... to make those packages importable as github.com/buke/typescript-go-internal/pkg/.... It keeps close parity with upstream while remaining self-contained for CI and external use.

Notes:

  • This project is independent and not affiliated with Microsoft.
  • The API surface is still evolving (v0 semantics): breaking changes may occur while tracking upstream.

What’s Inside

  • pkg/ — mirrored internal packages made public and importable.
  • testdata/ — upstream fixtures and baselines copied from microsoft/typescript-go/testdata for reproducible tests.
  • scripts/sync-internal.sh — sync script to copy sources, rewrite imports, normalize //go:generate, and bring testdata.
  • .github/workflows/ — CI workflows, including tests and coverage upload.

Syncing From Upstream (maintainers)

The sync script performs:

  • Copy microsoft/typescript-go/internalpkg
  • Rewrite imports from .../internal/....../pkg/...
  • Normalize //go:generate directives (use go run <module>@latest)
  • Copy microsoft/typescript-go/testdatatestdata
  • Run go mod tidy pre/post generation

Command:

./scripts/sync-internal.sh

After syncing, commit changes normally. Baseline files live under testdata/baselines.

Continuous Integration

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Attribution

This repository contains derivative works based on:

See NOTICE for full attribution details.

This project is not affiliated with or endorsed by Microsoft Corporation.

About

Expose internal Go packages from microsoft/typescript-go for external use

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages