diff --git a/package.json b/package.json index 3c81081..13b5491 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "miniflare": "^3.20231218.2", "nitropack": "^2.8.1", "nuxt": "^3.9.3", + "prettier": "^3.2.4", "typescript": "^5.2.2", "unbuild": "^2.0.0", "wrangler": "0.0.0-fa09f4a2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8773c49..7722985 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -48,6 +48,9 @@ importers: nuxt: specifier: ^3.9.3 version: 3.9.3(@types/node@20.11.5)(eslint@8.56.0)(rollup@3.29.4)(typescript@5.3.3)(vite@5.0.12) + prettier: + specifier: ^3.2.4 + version: 3.2.4 typescript: specifier: ^5.2.2 version: 5.3.3 @@ -6580,6 +6583,12 @@ packages: engines: {node: '>= 0.8.0'} dev: true + /prettier@3.2.4: + resolution: {integrity: sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==} + engines: {node: '>=14'} + hasBin: true + dev: true + /pretty-bytes@6.1.1: resolution: {integrity: sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==} engines: {node: ^14.13.1 || >=16.0.0} diff --git a/src/index.ts b/src/index.ts index 1e5a545..99cf029 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,7 +26,7 @@ async function nitroModule(nitro: Nitro) { "", `Config path: \`${relative(".", configPath)}\``, `Persist dir: \`${relative(".", persistDir)}\``, - ].join("\n") + ].join("\n"), ); // Share config to the runtime @@ -39,7 +39,7 @@ async function nitroModule(nitro: Nitro) { // Add plugin to inject bindings to dev server nitro.options.plugins = nitro.options.plugins || []; nitro.options.plugins.push( - fileURLToPath(new URL("runtime/plugin.dev", import.meta.url)) + fileURLToPath(new URL("runtime/plugin.dev", import.meta.url)), ); }