@stephenchenorg/astro-graphql 10.0.1 → 11.0.0

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.
package/README.md CHANGED
@@ -11,6 +11,8 @@
11
11
  npm install @stephenchenorg/astro-graphql
12
12
  # yarn
13
13
  yarn add @stephenchenorg/astro-graphql
14
+ # pnpm
15
+ pnpm add @stephenchenorg/astro-graphql
14
16
  ```
15
17
 
16
18
  ## 文件
@@ -20,15 +22,8 @@ https://stephenchenorg-astro.netlify.app
20
22
  ## 開發
21
23
 
22
24
  ```bash
23
- yarn
24
- yarn build
25
- ```
26
-
27
- ## 發布套件
28
-
29
- ```bash
30
- npm login
31
- npm run release
25
+ pnpm install
26
+ pnpm build
32
27
  ```
33
28
 
34
29
  ## License
@@ -1,6 +1,6 @@
1
- import * as graphql0 from "graphql";
1
+ import * as graphql2 from "graphql";
2
2
 
3
3
  //#region src/company-setting/fragments.d.ts
4
- declare const companySettingFields: graphql0.DocumentNode;
4
+ declare const companySettingFields: graphql2.DocumentNode;
5
5
  //#endregion
6
6
  export { companySettingFields };
@@ -1,4 +1,4 @@
1
- import * as graphql3 from "graphql";
1
+ import * as graphql4 from "graphql";
2
2
  import { PageMeta } from "@stephenchenorg/astro/page";
3
3
 
4
4
  //#region src/page/field/fragments.d.ts
@@ -6,7 +6,7 @@ import { PageMeta } from "@stephenchenorg/astro/page";
6
6
  * Page fields fragment requires explicit import image
7
7
  * fields fragment `imageFields` from Image module.
8
8
  */
9
- declare const pageFields: graphql3.DocumentNode;
9
+ declare const pageFields: graphql4.DocumentNode;
10
10
  //#endregion
11
11
  //#region src/page/types.d.ts
12
12
  interface DataPage {
@@ -76,6 +76,6 @@ declare function pageTextField(fields: PageField[], key: string): string | null;
76
76
  declare function pageImageFieldForBackground(fields: PageField[], key: string): string;
77
77
  //#endregion
78
78
  //#region src/page/seo-meta/fragments.d.ts
79
- declare const seoMetaFields: (dummyClass: string) => graphql3.DocumentNode;
79
+ declare const seoMetaFields: (dummyClass: string) => graphql4.DocumentNode;
80
80
  //#endregion
81
81
  export { DataPage, Page, PageContentField, PageField, PageImageField, PagePlainTextField, PagePlainTextareaField, isContentField, isImageField, isPlainTextField, isPlainTextareaField, pageFields, pageImageFieldForBackground, pageTextField, seoMetaFields };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stephenchenorg/astro-graphql",
3
3
  "type": "module",
4
- "version": "10.0.1",
4
+ "version": "11.0.0",
5
5
  "description": "Stephenchenorg Astro 前端 GraphQL 整合串接套件",
6
6
  "license": "MIT",
7
7
  "homepage": "https://stephenchenorg-astro.netlify.app",
@@ -52,11 +52,6 @@
52
52
  "engines": {
53
53
  "node": ">=22"
54
54
  },
55
- "scripts": {
56
- "build": "tsdown",
57
- "code-check": "astro check",
58
- "prepack": "npm run build"
59
- },
60
55
  "peerDependencies": {
61
56
  "@stephenchenorg/astro": "^10.0.0",
62
57
  "astro": "^5.0.0"
@@ -72,5 +67,9 @@
72
67
  "astro": "^5.16.11",
73
68
  "tsdown": "^0.19.0",
74
69
  "typescript": "^5.9.3"
70
+ },
71
+ "scripts": {
72
+ "build": "tsdown",
73
+ "code-check": "astro check"
75
74
  }
76
- }
75
+ }