@publier/shell 2.1.1 → 2.3.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.
@@ -1,7 +1,7 @@
1
1
  import { AstroIntegration } from "astro";
2
2
 
3
3
  //#region src/build-integration.d.ts
4
- /** Astro integration that runs the Publier gate after `astro build`. */
4
+ /** Astro integration that writes the Publier build manifest after `astro build`. */
5
5
  declare function publierBuild(): AstroIntegration;
6
6
  //#endregion
7
7
  export { publierBuild };
@@ -1 +1 @@
1
- import{buildHook as e}from"@publier/native";import{chmodSync as t,statSync as n}from"node:fs";import{dirname as r,resolve as i}from"node:path";import{fileURLToPath as a}from"node:url";const o=i(r(a(import.meta.url)),`..`,`publier-gate`);function s(e=o){try{let r=n(e).mode;if(r&73)return;t(e,r&4095|493)}catch(e){let t=e.code;if(t===`ENOENT`||t===`EPERM`||t===`EROFS`)return;throw e}}function c(){return{name:`@publier/shell/build`,hooks:{"astro:build:done":({dir:t})=>{s(o),e(`astro:build:done`,JSON.stringify({gate_binary_path:o,dist_path:a(t)}))}}}}export{c as publierBuild};
1
+ import{createRequire as e}from"node:module";import{buildHook as t}from"@publier/native";import{fileURLToPath as n}from"node:url";const{version:r}=e(import.meta.url)(`../package.json`);function i(){return{name:`@publier/shell/build`,hooks:{"astro:build:done":({dir:e})=>{t(`astro:build:done`,JSON.stringify({dist_path:n(e),publier_version:r}))}}}}export{i as publierBuild};
package/package.json CHANGED
@@ -1,20 +1,12 @@
1
1
  {
2
2
  "name": "@publier/shell",
3
- "version": "2.1.1",
3
+ "version": "2.3.1",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Qwik + Astro docs layout for Publier sites.",
6
6
  "_filesRationale": "mixed: dist for build-time TS + source globs for shipped .astro components",
7
- "_osCpuRationale": "linux/x64 only because we bundle publier-gate (ELF). Mac/Win contributors cannot pnpm install --filter @publier/shell directly — they must clone the monorepo (workspace symlinks bypass the os/cpu check) or use WSL2/Docker. See docs/architecture/shell-platform-lock.md for the deferred refactor (extract @publier/shell-gate as an optional binary-only package so the OS-neutral 95% of @publier/shell becomes platform-agnostic).",
8
7
  "type": "module",
9
- "os": [
10
- "linux"
11
- ],
12
- "cpu": [
13
- "x64"
14
- ],
15
8
  "files": [
16
9
  "dist",
17
- "publier-gate",
18
10
  "src/**/*.astro",
19
11
  "src/**/*.css",
20
12
  "!src/tailwind/themes/**",
@@ -143,7 +135,7 @@
143
135
  "remark-math": "^6.0.0",
144
136
  "unist-util-visit": "^5.1.0",
145
137
  "yaml": "^2.9.0",
146
- "@publier/native": "0.10.1"
138
+ "@publier/native": "0.11.1"
147
139
  },
148
140
  "peerDependencies": {
149
141
  "@qwik.dev/astro": ">=1.0.0",
@@ -180,8 +172,6 @@
180
172
  },
181
173
  "scripts": {
182
174
  "build": "tsdown && node --experimental-strip-types --no-warnings ../../tools/css-theme-precompile/precompile.ts .",
183
- "build:binary": "cargo build -p publier-gate --release --target x86_64-unknown-linux-gnu && cp ../../target/x86_64-unknown-linux-gnu/release/publier-gate ./publier-gate && chmod +x ./publier-gate",
184
- "build:binary:debug": "cargo build -p publier-gate && cp ../../target/debug/publier-gate ./publier-gate && chmod +x ./publier-gate",
185
175
  "dev": "tsdown --watch",
186
176
  "check-types": "tsc --noEmit",
187
177
  "test": "echo \"@publier/shell: covered by root vitest workspace\" && exit 0"
package/publier-gate DELETED
Binary file