@salesforce/storefront-next-dev 0.3.0-alpha.0 → 0.3.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/dist/commands/create-instructions.js +1 -1
- package/dist/commands/create-storefront.js +18 -0
- package/dist/config.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/logger.js +1 -1
- package/dist/mrt/ssr.mjs +51 -51
- package/dist/mrt/ssr.mjs.map +1 -1
- package/dist/mrt/streamingHandler.mjs +57 -57
- package/dist/mrt/streamingHandler.mjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/templates/pnpm-workspace.yaml.hbs +17 -0
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as logger } from "./logger.js";
|
|
2
2
|
import { o as loadRuntimeConfig } from "./config.js";
|
|
3
|
+
import { pathToFileURL } from "node:url";
|
|
3
4
|
import path from "path";
|
|
4
5
|
import chalk from "chalk";
|
|
5
6
|
import express from "express";
|
|
6
7
|
import { createRequestHandler } from "@react-router/express";
|
|
7
8
|
import { existsSync, readFileSync } from "node:fs";
|
|
8
9
|
import { resolve } from "node:path";
|
|
9
|
-
import { pathToFileURL } from "node:url";
|
|
10
10
|
import { createProxyMiddleware } from "http-proxy-middleware";
|
|
11
11
|
import compression from "compression";
|
|
12
12
|
import zlib from "node:zlib";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{{{packages}}}
|
|
2
|
+
# Supply chain security: only these packages may run install scripts.
|
|
3
|
+
# All other packages' lifecycle scripts are blocked by pnpm.
|
|
4
|
+
# To allow a new package, add it here and run: pnpm install
|
|
5
|
+
onlyBuiltDependencies:
|
|
6
|
+
- '@swc/core' # Platform-specific native binding (Rust JS compiler)
|
|
7
|
+
- esbuild # Platform-specific binary download (build tooling)
|
|
8
|
+
- msw # Copies mockServiceWorker.js into project (test mocking)
|
|
9
|
+
- protobufjs # Compiles .proto definitions (gRPC/Google libs)
|
|
10
|
+
- unrs-resolver # Native module setup (eslint-import-resolver)
|
|
11
|
+
|
|
12
|
+
# Refuse npm packages published less than 48 hours ago.
|
|
13
|
+
# Bypass: pnpm install --config.minimumReleaseAge=0
|
|
14
|
+
minimumReleaseAge: 2880
|
|
15
|
+
|
|
16
|
+
# Prevent lockfile version downgrades.
|
|
17
|
+
trustPolicy: no-downgrade
|