remix-sitemap
Advanced tools
Comparing version 1.2.2-canary.0 to 1.2.2-canary.1
#!/usr/bin/env node | ||
export {}; | ||
import './polyfill.js'; |
@@ -10,2 +10,3 @@ #!/usr/bin/env node | ||
const promises_1 = __importDefault(require("fs/promises")); | ||
require("./polyfill.js"); | ||
const dir = process.cwd(); | ||
@@ -47,4 +48,4 @@ const getAllRouteModules = (routes) => { | ||
await promises_1.default.writeFile(path_1.default.join(dir, defaultConfig.outDir, `${defaultConfig.sitemapBaseFileName}.xml`), sitemap); | ||
console.log('sitemap generated successfully :D'); | ||
console.log('✨ Sitemap generated successfully'); | ||
} | ||
main(); |
@@ -7,3 +7,3 @@ "use strict"; | ||
const manifest = context.manifest.routes[route]; | ||
const module = context.routeModules[manifest.id]; | ||
const module = context.routeModules[route]; | ||
const handle = (module === null || module === void 0 ? void 0 : module.handle) || {}; | ||
@@ -10,0 +10,0 @@ const defaultHandle = { |
{ | ||
"name": "remix-sitemap", | ||
"version": "1.2.2-canary.0", | ||
"version": "1.2.2-canary.1", | ||
"private": false, | ||
@@ -10,3 +10,3 @@ "bin": { | ||
"scripts": { | ||
"build": "tsc", | ||
"build": "tsc --build", | ||
"prepublishOnly": "npm run build", | ||
@@ -32,2 +32,3 @@ "dev": "tsc -w" | ||
"dependencies": { | ||
"isomorphic-fetch": "^3.0.0", | ||
"ufo": "^1.1.1", | ||
@@ -34,0 +35,0 @@ "xml": "^1.0.1" |
@@ -31,3 +31,3 @@ <h1>Remix Sitemap</h1> | ||
## Usage | ||
For generate the sitemap we have two ways. | ||
For generate the sitemap we have 2 ways. | ||
### 1. Runtime Generation | ||
@@ -71,2 +71,4 @@ ```ts | ||
// remix-sitemap.config.js | ||
/** @type {import('remix-sitemap').RemixSitemapConfig} */ | ||
module.exports = { | ||
@@ -73,0 +75,0 @@ siteUrl: 'https://example.com', |
@@ -44,3 +44,3 @@ { | ||
/* JavaScript Support */ | ||
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ | ||
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */, | ||
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ | ||
@@ -47,0 +47,0 @@ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ |
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
56073
26
1049
241
4
+ Addedisomorphic-fetch@^3.0.0
+ Addedisomorphic-fetch@3.0.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)
+ Addedwhatwg-url@5.0.0(transitive)