Skip to content

Commit

Permalink
feat(legacy-charts): add typescript definitions for legacy charts (#839)
Browse files Browse the repository at this point in the history
add typescript definitions for legacy charts

#825
  • Loading branch information
thabarbados authored May 10, 2022
1 parent 6f8fa51 commit d937f80
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/*
node_modules/*
legacy/index*
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit d937f80

Please sign in to comment.