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

fix: Stylable variables exports type and generated dts and sourcemaps files #2256

Merged
merged 12 commits into from
Jan 17, 2022

Conversation

tzachbon
Copy link
Contributor

@tzachbon tzachbon commented Jan 10, 2022

Closes #2249, closes #2250

Currently, there will be types duplication in the core and in the runtime packages.
There should be a decision if core should be dependent on the runtime or vise-versa, or there should be a dedicated runtime-types package. (#2257)

@tzachbon tzachbon changed the title fix: Stylable variables exports type and generated dts and sourcemaps files fix: Stylable variables exports type and generates dts and sourcemaps files Jan 10, 2022
@tzachbon tzachbon self-assigned this Jan 10, 2022
@tzachbon tzachbon added bug Unexpected behavior or exception core Processing and transforming logic tooling CLI, stylable-scripts boilerplate runtime Runtime API types Typing related labels Jan 10, 2022
@tzachbon tzachbon marked this pull request as ready for review January 10, 2022 12:28
@tzachbon tzachbon requested a review from a team January 10, 2022 12:28
@tzachbon tzachbon changed the title fix: Stylable variables exports type and generates dts and sourcemaps files fix: Stylable variables exports type and generated dts and sourcemaps files Jan 10, 2022
Copy link
Collaborator

@tomrav tomrav left a comment

Choose a reason for hiding this comment

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

looks good, left a couple of remarks

packages/module-utils/src/generate-dts.ts Outdated Show resolved Hide resolved
@@ -280,3 +322,20 @@ export function generateDTSSourceMap(dtsContent: string, meta: StylableMeta) {
4
);
}

function calculateEstimatedPosition(
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe open an issue (or comment on the value parser issue) about this as a tech debt

@tzachbon tzachbon merged commit e27149b into master Jan 17, 2022
@tzachbon tzachbon deleted the tzach/stylable-exports branch January 17, 2022 09:29
@AviVahl
Copy link
Collaborator

AviVahl commented Jan 18, 2022

The new types that are part of the public api should be exported as well

tzachbon added a commit that referenced this pull request Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected behavior or exception core Processing and transforming logic runtime Runtime API tooling CLI, stylable-scripts boilerplate types Typing related
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Stylable CLI generates incorrect dts for complex stVars Incorrect stVars type in Stylable exports
3 participants