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

feat(js): update vue/node app and lib generators to support TS solutions #29299

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Dec 10, 2024

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2024 1:16pm

@jaysoo jaysoo force-pushed the feat/vue-node-generators branch 11 times, most recently from 2698fdb to a2521e4 Compare December 11, 2024 18:34
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch from 074479a to 7d89b62 Compare December 11, 2024 19:37
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch 13 times, most recently from 3bfea15 to 24c6ea1 Compare December 11, 2024 22:12
@jaysoo jaysoo marked this pull request as ready for review December 11, 2024 22:13
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch 2 times, most recently from db02003 to 9cd4dc2 Compare December 11, 2024 22:15
@@ -97,7 +97,12 @@ export async function configurationGeneratorInternal(
if (isTsSolutionSetup) {
// skip eslint from typechecking since it extends from root file that is outside rootDir
if (options.linter === 'eslint') {
tsconfig.exclude = ['dist', 'eslint.config.js'];
tsconfig.exclude = [
Copy link
Member Author

Choose a reason for hiding this comment

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

I realized that PW didn't exclude the same files as our other generators, so this updates them. It'll also help once we rename eslint.config.js to eslint.config.cjs to resolve CJS/ESM issues.

@jaysoo jaysoo changed the title feat(vue): update vue app and lib generators to support TS solutions feat(js): update vue/node app and lib generators to support TS solutions Dec 12, 2024
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch from 9cd4dc2 to 514d742 Compare December 12, 2024 02:46
@jaysoo jaysoo requested a review from a team as a code owner December 12, 2024 02:46
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch from 514d742 to a8b05a6 Compare December 12, 2024 03:19
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch 3 times, most recently from cfa26af to 603091e Compare December 12, 2024 03:48
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch from 603091e to 2e32362 Compare December 12, 2024 13:14
@@ -0,0 +1,5 @@
declare module '*.vue' {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed because typecheck never worked without Volar in VSCode. The shims here at least makes it pass even though nothing meaningful is checked. We already do the same for Vue libs.

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