fix build

This commit is contained in:
Bastian Ike
2023-04-14 16:44:22 +02:00
committed by Bastian
parent 9625510467
commit 24a295cb8d
4 changed files with 8 additions and 10 deletions

View File

@@ -78,7 +78,7 @@ var createStaticFiles = function () { return __awaiter(void 0, void 0, void 0, f
lastmod: "now", lastmod: "now",
changefreq: "weekly", 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) { radar.items.forEach(function (item) {
(0, fs_1.copyFileSync)("build/index.html", "build/".concat(item.quadrant, "/").concat(item.name, ".html")); (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); sitemap.add("".concat(config_1.publicUrl).concat(item.quadrant, "/").concat(item.name, ".html"), sitemapOptions);

8
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "aoe_technology_radar", "name": "aoe_technology_radar",
"version": "3.5.0", "version": "3.5.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "aoe_technology_radar", "name": "aoe_technology_radar",
"version": "3.5.0", "version": "3.5.1",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@apideck/better-ajv-errors": "0.3.6", "@apideck/better-ajv-errors": "0.3.6",
@@ -22,6 +22,7 @@
"@types/sanitize-html": "2.9.0", "@types/sanitize-html": "2.9.0",
"@types/walk": "2.3.1", "@types/walk": "2.3.1",
"classnames": "2.3.2", "classnames": "2.3.2",
"cross-env": "7.0.3",
"d3": "7.8.4", "d3": "7.8.4",
"front-matter": "4.0.2", "front-matter": "4.0.2",
"fs-extra": "11.1.1", "fs-extra": "11.1.1",
@@ -55,7 +56,6 @@
"@types/marked": "4.0.8", "@types/marked": "4.0.8",
"@types/node": "18.15.11", "@types/node": "18.15.11",
"@typescript-eslint/parser": "5.58.0", "@typescript-eslint/parser": "5.58.0",
"cross-env": "7.0.3",
"eslint": "8.38.0", "eslint": "8.38.0",
"eslint-config-prettier": "8.8.0", "eslint-config-prettier": "8.8.0",
"eslint-config-react-app": "7.0.1", "eslint-config-react-app": "7.0.1",
@@ -6249,7 +6249,6 @@
"version": "7.0.3", "version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
"dev": true,
"dependencies": { "dependencies": {
"cross-spawn": "^7.0.1" "cross-spawn": "^7.0.1"
}, },
@@ -21112,7 +21111,6 @@
"version": "7.0.3", "version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
"dev": true,
"requires": { "requires": {
"cross-spawn": "^7.0.1" "cross-spawn": "^7.0.1"
} }

View File

@@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepare": "husky install && npm run build:scripts", "prepare": "husky install && npm run build:scripts",
"start": "cross-env GENERATE_SOURCEMAP=false react-scripts start", "start": "npx cross-env GENERATE_SOURCEMAP=false react-scripts start",
"build": "cross-env GENERATE_SOURCEMAP=false react-scripts build", "build": "npx cross-env GENERATE_SOURCEMAP=false react-scripts build",
"build:scripts": "tsc --project tsconfig.scripts.json", "build:scripts": "tsc --project tsconfig.scripts.json",
"test": "react-scripts test --watchAll=false", "test": "react-scripts test --watchAll=false",
"ts:check": "tsc --noEmit", "ts:check": "tsc --noEmit",
@@ -36,6 +36,7 @@
"@types/sanitize-html": "2.9.0", "@types/sanitize-html": "2.9.0",
"@types/walk": "2.3.1", "@types/walk": "2.3.1",
"classnames": "2.3.2", "classnames": "2.3.2",
"cross-env": "7.0.3",
"d3": "7.8.4", "d3": "7.8.4",
"front-matter": "4.0.2", "front-matter": "4.0.2",
"fs-extra": "11.1.1", "fs-extra": "11.1.1",
@@ -64,7 +65,6 @@
"@types/marked": "4.0.8", "@types/marked": "4.0.8",
"@types/node": "18.15.11", "@types/node": "18.15.11",
"@typescript-eslint/parser": "5.58.0", "@typescript-eslint/parser": "5.58.0",
"cross-env": "7.0.3",
"eslint": "8.38.0", "eslint": "8.38.0",
"eslint-config-prettier": "8.8.0", "eslint-config-prettier": "8.8.0",
"eslint-config-react-app": "7.0.1", "eslint-config-react-app": "7.0.1",

View File

@@ -45,7 +45,7 @@ const createStaticFiles = async () => {
changefreq: "weekly", changefreq: "weekly",
} }
sitemap.add(`${publicUrl}/index.html`, sitemapOptions); sitemap.add(`${publicUrl}index.html`, sitemapOptions);
radar.items.forEach((item) => { radar.items.forEach((item) => {
copyFileSync( copyFileSync(