Skip to content

TypeScript fork with: IntelliSense and Type Checking Support for .cjs and .mjs file extensions.

Notifications You must be signed in to change notification settings

stealify/typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode-typescript

Image of Working Installation

Version: https://github.com/direktspeed/TypeScript/tree/mjs IntelliSense and Type Checking Support for .cjs and .mjs file extensions.

Converts .mjs and .cjs => Module => Output extension.

Next Step add "mjs": "preserve", "cjs": "preserve", options to tsconfig.

Usage with vscode

npm i -g vscode-typescript@https://github.com/stealify/typescript
# Getting global path
npm root -g

Hit f1 on keyboard open user settings and set

"typescript.tsdk": "{your_global_npm_path}/vscode-typescript/lib"

restart is not needed.

!Importent as tester or user you do not need to build

Build This is only for internal use as reminer till it is merged

Use version tag of package.json to identify the need of a rebuild.

# dependencies
git clone https://github.com/microsoft/TypeScript --branch master --single-branch
git cd TypeScript
npm install gulp
npm install


# Method 1 Patch Directly before build
wget -q -O - https://patch-diff.githubusercontent.com/raw/microsoft/TypeScript/pull/<newpullid>.patch | git apply -v
npm run build:compiler
rm -rf lib node_modules
mv built/local lib

# Method 2 Create a Patch for the released typescript version.

# Generate 
npm run build:compiler
mv built/local lib-diff

wget -q -O - https://patch-diff.githubusercontent.com/raw/microsoft/TypeScript/pull/<newpullid>.patch | git apply -v
npm run build:compiler
rm -rf lib node_modules 
mv built/local lib

cd lib-diff
git init
git add .
git commit -am "unpatched"

rsync -avzh ../lib/* .
git add .
git commit -am "patched"
git diff HEAD~1 HEAD > ../typescript.lib.patch
cd ..
rm -rf lib-diff

git add lib *.patch
git commit -am "package.json.version"

Related Projects

About

TypeScript fork with: IntelliSense and Type Checking Support for .cjs and .mjs file extensions.

Resources

Stars

Watchers

Forks

Packages

No packages published