1.0.8-rc.4

This commit is contained in:
Talon Poole 2021-02-25 20:46:53 +00:00
parent 3b9e0a7ed3
commit bf8b806ed5
3 changed files with 5 additions and 3 deletions

2
cli.js
View file

@ -6,7 +6,7 @@ import yargs from "yargs";
import * as CSS from "./css.js"; import * as CSS from "./css.js";
import { streamHTML, toHTML } from "./html.js"; import { streamHTML, toHTML } from "./html.js";
export const internal = (file) => const internal = (file) =>
path.resolve(path.dirname(new URL(import.meta.url).pathname), file); path.resolve(path.dirname(new URL(import.meta.url).pathname), file);
const pkg = JSON.parse(readFileSync(internal("package.json"), "utf-8")); const pkg = JSON.parse(readFileSync(internal("package.json"), "utf-8"));

4
css.js
View file

@ -2,7 +2,9 @@ import { readFileSync, existsSync } from "fs";
// TODO import.meta.resolve is supposed to accomplish this without "path" // TODO import.meta.resolve is supposed to accomplish this without "path"
import path from "path"; import path from "path";
import { stringify, parse } from "css"; import { stringify, parse } from "css";
import { internal } from "./cli.js"
const internal = (file) =>
path.resolve(path.dirname(new URL(import.meta.url).pathname), file);
export function style(options) { export function style(options) {
if (options.inline || options.css === "none") return ""; if (options.inline || options.css === "none") return "";

View file

@ -1,6 +1,6 @@
{ {
"name": "gmi-web-cli", "name": "gmi-web-cli",
"version": "1.0.7-rc.4", "version": "1.0.8-rc.4",
"description": "Convert text/gemini to text/html.", "description": "Convert text/gemini to text/html.",
"main": "html.js", "main": "html.js",
"type": "module", "type": "module",