@adonisjs/core 7.0.0-next.6 → 7.0.0-next.7

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.
@@ -270,14 +270,17 @@ export default class AppServiceProvider {
270
270
  */
271
271
  async generateRoutesTypes(router) {
272
272
  try {
273
- const types = router.generateTypes(2);
273
+ const { routes, imports, types } = router.generateTypes(2);
274
274
  const outputPath = this.app.generatedServerPath('routes.d.ts');
275
275
  await mkdir(dirname(outputPath), { recursive: true });
276
276
  await writeFile(outputPath, [
277
277
  `import '@adonisjs/core/types/http'`,
278
+ ...imports,
279
+ '',
280
+ ...types,
278
281
  '',
279
282
  'export type ScannedRoutes = {',
280
- types,
283
+ routes,
281
284
  '}',
282
285
  `declare module '@adonisjs/core/types/http' {`,
283
286
  ' export interface RoutesList extends ScannedRoutes {}',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/core",
3
3
  "description": "Core of AdonisJS",
4
- "version": "7.0.0-next.6",
4
+ "version": "7.0.0-next.7",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },
@@ -132,7 +132,7 @@
132
132
  "@adonisjs/fold": "^11.0.0-next.2",
133
133
  "@adonisjs/hash": "^10.0.0-next.1",
134
134
  "@adonisjs/health": "^3.0.0-next.0",
135
- "@adonisjs/http-server": "^8.0.0-next.11",
135
+ "@adonisjs/http-server": "^8.0.0-next.12",
136
136
  "@adonisjs/http-transformers": "^1.5.0",
137
137
  "@adonisjs/logger": "^7.1.0-next.0",
138
138
  "@adonisjs/repl": "^5.0.0-next.0",