nuxt-typed-router 1.2.1 → 1.2.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/README.md CHANGED
@@ -57,10 +57,8 @@ npm install -D nuxt-typed-router@legacy
57
57
  First, register the module in the `nuxt.config.ts`
58
58
 
59
59
  ```ts
60
- import TypedRouter from 'nuxt-typed-router';
61
-
62
60
  export default defineNuxtConfig({
63
- buildModules: [TypedRouter],
61
+ buildModules: ['nuxt-typed-router'],
64
62
  nuxtTypedRouter: {
65
63
  // options
66
64
  },
@@ -101,10 +99,8 @@ The module will generate 4 files each time you modify the `pages` folder :
101
99
  You can specify the output dir of the generated files in your configuration. It defaults to `<srcDir>/generated`
102
100
 
103
101
  ```ts
104
- import TypedRouter from 'nuxt-typed-router';
105
-
106
102
  export default defineNuxtConfig({
107
- buildModules: [TypedRouter],
103
+ buildModules: ['nuxt-typed-router'],
108
104
  nuxtTypedRouter: {
109
105
  outDir: './generated',
110
106
  },
package/dist/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "nuxt": "^3.0.0-rc.1",
6
6
  "bridge": false
7
7
  },
8
- "version": "1.2.1"
8
+ "version": "1.2.3"
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-typed-router",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Provide autocompletion for pages route names generated by Nuxt router",
5
5
  "type": "module",
6
6
  "scripts": {