1
0

Bump cliffy version

This commit is contained in:
Zef Hemel 2024-01-25 16:29:25 +01:00
parent dbb87902cc
commit 766c3e2eb4
4 changed files with 12 additions and 31 deletions

View File

@ -11,30 +11,12 @@ await esbuild.build({
bundle: true,
treeShaking: true,
sourcemap: false,
minify: false,
plugins: [
// ESBuild plugin to make npm modules external
{
name: "npm-external",
setup(build: any) {
build.onResolve({ filter: /^npm:/ }, (args: any) => {
return {
path: args.path,
external: true,
};
});
},
},
{
name: "json",
setup: (build) =>
build.onLoad({ filter: /\.json$/ }, () => ({ loader: "json" })),
},
...denoPlugins({
importMapURL: new URL("./import_map.json", import.meta.url)
.toString(),
}),
],
logLevel: "error",
minify: true,
plugins: denoPlugins({
importMapURL: new URL("./import_map.json", import.meta.url)
.toString(),
}),
});
const bundleJs = await Deno.readTextFile("dist/silverbullet.js");
// Patch output JS with import.meta.main override to avoid ESBuild CLI handling

View File

@ -105,12 +105,10 @@ async function buildCopyBundleAssets() {
jsx: "automatic",
jsxFragment: "Fragment",
jsxImportSource: "https://esm.sh/preact@10.11.1",
plugins: [
...denoPlugins({
importMapURL: new URL("./import_map.json", import.meta.url)
.toString(),
}),
],
plugins: denoPlugins({
importMapURL: new URL("./import_map.json", import.meta.url)
.toString(),
}),
});
// Patch the service_worker {{CACHE_NAME}}

View File

@ -1,5 +1,5 @@
import.meta.main = false;
import { Command } from "https://deno.land/x/cliffy@v0.25.2/command/command.ts";
import { Command } from "https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts";
import { version } from "./version.ts";

View File

@ -5,6 +5,7 @@ release.
## Edge
$edge
_The changes below are not yet released “properly”. To them out early, check out [the docs on edge](https://community.silverbullet.md/t/living-on-the-edge-builds/27)._
* Tag pages: when you click on a #tag you will now be directed to a page that shows all pages, tasks, items and paragraphs tagged with that tag.