Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/internal/components/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@follow/components",
"type": "module",
"private": true,
"sideEffects": false,
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/internal/legal/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@follow/legal",
"type": "module",
"version": "0.0.1",
"private": true,
"exports": {
Expand Down
5 changes: 4 additions & 1 deletion packages/internal/legal/script/build.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { mkdirSync, readFileSync, writeFileSync } from "node:fs"
import { resolve } from "node:path"
import { fileURLToPath } from "node:url"

import { marked } from "marked"

// Define paths to markdown and output files
const __dirname = fileURLToPath(new URL(".", import.meta.url))

const PRIVACY_MD_PATH = resolve(__dirname, "../privacy.md")
const TOS_MD_PATH = resolve(__dirname, "../tos.md")
const OUTPUT_PATH = resolve(__dirname, "../dist")
Expand All @@ -20,7 +23,7 @@ const githubMarkdownCSS = `
max-width: 980px;
margin: 0 auto;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3,
.markdown-body h1, .markdown-body h2, .markdown-body h3,
.markdown-body h4, .markdown-body h5, .markdown-body h6 {
margin-top: 24px;
margin-bottom: 16px;
Expand Down
Loading