Skip to content

Instantly share code, notes, and snippets.

@anthonyjoeseph
Last active April 12, 2022 15:11
Show Gist options
  • Save anthonyjoeseph/57e161f48d0c90563e4e39a2dcc8ab9d to your computer and use it in GitHub Desktop.
Save anthonyjoeseph/57e161f48d0c90563e4e39a2dcc8ab9d to your computer and use it in GitHub Desktop.
Test Multiple Typescript Versions Using TSC
{
"name": "Tests against TS v3.9",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"typescript": "^3.9.2"
}
}
export const a: `${string}world` = "hello world";
{
"name": "Tests against TS v4.1",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"typescript": "^4.1.2"
}
}
export const a: `${string}world` = "hello world";
{
"name": "root",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"test:types": "cd 4.1 && yarn run tsc -b ../tsconfig.json && cd ../3.9 && yarn run tsc -b ../tsconfig.json"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment