@tanstack/router-cli
Advanced tools
Comparing version 1.87.6 to 1.87.7
@@ -1,6 +0,8 @@ | ||
import path from "node:path"; | ||
import chokidar from "chokidar"; | ||
import { getConfig, generator } from "@tanstack/router-generator"; | ||
import { resolveConfigPath, getConfig, generator } from "@tanstack/router-generator"; | ||
function watch(root) { | ||
const configWatcher = chokidar.watch(path.resolve(root, "tsr.config.json")); | ||
const configPath = resolveConfigPath({ | ||
configDirectory: root | ||
}); | ||
const configWatcher = chokidar.watch(configPath); | ||
let watcher = new chokidar.FSWatcher({}); | ||
@@ -7,0 +9,0 @@ const generatorWatcher = () => { |
{ | ||
"name": "@tanstack/router-cli", | ||
"version": "1.87.6", | ||
"version": "1.87.7", | ||
"description": "Modern and scalable routing for React applications", | ||
@@ -57,3 +57,3 @@ "author": "Tanner Linsley", | ||
"yargs": "^17.7.2", | ||
"@tanstack/router-generator": "^1.87.6" | ||
"@tanstack/router-generator": "^1.87.7" | ||
}, | ||
@@ -60,0 +60,0 @@ "devDependencies": { |
@@ -1,7 +0,13 @@ | ||
import path from 'node:path' | ||
import chokidar from 'chokidar' | ||
import { generator, getConfig } from '@tanstack/router-generator' | ||
import { | ||
generator, | ||
getConfig, | ||
resolveConfigPath, | ||
} from '@tanstack/router-generator' | ||
export function watch(root: string) { | ||
const configWatcher = chokidar.watch(path.resolve(root, 'tsr.config.json')) | ||
const configPath = resolveConfigPath({ | ||
configDirectory: root, | ||
}) | ||
const configWatcher = chokidar.watch(configPath) | ||
@@ -8,0 +14,0 @@ let watcher = new chokidar.FSWatcher({}) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17945
253