pagewrite-astro 0.1.7 → 0.1.10

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 (4) hide show
  1. package/CLI.md +2 -2
  2. package/LICENSE +21 -0
  3. package/README.md +6 -6
  4. package/package.json +5 -1
package/CLI.md CHANGED
@@ -4,10 +4,10 @@
4
4
 
5
5
  ## Installation
6
6
 
7
- The CLI is included with `@lakshmanshankar/pagwrite-astro`:
7
+ The CLI is included with `pagewrite-astro`:
8
8
 
9
9
  ```bash
10
- pnpm add @lakshmanshankar/pagwrite-astro
10
+ pnpm add pagewrite-astro
11
11
  ```
12
12
 
13
13
  After installation, run it through your package manager:
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lakshmanshankar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @lakshmanshankar/pagwrite-astro
1
+ # pagewrite-astro
2
2
 
3
3
  Astro integration for fetching Pagewrite CMS content at build time and writing it as MDX files into your Astro content directory.
4
4
 
@@ -9,7 +9,7 @@ This package is currently focused on the Astro fetch/write integration. The lowe
9
9
  ```text
10
10
  Pagewrite CMS User's Astro project
11
11
  ------------- --------------------
12
- siteId, token ---> @lakshmanshankar/pagwrite-astro config
12
+ siteId, token ---> pagewrite-astro config
13
13
  |
14
14
  v
15
15
  astro build
@@ -25,7 +25,7 @@ siteId, token ---> @lakshmanshankar/pagwrite-astro config
25
25
  ## Installation
26
26
 
27
27
  ```bash
28
- pnpm add @lakshmanshankar/pagwrite-astro
28
+ pnpm add pagewrite-astro
29
29
  ```
30
30
 
31
31
  ## Setup
@@ -35,7 +35,7 @@ Configure the integration before content-related integrations in `astro.config.m
35
35
  ```js
36
36
  import { defineConfig } from "astro/config";
37
37
  import mdx from "@astrojs/mdx";
38
- import pagewriteAstro from "@lakshmanshankar/pagwrite-astro";
38
+ import pagewriteAstro from "pagewrite-astro";
39
39
 
40
40
  import { loadEnv } from "vite";
41
41
  const env = loadEnv(process.env.NODE_ENV!, process.cwd(), "");
@@ -122,7 +122,7 @@ import {
122
122
  fetchStaticFileTree,
123
123
  fetchAllFileDocuments,
124
124
  stageSiteContent,
125
- } from "@lakshmanshankar/pagwrite-astro";
125
+ } from "pagewrite-astro";
126
126
 
127
127
  await stageSiteContent("your-site-id", "rmx_live_xxxxxxxxxxxx", "./content/docs");
128
128
  ```
@@ -131,7 +131,7 @@ await stageSiteContent("your-site-id", "rmx_live_xxxxxxxxxxxx", "./content/docs"
131
131
 
132
132
  ## Publishing
133
133
 
134
- Package publishing is handled by GitHub Actions. Configure an `NPM_TOKEN` repository secret with permission to publish `@lakshmanshankar/pagwrite-astro`, then publish a GitHub release to run the npm publish workflow.
134
+ Package publishing is handled by GitHub Actions. Configure an `NPM_TOKEN` repository secret with permission to publish `pagewrite-astro`, then publish a GitHub release to run the npm publish workflow.
135
135
 
136
136
  The workflow installs dependencies with pnpm, runs typecheck, tests, and build, then publishes to the npm registry with provenance enabled. It can also be started manually from the Actions tab with `workflow_dispatch`.
137
137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pagewrite-astro",
3
- "version": "0.1.7",
3
+ "version": "0.1.10",
4
4
  "description": "Astro integration for fetching Pagewrite MDX content at build time.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -43,6 +43,10 @@
43
43
  "dependencies": {
44
44
  "yaml": "^2.9.0"
45
45
  },
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "https://github.com/Lakshmanshankar/pagewrite-sdk"
49
+ },
46
50
  "scripts": {
47
51
  "build": "pnpm run clean && tsc -p tsconfig.json",
48
52
  "test": "vitest run",