halife 0.0.2 → 0.1.0
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/index.js +2 -3
- package/package.json +15 -3
package/index.js
CHANGED
|
@@ -32,9 +32,9 @@ async function add(components, options) {
|
|
|
32
32
|
continue;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
//
|
|
35
|
+
// TODO: implement versioning
|
|
36
36
|
let response = await fetch(
|
|
37
|
-
|
|
37
|
+
`${pkg.repository.url}/raw/branch/main/${reg.path}`,
|
|
38
38
|
);
|
|
39
39
|
if (!response.ok) {
|
|
40
40
|
console.info(
|
|
@@ -52,7 +52,6 @@ async function add(components, options) {
|
|
|
52
52
|
reg.path.split("/").pop(),
|
|
53
53
|
);
|
|
54
54
|
await fs.ensureDir(path.dirname(target));
|
|
55
|
-
// await fs.writeFile(target, file.content);
|
|
56
55
|
const fileStream = fs.createWriteStream(target);
|
|
57
56
|
const webStream = Readable.fromWeb(response.body);
|
|
58
57
|
await finished(webStream.pipe(fileStream));
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "https://codeberg.org/y0z0ng/halife.git"
|
|
20
20
|
},
|
|
21
|
-
"version": "0.0
|
|
21
|
+
"version": "0.1.0",
|
|
22
22
|
"workspaces": [
|
|
23
23
|
"examples/*"
|
|
24
24
|
],
|
|
@@ -41,9 +41,21 @@
|
|
|
41
41
|
"type": "component",
|
|
42
42
|
"path": "packages/Input.astro"
|
|
43
43
|
},
|
|
44
|
-
"
|
|
44
|
+
"Check": {
|
|
45
|
+
"type": "component",
|
|
46
|
+
"path": "packages/Check.astro"
|
|
47
|
+
},
|
|
48
|
+
"Dialog": {
|
|
49
|
+
"type": "component",
|
|
50
|
+
"path": "packages/Dialog.astro"
|
|
51
|
+
},
|
|
52
|
+
"Switch": {
|
|
53
|
+
"type": "component",
|
|
54
|
+
"path": "packages/Switch.astro"
|
|
55
|
+
},
|
|
56
|
+
"DashboardModern": {
|
|
45
57
|
"type": "layout",
|
|
46
|
-
"path": "packages/
|
|
58
|
+
"path": "packages/DashboardModern.astro"
|
|
47
59
|
}
|
|
48
60
|
}
|
|
49
61
|
}
|