Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Commit 1ef3a07

Browse files
fix(providers): error of provider links (#16)
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
1 parent 579bc9f commit 1ef3a07

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ A private collection of `clash` rule providers. :key::unlock:
77
### classical
88

99
```md
10-
https:/cdn.jsdelivr.net/npm/rule-sets@latest/src/black-list/lp-private.classical.yaml
10+
https://cdn.jsdelivr.net/npm/rule-sets@latest/dist/rule-providers/lp-private.classical.yaml
1111

12-
https:/cdn.jsdelivr.net/gh/onemoon/rule-sets@latest/src/black-list/lp-private.classical.yaml
12+
https://cdn.jsdelivr.net/gh/onemoon/rule-sets@latest/dist/rule-providers/lp-private.classical.yaml
1313
```
1414

1515
### domain
1616

1717
```md
18-
https:/cdn.jsdelivr.net/npm/rule-sets@latest/src/black-list/lp-private.domain.yaml
18+
https://cdn.jsdelivr.net/npm/rule-sets@latest/dist/rule-providers/lp-private.domain.yaml
1919

20-
https:/cdn.jsdelivr.net/gh/onemoon/rule-sets@latest/src/black-list/lp-private.domain.yaml
20+
https://cdn.jsdelivr.net/gh/onemoon/rule-sets@latest/dist/rule-providers/lp-private.domain.yaml
2121
```
2222

2323
## Software

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
},
4444
"files": [
4545
"dist",
46-
"src",
4746
"docs",
4847
"package.json",
4948
"LICENSE",

scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export function clean() {
88
}
99

1010
export function build() {
11-
return src('src/black-list/**/*.yaml').pipe(dest('dist/rule-sets'));
11+
return src('src/black-list/**/*.yaml').pipe(dest('dist/rule-providers'));
1212
}

scripts/update-links.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { extname, join } from 'path';
1010

1111
// Paths
1212
const directoryPath = './';
13-
const blackListPath = './src/black-list';
13+
const blackListPath = './src/rule-providers';
1414
const packagePath = 'package.json';
1515
const readme = 'README.md';
1616

@@ -31,8 +31,11 @@ const ruleSetFile = readdirSync(blackListPath).filter(
3131
const linkList = ruleSetFile.map((fileName) => {
3232
return {
3333
type: getType(fileName),
34-
links: keys.map((key) =>
35-
join(rootEndpoint, key, projectName, blackListPath, fileName)
34+
links: keys.map(
35+
(key) =>
36+
new URL(
37+
join(rootEndpoint, key, projectName, 'dist/rule-providers', fileName)
38+
).href
3639
),
3740
};
3841
});
File renamed without changes.

0 commit comments

Comments
 (0)