Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianccm committed Apr 14, 2023
1 parent 9625510 commit 24a295c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist_scripts/scripts/createStaticFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var createStaticFiles = function () { return __awaiter(void 0, void 0, void 0, f
lastmod: "now",
changefreq: "weekly",
};
sitemap.add("".concat(config_1.publicUrl, "/index.html"), sitemapOptions);
sitemap.add("".concat(config_1.publicUrl, "index.html"), sitemapOptions);
radar.items.forEach(function (item) {
(0, fs_1.copyFileSync)("build/index.html", "build/".concat(item.quadrant, "/").concat(item.name, ".html"));
sitemap.add("".concat(config_1.publicUrl).concat(item.quadrant, "/").concat(item.name, ".html"), sitemapOptions);
Expand Down
8 changes: 3 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"scripts": {
"prepare": "husky install && npm run build:scripts",
"start": "cross-env GENERATE_SOURCEMAP=false react-scripts start",
"build": "cross-env GENERATE_SOURCEMAP=false react-scripts build",
"start": "npx cross-env GENERATE_SOURCEMAP=false react-scripts start",
"build": "npx cross-env GENERATE_SOURCEMAP=false react-scripts build",
"build:scripts": "tsc --project tsconfig.scripts.json",
"test": "react-scripts test --watchAll=false",
"ts:check": "tsc --noEmit",
Expand All @@ -36,6 +36,7 @@
"@types/sanitize-html": "2.9.0",
"@types/walk": "2.3.1",
"classnames": "2.3.2",
"cross-env": "7.0.3",
"d3": "7.8.4",
"front-matter": "4.0.2",
"fs-extra": "11.1.1",
Expand Down Expand Up @@ -64,7 +65,6 @@
"@types/marked": "4.0.8",
"@types/node": "18.15.11",
"@typescript-eslint/parser": "5.58.0",
"cross-env": "7.0.3",
"eslint": "8.38.0",
"eslint-config-prettier": "8.8.0",
"eslint-config-react-app": "7.0.1",
Expand Down
2 changes: 1 addition & 1 deletion scripts/createStaticFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const createStaticFiles = async () => {
changefreq: "weekly",
}

sitemap.add(`${publicUrl}/index.html`, sitemapOptions);
sitemap.add(`${publicUrl}index.html`, sitemapOptions);

radar.items.forEach((item) => {
copyFileSync(
Expand Down

0 comments on commit 24a295c

Please sign in to comment.