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(crwa): use JSDoc in JS template for vite config #8982

Merged
merged 2 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/create-redwood-app/templates/js/web/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import dns from 'dns'

import { defineConfig, UserConfig } from 'vite'
import { defineConfig } from 'vite'

// See: https://vitejs.dev/config/server-options.html#server-host
// So that Vite will load on local instead of 127.0.0.1
dns.setDefaultResultOrder('verbatim')

import redwood from '@redwoodjs/vite'

const viteConfig: UserConfig = {
/** @type {import('vite').UserConfig} */
const viteConfig = {
plugins: [redwood()],
}

Expand Down
2 changes: 1 addition & 1 deletion packages/create-redwood-app/tsToJS.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ console.log('Copying TS template to JS template')
fs.copySync(TS_TEMPLATE_FILEPATH, JS_TEMPLATE_FILEPATH)

// Find files and transform.
const apiWebFilePaths = fg.sync('{api,web}/src/**/*.{ts,tsx}', {
const apiWebFilePaths = fg.sync('{api,web}/**/*.{ts,tsx}', {
cwd: JS_TEMPLATE_FILEPATH,
absolute: true,
})
Expand Down