@tanstack/router-cli 1.166.8 → 1.166.9
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 +1 -18
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +2 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -4,26 +4,9 @@ const yargs = require("yargs");
|
|
|
4
4
|
const routerGenerator = require("@tanstack/router-generator");
|
|
5
5
|
const generate = require("./generate.cjs");
|
|
6
6
|
const watch = require("./watch.cjs");
|
|
7
|
-
function _interopNamespaceDefault(e) {
|
|
8
|
-
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
|
-
if (e) {
|
|
10
|
-
for (const k in e) {
|
|
11
|
-
if (k !== "default") {
|
|
12
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: () => e[k]
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
n.default = e;
|
|
21
|
-
return Object.freeze(n);
|
|
22
|
-
}
|
|
23
|
-
const yargs__namespace = /* @__PURE__ */ _interopNamespaceDefault(yargs);
|
|
24
7
|
main();
|
|
25
8
|
function main() {
|
|
26
|
-
|
|
9
|
+
yargs().scriptName("tsr").usage("$0 <cmd> [args]").command("generate", "Generate the routes for a project", async () => {
|
|
27
10
|
const config = routerGenerator.getConfig();
|
|
28
11
|
await generate.generate(config, process.cwd());
|
|
29
12
|
}).command(
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../src/index.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"index.cjs","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"],"names":["getConfig","generate","watch"],"mappings":";;;;;;AAKA,KAAA;AAEO,SAAS,OAAO;AACrB,QAAA,EACG,WAAW,KAAK,EAChB,MAAM,iBAAiB,EACvB,QAAQ,YAAY,qCAAqC,YAAY;AACpE,UAAM,SAASA,gBAAAA,UAAA;AACf,UAAMC,kBAAS,QAAQ,QAAQ,IAAA,CAAK;AAAA,EACtC,CAAC,EACA;AAAA,IACC;AAAA,IACA;AAAA,IACA,MAAM;AACJC,kBAAM,QAAQ,KAAK;AAAA,IACrB;AAAA,EAAA,EAED,OAAO;AACZ;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import yargs from "yargs";
|
|
2
2
|
import { getConfig } from "@tanstack/router-generator";
|
|
3
3
|
import { generate } from "./generate.js";
|
|
4
4
|
import { watch } from "./watch.js";
|
|
5
5
|
main();
|
|
6
6
|
function main() {
|
|
7
|
-
yargs.scriptName("tsr").usage("$0 <cmd> [args]").command("generate", "Generate the routes for a project", async () => {
|
|
7
|
+
yargs().scriptName("tsr").usage("$0 <cmd> [args]").command("generate", "Generate the routes for a project", async () => {
|
|
8
8
|
const config = getConfig();
|
|
9
9
|
await generate(config, process.cwd());
|
|
10
10
|
}).command(
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"index.js","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"],"names":[],"mappings":";;;;AAKA,KAAA;AAEO,SAAS,OAAO;AACrB,QAAA,EACG,WAAW,KAAK,EAChB,MAAM,iBAAiB,EACvB,QAAQ,YAAY,qCAAqC,YAAY;AACpE,UAAM,SAAS,UAAA;AACf,UAAM,SAAS,QAAQ,QAAQ,IAAA,CAAK;AAAA,EACtC,CAAC,EACA;AAAA,IACC;AAAA,IACA;AAAA,IACA,MAAM;AACJ,YAAM,QAAQ,KAAK;AAAA,IACrB;AAAA,EAAA,EAED,OAAO;AACZ;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/router-cli",
|
|
3
|
-
"version": "1.166.
|
|
3
|
+
"version": "1.166.9",
|
|
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.9"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/yargs": "^17.0.33",
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import yargs from 'yargs'
|
|
2
2
|
import { getConfig } from '@tanstack/router-generator'
|
|
3
3
|
import { generate } from './generate'
|
|
4
4
|
import { watch } from './watch'
|
|
@@ -6,8 +6,7 @@ import { watch } from './watch'
|
|
|
6
6
|
main()
|
|
7
7
|
|
|
8
8
|
export function main() {
|
|
9
|
-
yargs
|
|
10
|
-
// @ts-expect-error
|
|
9
|
+
yargs()
|
|
11
10
|
.scriptName('tsr')
|
|
12
11
|
.usage('$0 <cmd> [args]')
|
|
13
12
|
.command('generate', 'Generate the routes for a project', async () => {
|