Skip to content

chore: typecheck create-vite#11295

Merged
patak-cat merged 1 commit intomainfrom
typecheck-create-vite
Dec 15, 2022
Merged

chore: typecheck create-vite#11295
patak-cat merged 1 commit intomainfrom
typecheck-create-vite

Conversation

@ArnaudBarre
Copy link
Member

@ArnaudBarre ArnaudBarre commented Dec 9, 2022

At the beginning didn't like the red line in my editor for cli.spec.ts.
So I added a ts check.
Then I saw that build.config.ts was not in the config.
Then I got type issues with rollupLicensePlugin.mjs, that I converted to TS
Then I got issue with using import.meta in a cjs project, so I moved it to vite package which is more appropriate IMO and closer to the main importer.
Then I saw that this small project was not strict, which I enabled, but keeping the PR safe so I only added ! assertions and didn't touch runtime behaviour.
Then I saw that src/node/__test__ and scripts were also not covered, so I added them to packages/vite/tsconfig.json

@ArnaudBarre ArnaudBarre requested a review from bluwy December 9, 2022 23:13
Copy link
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

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

Thanks!

@patak-cat patak-cat merged commit af86e5b into main Dec 15, 2022
@patak-cat patak-cat deleted the typecheck-create-vite branch December 15, 2022 07:08
futurGH pushed a commit to futurGH/vite that referenced this pull request Feb 26, 2023
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.

3 participants