create-vitrify 0.4.1 → 0.4.3

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.
package/dist/cli.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import { renderDirectory, renderPackageJson, renderTsconfigJson } from '@vitrify/tools/render';
2
3
  import parseArgs from 'minimist';
3
4
  import inquirer from 'inquirer';
package/dist/templates.js CHANGED
@@ -17,7 +17,8 @@ export const templates = {
17
17
  scripts: {
18
18
  dev: 'vitrify dev',
19
19
  'dev:ssr': 'vitrify dev -m ssr',
20
- build: 'vitrify build',
20
+ build: 'run-s build:csr',
21
+ 'build:csr': 'vitrify build',
21
22
  'build:ssr': 'vitrify build -m ssr',
22
23
  'build:ssg': 'vitrify build -m ssg',
23
24
  test: 'vitrify test',
@@ -45,10 +46,23 @@ export const templates = {
45
46
  'eslint-plugin-vue',
46
47
  'devcert',
47
48
  'fastify',
49
+ 'npm-run-all',
48
50
  'typescript',
49
51
  'vite',
50
52
  'vitrify'
51
- ])
53
+ ]),
54
+ exports: {
55
+ '.': {
56
+ types: './dist/types/index.d.ts',
57
+ import: './dist/index.js'
58
+ },
59
+ './fastify-ssr-plugin': {
60
+ import: './dist/ssr/server/fastify-ssr-plugin.mjs'
61
+ },
62
+ './hooks': {
63
+ import: './dist/ssr/server/virtual_vitrify-hooks.mjs'
64
+ }
65
+ }
52
66
  },
53
67
  tsconfigJson: {
54
68
  paths: {
@@ -1 +1,2 @@
1
+ #!/usr/bin/env node
1
2
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vitrify",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "@types/minimist": "^1.2.2",
37
37
  "@types/node": "^17.0.23",
38
38
  "typescript": "^4.7.3",
39
- "vite": "^3.0.0-beta.0",
39
+ "vite": "^4.0.1",
40
40
  "vue": "^3.2.37"
41
41
  },
42
42
  "files": [