Skip to content

TypeScript: Globally declare Shiny variable, window.Shiny variable, and Shiny type#3457

Merged
schloerke merged 22 commits intomasterfrom
ts_namespace
Jul 1, 2021
Merged

TypeScript: Globally declare Shiny variable, window.Shiny variable, and Shiny type#3457
schloerke merged 22 commits intomasterfrom
ts_namespace

Conversation

@schloerke
Copy link
Collaborator

  • Change pkg name to @types/rstudio-shiny to allow for growth in the future. (Normally it would be @rstudio/shiny, but since the @types prefix is necessary, I believed @types/rstudio-shiny to be the cleanest name.)
  • Globally export Shiny type, window.Shiny definition, and Shiny definition
  • Slim up the build by adding a prepare script to tell yarn to listen to the files definition in package.json. Bug/fix: yarn install ignores files from local dependencies yarnpkg/yarn#2822 (comment)

@schloerke schloerke requested a review from nstrayer July 1, 2021 16:50
Copy link
Contributor

@nstrayer nstrayer left a comment

Choose a reason for hiding this comment

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

All look great to me and are working smoothly in my external projects!

@schloerke schloerke merged commit 7e4248b into master Jul 1, 2021
@schloerke schloerke deleted the ts_namespace branch July 1, 2021 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

yarn install ignores files from local dependencies

2 participants