@onruntime/next-sitemap 0.6.1 → 0.6.2
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/app/index.cjs +2 -1
- package/dist/app/index.js +2 -1
- package/dist/pages/index.cjs +2 -1
- package/dist/pages/index.js +2 -1
- package/package.json +1 -1
package/dist/app/index.cjs
CHANGED
|
@@ -133,6 +133,7 @@ ${allEntries}
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
// src/app/index.ts
|
|
136
|
+
var joinPath = (...segments) => path__namespace.join(...segments);
|
|
136
137
|
function findPageFiles(dir, baseDir = dir) {
|
|
137
138
|
const files = [];
|
|
138
139
|
try {
|
|
@@ -191,7 +192,7 @@ function getTsconfigPaths(projectRoot, debug = false) {
|
|
|
191
192
|
for (const [key, values] of Object.entries(paths)) {
|
|
192
193
|
if (values.length > 0) {
|
|
193
194
|
const aliasKey = key.replace(/\*$/, "");
|
|
194
|
-
const aliasValue =
|
|
195
|
+
const aliasValue = joinPath(projectRoot, baseUrl, values[0].replace(/\*$/, ""));
|
|
195
196
|
alias[aliasKey] = aliasValue;
|
|
196
197
|
}
|
|
197
198
|
}
|
package/dist/app/index.js
CHANGED
|
@@ -106,6 +106,7 @@ ${allEntries}
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
// src/app/index.ts
|
|
109
|
+
var joinPath = (...segments) => path.join(...segments);
|
|
109
110
|
function findPageFiles(dir, baseDir = dir) {
|
|
110
111
|
const files = [];
|
|
111
112
|
try {
|
|
@@ -164,7 +165,7 @@ function getTsconfigPaths(projectRoot, debug = false) {
|
|
|
164
165
|
for (const [key, values] of Object.entries(paths)) {
|
|
165
166
|
if (values.length > 0) {
|
|
166
167
|
const aliasKey = key.replace(/\*$/, "");
|
|
167
|
-
const aliasValue =
|
|
168
|
+
const aliasValue = joinPath(projectRoot, baseUrl, values[0].replace(/\*$/, ""));
|
|
168
169
|
alias[aliasKey] = aliasValue;
|
|
169
170
|
}
|
|
170
171
|
}
|
package/dist/pages/index.cjs
CHANGED
|
@@ -171,6 +171,7 @@ function generateRobotsTxt(config) {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
// src/pages/index.ts
|
|
174
|
+
var joinPath = (...segments) => path__namespace.join(...segments);
|
|
174
175
|
function findPageFiles(dir, baseDir = dir) {
|
|
175
176
|
const files = [];
|
|
176
177
|
try {
|
|
@@ -220,7 +221,7 @@ function getTsconfigPaths(projectRoot) {
|
|
|
220
221
|
for (const [key, values] of Object.entries(paths)) {
|
|
221
222
|
if (values.length > 0) {
|
|
222
223
|
const aliasKey = key.replace(/\*$/, "");
|
|
223
|
-
const aliasValue =
|
|
224
|
+
const aliasValue = joinPath(projectRoot, baseUrl, values[0].replace(/\*$/, ""));
|
|
224
225
|
alias[aliasKey] = aliasValue;
|
|
225
226
|
}
|
|
226
227
|
}
|
package/dist/pages/index.js
CHANGED
|
@@ -144,6 +144,7 @@ function generateRobotsTxt(config) {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
// src/pages/index.ts
|
|
147
|
+
var joinPath = (...segments) => path.join(...segments);
|
|
147
148
|
function findPageFiles(dir, baseDir = dir) {
|
|
148
149
|
const files = [];
|
|
149
150
|
try {
|
|
@@ -193,7 +194,7 @@ function getTsconfigPaths(projectRoot) {
|
|
|
193
194
|
for (const [key, values] of Object.entries(paths)) {
|
|
194
195
|
if (values.length > 0) {
|
|
195
196
|
const aliasKey = key.replace(/\*$/, "");
|
|
196
|
-
const aliasValue =
|
|
197
|
+
const aliasValue = joinPath(projectRoot, baseUrl, values[0].replace(/\*$/, ""));
|
|
197
198
|
alias[aliasKey] = aliasValue;
|
|
198
199
|
}
|
|
199
200
|
}
|
package/package.json
CHANGED