Skip to content

Commit 8462617

Browse files
committed
Preps for use on deno.land/x
JSR would require vendoring all of lume and that just doesn't make sense. Revert to https imports etc, and publish to deno.land/x.
1 parent 5c469d3 commit 8462617

File tree

9 files changed

+17
-1590
lines changed

9 files changed

+17
-1590
lines changed

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"deno.enable": true,
3+
"deno.importMap": "../deno.json"
4+
}

deno.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "@rick/hibana",
3-
"version": "1.0.13",
3+
"version": "1.0.14",
44
"license": "MIT",
55
"exports": "./mod.ts",
66
"imports": {
77
"lume/": "https://deno.land/x/[email protected]/",
8-
"@std/assert": "jsr:@std/assert@^0.224.0"
8+
"assert": "https://deno.land/[email protected]/assert/mod.ts",
9+
"deno_dom": "https://deno.land/x/[email protected]/deno-dom-wasm.ts"
910
},
1011
"tasks": {
1112
"update-lume": "deno run --allow-read --allow-write --allow-net update_lume_version.ts"
1213
}
13-
}
14+
}

mod.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
* "lume/": "https://deno.land/x/lume@v3.0.3/",
2323
* "lume/cms/": "https://cdn.jsdelivr.net/gh/lumeland/[email protected]/",
2424
* "lume/jsx-runtime": "https://deno.land/x/[email protected]/jsx-runtime.ts",
25-
* "hibana/": "https://raw.githubusercontent.com/RickCogley/hibana/v1.0.10/"
25+
* "hibana/": "https://deno.land/x/hibana/v1.0.14/"
2626
* },...
2727
*
28-
* // jsr:@rick/[email protected]
28+
* // Github Direct:
29+
* "hibana/": "https://raw.githubusercontent.com/RickCogley/hibana/v1.0.14/"
2930
*/
3031

3132
// Plugins

processors/__tests__/external_links_icon.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// src/_processors/external_links_icon.test.ts
2-
import { assertEquals } from "@std/assert";
2+
import { assertEquals } from "assert";
33
import externalLinksIcon from "../external_links_icon.ts";
44

55
Deno.test("adds external icon class to external links", () => {

processors/defer_pagefind.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* @author Rick Cogley
44
*/
55

6-
import { DOMParser } from "jsr:@b-fuze/deno-dom";
6+
7+
import { DOMParser } from "deno_dom";
78
import type { Page } from "../types/lume.ts";
89

910
/**

types/lume.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// setup types
2-
export type { Site } from "../vendor/lume/core/site.ts";
3-
export type { Page } from "../vendor/lume/core/file.ts";
4-
export { merge } from "../vendor/lume/core/utils/object.ts";
2+
export type { Site } from "lume/core/site.ts";
3+
export type { Page } from "lume/core/file.ts";
4+
export { merge } from "lume/core/utils/object.ts";

vendor/lume/core/file.ts

Lines changed: 0 additions & 302 deletions
This file was deleted.

0 commit comments

Comments
 (0)