rspress-plugin-typst 0.0.1 → 0.0.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +21 -0
  2. package/package.json +10 -12
package/README.md CHANGED
@@ -129,6 +129,27 @@ pnpm build
129
129
  pnpm test
130
130
  ```
131
131
 
132
+ ## Publishing
133
+
134
+ The [Release](.github/workflows/release.yml) workflow follows the
135
+ [`sxzz/workflows`](https://github.com/sxzz/workflows) publish flow (checkout →
136
+ install → changelogithub → build → `pnpm publish`), inlined so every action can
137
+ stay SHA-pinned under this repo’s policy.
138
+
139
+ 1. Configure npm trusted publishing for this GitHub repo (OIDC).
140
+ 2. Bump `package.json` version, then push a tag:
141
+
142
+ ```bash
143
+ git tag v0.0.2-alpha.0
144
+ git push origin v0.0.2-alpha.0
145
+ ```
146
+
147
+ Prereleases currently publish with npm dist-tag `alpha`:
148
+
149
+ ```bash
150
+ pnpm add rspress-plugin-typst@alpha
151
+ ```
152
+
132
153
  ## License
133
154
 
134
155
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rspress-plugin-typst",
3
- "version": "0.0.1",
3
+ "version": "0.0.2-alpha.1",
4
4
  "description": "Rspress plugin that treats Typst (.typ) files as documentation pages via experimental HTML export.",
5
5
  "keywords": [
6
6
  "rspress",
@@ -44,15 +44,6 @@
44
44
  "README.md",
45
45
  "LICENSE"
46
46
  ],
47
- "scripts": {
48
- "build": "rslib build",
49
- "dev": "rslib build --watch",
50
- "test": "pnpm build && node --experimental-strip-types --test tests/**/*.test.ts",
51
- "typecheck": "tsc -p tsconfig.json --noEmit",
52
- "playground:dev": "pnpm --filter playground dev",
53
- "playground:build": "pnpm --filter playground build",
54
- "prepublishOnly": "pnpm build"
55
- },
56
47
  "dependencies": {
57
48
  "@myriaddreamin/typst-ts-node-compiler": "^0.7.0",
58
49
  "fast-glob": "^3.3.3"
@@ -67,7 +58,6 @@
67
58
  "react": "^19.0.0",
68
59
  "typescript": "^5.8.2"
69
60
  },
70
- "packageManager": "pnpm@9.15.0",
71
61
  "peerDependencies": {
72
62
  "@rspress/core": "^1.40.0 || ^2.0.0",
73
63
  "react": ">=17.0.0"
@@ -82,5 +72,13 @@
82
72
  },
83
73
  "publishConfig": {
84
74
  "access": "public"
75
+ },
76
+ "scripts": {
77
+ "build": "rslib build",
78
+ "dev": "rslib build --watch",
79
+ "test": "pnpm build && node --experimental-strip-types --test tests/**/*.test.ts",
80
+ "typecheck": "tsc -p tsconfig.json --noEmit",
81
+ "playground:dev": "pnpm --filter playground dev",
82
+ "playground:build": "pnpm --filter playground build"
85
83
  }
86
- }
84
+ }