remove-draft/dist/index.js
saberzero1 363fcde8c1
chore: commit dist/ and remove prepare script
Pre-built output is now committed to the repository so that
Quartz can skip the build step during plugin installation.
The prepare script is removed to prevent redundant builds
when installing from npm/git.
2026-03-14 22:01:15 +01:00

13 lines
No EOL
366 B
JavaScript

// src/filter.ts
var RemoveDrafts = () => ({
name: "RemoveDrafts",
shouldPublish(_ctx, [_tree, vfile]) {
const frontmatter = vfile.data?.frontmatter;
const draftFlag = frontmatter?.draft === true || frontmatter?.draft === "true";
return !draftFlag;
}
});
export { RemoveDrafts };
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map