Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

fix(chart): import types from package, not monorepo #122

Merged
merged 3 commits into from
Mar 22, 2019

Conversation

williaster
Copy link
Contributor

@williaster williaster commented Mar 22, 2019

🐛 Bug Fix 🏠 Internal

This PR

  • fixes an import in @superset-ui/chart that should be from a package, not the monorepo. this caused the build to include additional directories in 0.10.5 and 0.10.6. I confirmed that these directories are no longer generated after the fix.

  • adds a flag to the build npm scripts to delete the out directory, to ensure that deleted files and directories are not included in new releases.

@williaster williaster added #bug Something isn't working #build Development environment labels Mar 22, 2019
@williaster williaster requested a review from a team as a code owner March 22, 2019 20:44
@codecov
Copy link

codecov bot commented Mar 22, 2019

Codecov Report

Merging #122 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #122   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          76     76           
  Lines         965    965           
  Branches      232    232           
=====================================
  Hits          965    965
Impacted Files Coverage Δ
...rset-ui-chart/src/components/ChartDataProvider.tsx 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2a5ce8...4fd0d7e. Read the comment docs.

@@ -1,6 +1,6 @@
/* eslint react/sort-comp: 'off' */
import React, { ReactNode } from 'react';
import { SupersetClientInterface, RequestConfig } from '../../../superset-ui-connection/src/types';
import { SupersetClientInterface, RequestConfig } from '@superset-ui/connection/lib/types';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this work?

import { SupersetClientInterface, RequestConfig } from '@superset-ui/connection';

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try this, it's giving a TS error locally / can't find the declaration file 🤔

@williaster williaster merged commit 76d85c5 into master Mar 22, 2019
@delete-merged-branch delete-merged-branch bot deleted the chris--fix-0.10.5-type-import branch March 22, 2019 21:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
#bug Something isn't working #build Development environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants