Skip to content

Commit

Permalink
fix(crwa): use JSDoc in JS template for vite config (#8982)
Browse files Browse the repository at this point in the history
First patch for v6. Missed this during release; the release script needs
an update as well.
  • Loading branch information
jtoar authored Jul 28, 2023
1 parent 43bbc27 commit ca7ca31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit ca7ca31

Please sign in to comment.