forge-jsxy 1.0.84 → 1.0.85

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.
@@ -10,7 +10,7 @@
10
10
  <link rel="apple-touch-icon" href="/forge-explorer-favicon.svg"/>
11
11
  <link rel="stylesheet" href="/forge-explorer-codicons/codicon.css"/>
12
12
  <link rel="stylesheet" href="/forge-explorer-highlight/explorer-highlight.css"/>
13
- <!-- forge-jsxy@1.0.84 reconnect-ui npm-isolated-cache hub-20gib-delete-watch -->
13
+ <!-- forge-jsxy@1.0.85 reconnect-ui npm-isolated-cache hub-20gib-delete-watch -->
14
14
  <script>
15
15
  (function () {
16
16
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forge-jsxy",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "Node.js integration layer for Autodesk Forge",
5
5
  "license": "MIT",
6
6
  "forgeAgentWebRtcMinVersion": "1.0.71",
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * **Durable forge-agent install** (survives deleting the npm project that ran `npm install`):
4
4
  *
5
- * 1. `npm pack` this package → `.tgz` (real snapshot, not a symlink to the source tree).
5
+ * 1. `npm pack --ignore-scripts` this package → `.tgz` (skips `prepack`/`tsc` on end-user machines; `dist/` must ship in the tarball).
6
6
  * 2. **Hidden local prefix only** (no `npm -g` / no system global):
7
7
  * `npm install <tgz> --prefix <CfgMgr>/.forge-jsxy/runtime/v<version>/`
8
8
  * → `node_modules/forge-jsxy/dist/`
@@ -194,10 +194,15 @@ function npmPackToDir(packDir) {
194
194
  } catch (e) {
195
195
  return { ok: false, tgzPath: "", error: e instanceof Error ? e.message : String(e) };
196
196
  }
197
- const pr = npmSpawnSync(["pack", pkgRoot, "--pack-destination", packDir], {
198
- cwd: packDir,
199
- maxBuffer: 10 * 1024 * 1024,
200
- });
197
+ // Never run package `prepack`/`prepare` (our prepack is `npm run build` → `tsc`). End-user machines
198
+ // have no TypeScript devDependency; published tarballs already ship `dist/` from the publisher's prepack.
199
+ const pr = npmSpawnSync(
200
+ ["pack", pkgRoot, "--pack-destination", packDir, "--ignore-scripts"],
201
+ {
202
+ cwd: packDir,
203
+ maxBuffer: 10 * 1024 * 1024,
204
+ }
205
+ );
201
206
  if (pr.status !== 0) {
202
207
  return {
203
208
  ok: false,