vitrify 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,9 @@
1
1
  import fastify from 'fastify';
2
2
  export const createApp = ({ onSetup, appDir, baseUrl, fastifyPlugin, onRendered, vitrifyDir, mode }) => {
3
3
  const app = fastify({
4
- logger: true
4
+ logger: {
5
+ level: process.env.DEBUG ? 'debug' : process.env.PINO_LOG_LEVEL || 'info'
6
+ }
5
7
  });
6
8
  app.register(fastifyPlugin, {
7
9
  baseUrl,
package/package.json CHANGED
@@ -1,42 +1,34 @@
1
1
  {
2
2
  "name": "vitrify",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "description": "Vite as your Full Stack development tool",
7
7
  "type": "module",
8
+ "types": "./dist/index.d.ts",
8
9
  "bin": {
9
10
  "vitrify": "./dist/bin/cli.js"
10
11
  },
11
12
  "exports": {
12
- ".": "./dist/index.js",
13
- "./*": "./dist/*.js",
14
- "./build": "./dist/bin/build.js",
15
- "./dev": "./dist/bin/dev.js",
16
- "./prerender": "./dist/prerender.js",
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js"
16
+ },
17
+ "./build": {
18
+ "types": "./dist/types/bin/build.d.ts",
19
+ "import": "./dist/bin/build.js"
20
+ },
21
+ "./dev": {
22
+ "types": "./dist/types/bin/dev.d.ts",
23
+ "import": "./dist/bin/dev.js"
24
+ },
25
+ "./prerender": {
26
+ "types": "./dist/types/bin/prerender.d.ts",
27
+ "import": "./dist/bin/prerender.js"
28
+ },
17
29
  "./helpers/*": "./dist/helpers/*.js",
18
- "./vite/*": "./src/vite/*"
19
- },
20
- "typesVersions": {
21
- "*": {
22
- "*": [
23
- "./dist/types/index.d.ts"
24
- ],
25
- "helpers/*": [
26
- "./dist/types/helpers/*.d.ts"
27
- ],
28
- "build": [
29
- "./dist/types/bin/build.d.ts"
30
- ],
31
- "dev": [
32
- "./dist/types/bin/dev.d.ts"
33
- ],
34
- "prerender": [
35
- "./dist/types/prerender.d.ts"
36
- ],
37
- "help": [
38
- "./dist/types/bin/help.d.ts"
39
- ]
30
+ "./client": {
31
+ "types": "./client.d.ts"
40
32
  }
41
33
  },
42
34
  "engines": {
@@ -60,7 +52,7 @@
60
52
  "@fastify/static": "^6.5.0",
61
53
  "@quasar/extras": "^1.15.2",
62
54
  "@vitejs/plugin-vue": "^3.1.0",
63
- "@vitrify/plugin-env": "^0.1.0",
55
+ "@vitrify/plugin-env": "^0.1.1",
64
56
  "builtin-modules": "^3.3.0",
65
57
  "cac": "^6.7.14",
66
58
  "chalk": "^5.0.1",
@@ -24,7 +24,9 @@ export const createApp = ({
24
24
  mode: string
25
25
  }) => {
26
26
  const app = fastify({
27
- logger: true
27
+ logger: {
28
+ level: process.env.DEBUG ? 'debug' : process.env.PINO_LOG_LEVEL || 'info'
29
+ }
28
30
  })
29
31
 
30
32
  app.register(fastifyPlugin, {
@@ -1,6 +1,3 @@
1
- // import 'vitrify.css'
2
- import 'vitrify.sass'
3
- import App from 'src/App.vue'
4
1
  import createRouter from 'src/router'
5
2
  import {
6
3
  createSSRApp,
@@ -13,6 +10,9 @@ import {
13
10
  import { onBoot, onMounted } from 'virtual:vitrify-hooks'
14
11
  import routes from 'src/router/routes'
15
12
  import * as staticImports from 'virtual:static-imports'
13
+ import 'vitrify.sass'
14
+ import 'vitrify.css'
15
+ import App from 'src/App.vue'
16
16
 
17
17
  interface ssrContext {
18
18
  ssr: boolean