1.0.8-rc.4
This commit is contained in:
parent
3b9e0a7ed3
commit
bf8b806ed5
2
cli.js
2
cli.js
|
@ -6,7 +6,7 @@ import yargs from "yargs";
|
|||
import * as CSS from "./css.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);
|
||||
|
||||
const pkg = JSON.parse(readFileSync(internal("package.json"), "utf-8"));
|
||||
|
|
4
css.js
4
css.js
|
@ -2,7 +2,9 @@ import { readFileSync, existsSync } from "fs";
|
|||
// TODO import.meta.resolve is supposed to accomplish this without "path"
|
||||
import path from "path";
|
||||
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) {
|
||||
if (options.inline || options.css === "none") return "";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "gmi-web-cli",
|
||||
"version": "1.0.7-rc.4",
|
||||
"version": "1.0.8-rc.4",
|
||||
"description": "Convert text/gemini to text/html.",
|
||||
"main": "html.js",
|
||||
"type": "module",
|
||||
|
|
Loading…
Reference in a new issue