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

Edit Typescript and Vite config in web-admin #1815

Merged
merged 2 commits into from
Feb 24, 2023
Merged

Conversation

ericpgreen2
Copy link
Contributor

@ericpgreen2 ericpgreen2 commented Feb 23, 2023

This PR:

  • Adds web-admin to our root tsconfig.json
  • Edits web-admin/tsconfig.json to inherit from root
  • Wires up aliases for Vite

Part of #1780.

Copy link
Contributor

@begelundmuller begelundmuller left a comment

Choose a reason for hiding this comment

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

One question, looks good otherwise

Comment on lines +7 to +9
"@rilldata/web-admin": "/src",
"@rilldata/web-common": "/../web-common/src",
"@rilldata/web-local": "/../web-local/src",
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these supposed to start with a /? Looks like a root path

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For whatever reason it breaks without the forward slash. Docs here. It's resolving from the Vite project root, which SvelteKit sets.

@ericpgreen2 ericpgreen2 merged commit f68dad3 into main Feb 24, 2023
@ericpgreen2 ericpgreen2 deleted the web-admin-tsconfig branch February 24, 2023 18:16
bcolloran pushed a commit that referenced this pull request Mar 7, 2023
* Inherit `tsconfig.json` from root

* Configure vite aliases
djbarnwal pushed a commit that referenced this pull request Aug 3, 2023
* Inherit `tsconfig.json` from root

* Configure vite aliases
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.

2 participants