@lumeland/core 1.0.0-beta-6 → 1.0.0-beta-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/utils/cdn.js +4 -4
- package/package.json +3 -3
package/build/src/utils/cdn.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { canParse, format, maxSatisfying, parse, parseRange } from "../../deps/semver.js";
|
|
2
|
-
import { fromFileUrl, globToRegExp, join, toFileUrl } from "../../deps/path.js";
|
|
2
|
+
import { fromFileUrl, globToRegExp, join, posix, toFileUrl } from "../../deps/path.js";
|
|
3
3
|
import { readDirSync } from "../services/fs.js";
|
|
4
4
|
export async function getFiles(specifier, patterns = ["/**"]) {
|
|
5
5
|
if (specifier.startsWith("file:")) {
|
|
@@ -36,11 +36,11 @@ async function getCDNFiles(specifier, patterns) {
|
|
|
36
36
|
return fileMap;
|
|
37
37
|
}
|
|
38
38
|
function getFsFiles(specifier, patterns) {
|
|
39
|
-
const basePath = fromFileUrl(specifier);
|
|
39
|
+
const basePath = join(fromFileUrl(specifier), "/");
|
|
40
40
|
const fileMap = new Map();
|
|
41
|
-
const regexps = patterns.map((pattern) => globToRegExp(pattern, { globstar: true, extended: true }));
|
|
41
|
+
const regexps = patterns.map((pattern) => globToRegExp(posix.join("/", pattern), { globstar: true, extended: true }));
|
|
42
42
|
for (const path of walk(basePath)) {
|
|
43
|
-
const filename = path.slice(basePath.length);
|
|
43
|
+
const filename = join("/", path.slice(basePath.length));
|
|
44
44
|
if (!regexps.some((regexp) => regexp.test(filename))) {
|
|
45
45
|
continue;
|
|
46
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumeland/core",
|
|
3
|
-
"version": "1.0.0-beta-
|
|
3
|
+
"version": "1.0.0-beta-7",
|
|
4
4
|
"description": "The core of Lume SSG",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Óscar Otero",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@lumeland/dom": "^0.1.56",
|
|
24
|
-
"@lumeland/plugin-esbuild": "^1.0.0-beta-
|
|
25
|
-
"@lumeland/plugin-lightningcss": "^1.0.0-beta-
|
|
24
|
+
"@lumeland/plugin-esbuild": "^1.0.0-beta-5",
|
|
25
|
+
"@lumeland/plugin-lightningcss": "^1.0.0-beta-5",
|
|
26
26
|
"deno-std": "1.5.1",
|
|
27
27
|
"remove-markdown": "0.8.0",
|
|
28
28
|
"temporal-polyfill": "^1.0.6",
|