Skip to content

Commit 8f77bb6

Browse files
committed
chore: fix site builder
1 parent b2dc41c commit 8f77bb6

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.github/workflows/GHPages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
node-version: 18
3131
- name: Install And Build
3232
run: |+
33-
npm install --legacy-peer-deps
33+
npm install -f
3434
npm run build
3535
cd explorer-v3
36-
npm install --legacy-peer-deps
36+
npm install -f
3737
npm run pre-build
3838
npm run build
3939
- name: Setup Pages

explorer-v3/build-system/pre-build/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const alias = {
1818
url: resolve("../shim/url.js"),
1919
util: resolve("../shim/util.js"),
2020
typescript: resolve("../shim/typescript.js"),
21+
globby: resolve("../shim/globby.js"),
2122
};
2223

2324
function getBase(name) {
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/* eslint require-jsdoc:0 -- shim */
22

3-
export {};
4-
export default {};
3+
export default { sync };
4+
5+
export function sync(s) {
6+
return [s];
7+
}

explorer-v3/build-system/shim/path.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
export const sep = "/";
12
export default {
23
extname,
34
isAbsolute,
45
join,
6+
dirname,
7+
normalize,
8+
sep,
59
};
610

711
export function extname(p) {
@@ -14,3 +18,9 @@ export function isAbsolute() {
1418
export function join(...args) {
1519
return args.join("/");
1620
}
21+
export function dirname(p) {
22+
return p.split("/").slice(0, -1).join("/");
23+
}
24+
export function normalize(p) {
25+
return p;
26+
}

0 commit comments

Comments
 (0)