Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(legacy-charts): add typescript definitions for legacy charts #839

Merged
merged 1 commit into from May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
@@ -1,2 +1,3 @@
dist/*
node_modules/*
legacy/index*
5 changes: 1 addition & 4 deletions .gitignore
Expand Up @@ -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*
3 changes: 2 additions & 1 deletion legacy/package.json
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -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",
Expand Down