hono-router
Advanced tools
Comparing version 1.0.6 to 1.0.7
10
index.js
@@ -73,3 +73,3 @@ #!/usr/bin/env node | ||
const entryPath = path.join(currentPath, entry.name); | ||
const importPath = path | ||
const importPath = path.posix | ||
.join(basePath, entry.name) | ||
@@ -88,7 +88,7 @@ .replace(/\.(ts|tsx)$/, ''); | ||
const safeName = importPath | ||
.replace(/[@/]/g, '_') | ||
.replace(/[@/\\]/g, '_') | ||
.replace(/^_+/, '') | ||
.replace(/\[(.+?)\]/g, '$1'); // Ensure valid variable names | ||
const importPathString = isDeno ? path.join(basePath, entry.name) : importPath.replace(/index$/, ''); | ||
const relativePath = path | ||
.replace(/\[(.+?)\]/g, '$1'); | ||
const importPathString = isDeno ? path.posix.join(basePath, entry.name) : importPath.replace(/index$/, ''); | ||
const relativePath = path.posix | ||
.relative(path.dirname(out), path.join(dir, importPathString)) | ||
@@ -95,0 +95,0 @@ .replace(/\\/g, '/'); |
{ | ||
"name": "hono-router", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "hotloading script to generate file-based routing config for Hono", | ||
@@ -5,0 +5,0 @@ "author": "Stu Kennedy", |
9809
11
220