Skip to content

Commit

Permalink
chore: add downlevel-dts to all packages with type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher committed Aug 29, 2020
1 parent ac0defc commit c3a6c2a
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/parser/package.json
Expand Up @@ -32,6 +32,7 @@
],
"scripts": {
"build": "tsc -b tsconfig.build.json",
"postbuild": "downlevel-dts dist _ts3.4/dist",
"clean": "tsc -b tsconfig.build.json --clean",
"postclean": "rimraf dist",
"format": "prettier --write \"./**/*.{ts,js,json,md}\" --ignore-path ../../.prettierignore",
Expand Down Expand Up @@ -63,5 +64,12 @@
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/typescript-eslint"
},
"typesVersions": {
"<3.8": {
"*": [
"_ts3.4/*"
]
}
}
}
8 changes: 8 additions & 0 deletions packages/types/package.json
Expand Up @@ -29,6 +29,7 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -b tsconfig.build.json",
"postbuild": "downlevel-dts dist _ts3.4/dist",
"clean": "tsc -b tsconfig.build.json --clean",
"postclean": "rimraf dist",
"format": "prettier --write \"./**/*.{ts,js,json,md}\" --ignore-path ../../.prettierignore",
Expand All @@ -39,5 +40,12 @@
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/typescript-eslint"
},
"typesVersions": {
"<3.8": {
"*": [
"_ts3.4/*"
]
}
}
}
6 changes: 5 additions & 1 deletion packages/types/src/index.ts
@@ -1,5 +1,9 @@
// TODO(bradzacher) - convert this to export * as TSESTree from './ts-estree'
// https://github.com/sandersn/downlevel-dts/pull/42
import * as TSESTree from './ts-estree';

export { AST_NODE_TYPES } from './ast-node-types';
export { AST_TOKEN_TYPES } from './ast-token-types';
export * from './lib';
export * from './parser-options';
export * as TSESTree from './ts-estree';
export { TSESTree };
8 changes: 8 additions & 0 deletions packages/typescript-estree/package.json
Expand Up @@ -32,6 +32,7 @@
],
"scripts": {
"build": "tsc -b tsconfig.build.json",
"postbuild": "downlevel-dts dist _ts3.4/dist",
"clean": "tsc -b tsconfig.build.json --clean",
"postclean": "rimraf dist",
"format": "prettier --write \"./**/*.{ts,js,json,md}\" --ignore-path ../../.prettierignore",
Expand Down Expand Up @@ -75,5 +76,12 @@
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/typescript-eslint"
},
"typesVersions": {
"<3.8": {
"*": [
"_ts3.4/*"
]
}
}
}
8 changes: 8 additions & 0 deletions packages/visitor-keys/package.json
Expand Up @@ -29,6 +29,7 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -b tsconfig.build.json",
"postbuild": "downlevel-dts dist _ts3.4/dist",
"clean": "tsc -b tsconfig.build.json --clean",
"postclean": "rimraf dist",
"format": "prettier --write \"./**/*.{ts,js,json,md}\" --ignore-path ../../.prettierignore",
Expand All @@ -46,5 +47,12 @@
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/typescript-eslint"
},
"typesVersions": {
"<3.8": {
"*": [
"_ts3.4/*"
]
}
}
}

0 comments on commit c3a6c2a

Please sign in to comment.