Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit ba6bd93

Browse files
authored
fix(site): fixed metadata refs (#2585)
1 parent 95109df commit ba6bd93

File tree

7 files changed

+15
-8806
lines changed

7 files changed

+15
-8806
lines changed

scripts/generate-flags.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const { JSDOM } = jsdom;
1111
const configFilePath = path.resolve(
1212
currentDir,
1313
"src",
14-
"routes",
15-
"_index",
16-
"+meta.json",
14+
"components",
15+
"data",
16+
"site.json",
1717
);
1818
const file = fs.readFileSync(configFilePath, "utf8");
1919
const config = JSON.parse(file);

scripts/jekyll-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
const fs = require("fs");
66
const version = require("../package.json").version;
7-
const files = ["./src/routes/_index/+meta.json"];
7+
const files = ["./src/components/data/site.json"];
88

99
files.forEach((file) => {
1010
const newFile = JSON.parse(fs.readFileSync(file, "utf8"));

src/components/bundling.marko

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import siteMeta from "./data/site.json" ;
2+
13
<div>
24
<h2 id="bundling">Bundling</h2>
35
<p>Skin supports <a href="https://webpack.js.org">Webpack</a> and <a href="https://github.com/lasso-js/lasso">Lasso.js</a>.</p>
@@ -9,7 +11,7 @@
911
{
1012
"dependencies": {
1113
"@ebay/browserslist-config": "^1",
12-
"@ebay/skin": "^${$global.meta.version}",
14+
"@ebay/skin": "^${siteMeta.version}",
1315
},
1416
"devDependencies": {
1517
"css-loader": "^3",

0 commit comments

Comments
 (0)