@tanstack/router-generator 1.166.42 → 1.167.0
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/filesystem/virtual/loadConfigFile.cjs +4 -1
- package/dist/cjs/filesystem/virtual/loadConfigFile.cjs.map +1 -1
- package/dist/esm/filesystem/virtual/loadConfigFile.js +4 -1
- package/dist/esm/filesystem/virtual/loadConfigFile.js.map +1 -1
- package/package.json +5 -5
- package/src/filesystem/virtual/loadConfigFile.ts +4 -1
|
@@ -2,7 +2,10 @@ require("../../_virtual/_rolldown/runtime.cjs");
|
|
|
2
2
|
let jiti = require("jiti");
|
|
3
3
|
//#region src/filesystem/virtual/loadConfigFile.ts
|
|
4
4
|
async function loadConfigFile(filePath) {
|
|
5
|
-
return await (0, jiti.createJiti)(filePath, {
|
|
5
|
+
return await (0, jiti.createJiti)(filePath, {
|
|
6
|
+
interopDefault: false,
|
|
7
|
+
tsconfigPaths: true
|
|
8
|
+
}).import(filePath);
|
|
6
9
|
}
|
|
7
10
|
//#endregion
|
|
8
11
|
exports.loadConfigFile = loadConfigFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadConfigFile.cjs","names":[],"sources":["../../../../src/filesystem/virtual/loadConfigFile.ts"],"sourcesContent":["import { createJiti } from 'jiti'\n\nexport async function loadConfigFile(filePath: string) {\n const jiti = createJiti(filePath, {
|
|
1
|
+
{"version":3,"file":"loadConfigFile.cjs","names":[],"sources":["../../../../src/filesystem/virtual/loadConfigFile.ts"],"sourcesContent":["import { createJiti } from 'jiti'\n\nexport async function loadConfigFile(filePath: string) {\n const jiti = createJiti(filePath, {\n interopDefault: false,\n tsconfigPaths: true,\n })\n const loaded = await jiti.import<any>(filePath)\n return loaded\n}\n"],"mappings":";;;AAEA,eAAsB,eAAe,UAAkB;AAMrD,QADe,OAAA,GAAA,KAAA,YAJS,UAAU;EAChC,gBAAgB;EAChB,eAAe;EAChB,CAAC,CACwB,OAAY,SAAS"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { createJiti } from "jiti";
|
|
2
2
|
//#region src/filesystem/virtual/loadConfigFile.ts
|
|
3
3
|
async function loadConfigFile(filePath) {
|
|
4
|
-
return await createJiti(filePath, {
|
|
4
|
+
return await createJiti(filePath, {
|
|
5
|
+
interopDefault: false,
|
|
6
|
+
tsconfigPaths: true
|
|
7
|
+
}).import(filePath);
|
|
5
8
|
}
|
|
6
9
|
//#endregion
|
|
7
10
|
export { loadConfigFile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadConfigFile.js","names":[],"sources":["../../../../src/filesystem/virtual/loadConfigFile.ts"],"sourcesContent":["import { createJiti } from 'jiti'\n\nexport async function loadConfigFile(filePath: string) {\n const jiti = createJiti(filePath, {
|
|
1
|
+
{"version":3,"file":"loadConfigFile.js","names":[],"sources":["../../../../src/filesystem/virtual/loadConfigFile.ts"],"sourcesContent":["import { createJiti } from 'jiti'\n\nexport async function loadConfigFile(filePath: string) {\n const jiti = createJiti(filePath, {\n interopDefault: false,\n tsconfigPaths: true,\n })\n const loaded = await jiti.import<any>(filePath)\n return loaded\n}\n"],"mappings":";;AAEA,eAAsB,eAAe,UAAkB;AAMrD,QADe,MAJF,WAAW,UAAU;EAChC,gBAAgB;EAChB,eAAe;EAChB,CAAC,CACwB,OAAY,SAAS"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/router-generator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.167.0",
|
|
4
4
|
"description": "Modern and scalable routing for React applications",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"magic-string": "^0.30.21",
|
|
55
55
|
"prettier": "^3.5.0",
|
|
56
56
|
"zod": "^3.24.2",
|
|
57
|
-
"@tanstack/router-core": "1.
|
|
58
|
-
"@tanstack/router-utils": "1.
|
|
59
|
-
"@tanstack/virtual-file-routes": "1.
|
|
57
|
+
"@tanstack/router-core": "1.170.0",
|
|
58
|
+
"@tanstack/router-utils": "1.162.0",
|
|
59
|
+
"@tanstack/virtual-file-routes": "1.162.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"vite": "*",
|
|
63
63
|
"@types/node": ">=20",
|
|
64
|
-
"@tanstack/react-router": "1.
|
|
64
|
+
"@tanstack/react-router": "1.170.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"clean": "rimraf ./dist && rimraf ./coverage",
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { createJiti } from 'jiti'
|
|
2
2
|
|
|
3
3
|
export async function loadConfigFile(filePath: string) {
|
|
4
|
-
const jiti = createJiti(filePath, {
|
|
4
|
+
const jiti = createJiti(filePath, {
|
|
5
|
+
interopDefault: false,
|
|
6
|
+
tsconfigPaths: true,
|
|
7
|
+
})
|
|
5
8
|
const loaded = await jiti.import<any>(filePath)
|
|
6
9
|
return loaded
|
|
7
10
|
}
|