From 29943eac59ad5e0e732be47d296f195acbb6d733 Mon Sep 17 00:00:00 2001 From: "v.terekhov" Date: Wed, 4 May 2022 12:01:16 +0400 Subject: [PATCH] feat(legacy-charts): add typescript definitions for legacy charts add typescript definitions for legacy charts #825 --- .eslintignore | 1 + .gitignore | 5 +---- legacy/package.json | 3 ++- package.json | 4 +++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.eslintignore b/.eslintignore index 3dddf3f6..cb92a946 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ dist/* node_modules/* +legacy/index* diff --git a/.gitignore b/.gitignore index ef996b00..da15c198 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,4 @@ npm-debug.log* coverage # legacy builds -/legacy/index.cjs -/legacy/index.cjs.map -/legacy/index.js -/legacy/index.js.map +/legacy/index* diff --git a/legacy/package.json b/legacy/package.json index 9e4434de..a3631998 100644 --- a/legacy/package.json +++ b/legacy/package.json @@ -5,7 +5,8 @@ "module": "./legacy/index.js" }, "scripts": { - "unit": "jest -c jest.config.json" + "unit": "jest -c jest.config.json", + "emitDeclarations": "tsc index.js --allowJs --skipLibCheck --declaration --emitDeclarationOnly --declarationMap" }, "devDependencies": { "@babel/core": "7.17.9", diff --git a/package.json b/package.json index b9a73b75..5f111ea6 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,9 @@ "scripts": { "prepublishOnly": "pnpm test && pnpm build && del ./package && clean-publish", "postpublish": "del ./package", - "emitDeclarations": "tsc --emitDeclarationOnly", + "emitDeclarations:legacy": "cd legacy && pnpm emitDeclarations", + "emitDeclarations:base": "tsc --emitDeclarationOnly", + "emitDeclarations": "pnpm emitDeclarations:base && pnpm emitDeclarations:legacy", "build": "rollup -c & pnpm emitDeclarations", "unit": "pnpm unit:base && pnpm unit:legacy", "unit:base": "jest -c jest.config.json",