@tanstack/router-cli 1.166.13 → 1.166.15
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/cjs/index.cjs +2 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +2 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -4,11 +4,12 @@ const require_generate = require("./generate.cjs");
|
|
|
4
4
|
const require_watch = require("./watch.cjs");
|
|
5
5
|
let yargs = require("yargs");
|
|
6
6
|
yargs = require_runtime.__toESM(yargs);
|
|
7
|
+
let yargs_helpers = require("yargs/helpers");
|
|
7
8
|
let _tanstack_router_generator = require("@tanstack/router-generator");
|
|
8
9
|
//#region src/index.ts
|
|
9
10
|
main();
|
|
10
11
|
function main() {
|
|
11
|
-
(0, yargs.default)().scriptName("tsr").usage("$0 <cmd> [args]").command("generate", "Generate the routes for a project", async () => {
|
|
12
|
+
(0, yargs.default)((0, yargs_helpers.hideBin)(process.argv)).scriptName("tsr").usage("$0 <cmd> [args]").command("generate", "Generate the routes for a project", async () => {
|
|
12
13
|
await require_generate.generate((0, _tanstack_router_generator.getConfig)(), process.cwd());
|
|
13
14
|
}).command("watch", "Continuously watch and generate the routes for a project", () => {
|
|
14
15
|
require_watch.watch(process.cwd());
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import yargs from 'yargs'\nimport { getConfig } from '@tanstack/router-generator'\nimport { generate } from './generate'\nimport { watch } from './watch'\n\nmain()\n\nexport function main() {\n yargs()\n .scriptName('tsr')\n .usage('$0 <cmd> [args]')\n .command('generate', 'Generate the routes for a project', async () => {\n const config = getConfig()\n await generate(config, process.cwd())\n })\n .command(\n 'watch',\n 'Continuously watch and generate the routes for a project',\n () => {\n watch(process.cwd())\n },\n )\n .help().argv\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import yargs from 'yargs'\nimport { hideBin } from 'yargs/helpers'\nimport { getConfig } from '@tanstack/router-generator'\nimport { generate } from './generate'\nimport { watch } from './watch'\n\nmain()\n\nexport function main() {\n yargs(hideBin(process.argv))\n .scriptName('tsr')\n .usage('$0 <cmd> [args]')\n .command('generate', 'Generate the routes for a project', async () => {\n const config = getConfig()\n await generate(config, process.cwd())\n })\n .command(\n 'watch',\n 'Continuously watch and generate the routes for a project',\n () => {\n watch(process.cwd())\n },\n )\n .help().argv\n}\n"],"mappings":";;;;;;;;;AAMA,MAAM;AAEN,SAAgB,OAAO;AACrB,EAAA,GAAA,MAAA,UAAA,GAAA,cAAA,SAAc,QAAQ,KAAK,CAAC,CACzB,WAAW,MAAM,CACjB,MAAM,kBAAkB,CACxB,QAAQ,YAAY,qCAAqC,YAAY;AAEpE,QAAM,iBAAA,UAAA,GAAA,2BAAA,YADoB,EACH,QAAQ,KAAK,CAAC;GACrC,CACD,QACC,SACA,kEACM;AACJ,gBAAA,MAAM,QAAQ,KAAK,CAAC;GAEvB,CACA,MAAM,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { generate } from "./generate.js";
|
|
2
2
|
import { watch } from "./watch.js";
|
|
3
3
|
import yargs from "yargs";
|
|
4
|
+
import { hideBin } from "yargs/helpers";
|
|
4
5
|
import { getConfig } from "@tanstack/router-generator";
|
|
5
6
|
//#region src/index.ts
|
|
6
7
|
main();
|
|
7
8
|
function main() {
|
|
8
|
-
yargs().scriptName("tsr").usage("$0 <cmd> [args]").command("generate", "Generate the routes for a project", async () => {
|
|
9
|
+
yargs(hideBin(process.argv)).scriptName("tsr").usage("$0 <cmd> [args]").command("generate", "Generate the routes for a project", async () => {
|
|
9
10
|
await generate(getConfig(), process.cwd());
|
|
10
11
|
}).command("watch", "Continuously watch and generate the routes for a project", () => {
|
|
11
12
|
watch(process.cwd());
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import yargs from 'yargs'\nimport { getConfig } from '@tanstack/router-generator'\nimport { generate } from './generate'\nimport { watch } from './watch'\n\nmain()\n\nexport function main() {\n yargs()\n .scriptName('tsr')\n .usage('$0 <cmd> [args]')\n .command('generate', 'Generate the routes for a project', async () => {\n const config = getConfig()\n await generate(config, process.cwd())\n })\n .command(\n 'watch',\n 'Continuously watch and generate the routes for a project',\n () => {\n watch(process.cwd())\n },\n )\n .help().argv\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import yargs from 'yargs'\nimport { hideBin } from 'yargs/helpers'\nimport { getConfig } from '@tanstack/router-generator'\nimport { generate } from './generate'\nimport { watch } from './watch'\n\nmain()\n\nexport function main() {\n yargs(hideBin(process.argv))\n .scriptName('tsr')\n .usage('$0 <cmd> [args]')\n .command('generate', 'Generate the routes for a project', async () => {\n const config = getConfig()\n await generate(config, process.cwd())\n })\n .command(\n 'watch',\n 'Continuously watch and generate the routes for a project',\n () => {\n watch(process.cwd())\n },\n )\n .help().argv\n}\n"],"mappings":";;;;;;AAMA,MAAM;AAEN,SAAgB,OAAO;AACrB,OAAM,QAAQ,QAAQ,KAAK,CAAC,CACzB,WAAW,MAAM,CACjB,MAAM,kBAAkB,CACxB,QAAQ,YAAY,qCAAqC,YAAY;AAEpE,QAAM,SADS,WAAW,EACH,QAAQ,KAAK,CAAC;GACrC,CACD,QACC,SACA,kEACM;AACJ,QAAM,QAAQ,KAAK,CAAC;GAEvB,CACA,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/router-cli",
|
|
3
|
-
"version": "1.166.
|
|
3
|
+
"version": "1.166.15",
|
|
4
4
|
"description": "Modern and scalable routing for React applications",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"chokidar": "^3.6.0",
|
|
57
57
|
"yargs": "^17.7.2",
|
|
58
|
-
"@tanstack/router-generator": "1.166.
|
|
58
|
+
"@tanstack/router-generator": "1.166.14"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/yargs": "^17.0.33",
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import yargs from 'yargs'
|
|
2
|
+
import { hideBin } from 'yargs/helpers'
|
|
2
3
|
import { getConfig } from '@tanstack/router-generator'
|
|
3
4
|
import { generate } from './generate'
|
|
4
5
|
import { watch } from './watch'
|
|
@@ -6,7 +7,7 @@ import { watch } from './watch'
|
|
|
6
7
|
main()
|
|
7
8
|
|
|
8
9
|
export function main() {
|
|
9
|
-
yargs()
|
|
10
|
+
yargs(hideBin(process.argv))
|
|
10
11
|
.scriptName('tsr')
|
|
11
12
|
.usage('$0 <cmd> [args]')
|
|
12
13
|
.command('generate', 'Generate the routes for a project', async () => {
|